Scala/Java bindings for liblxc
This project aims to deliver good, documented bindings and documentation for liblxc.
//Start all containers
Lxc.getContainers.map(container => new LxcContainer(container)).foreach()
//Start a container
val container = new LxcContainer("MyContainer")
container.start()Note that some parts of the API may change in future.
- container.getKeys (Needs testing)
 - container.console (Needs proper testing)
 - container.attach (Not implemented)
 
Compile using SBT with sbt compile package.
To test using Scala REPL as root user, in the main directory execute sbt package and then just execute
sudo scala -classpath target/scala-2.10/jliblxc_2.10-0.1.jar
net.magik6k:jliblxc:0.1.0 at the maven central repository
After malual compilation the library is at target/scala-2.10/jliblxc*.jar