package main import ( "github.com/dotcloud/docker/engine" ) func main() { job := engine.Job{ Name: "my-job", Command: []string{"ls", "/"}, } }
package main import ( "github.com/dotcloud/docker/engine" ) func main() { job := engine.Job{ Name: "my-job", Command: []string{"ls", "/"}, } engine := engine.New() engine.Start(job) }
package main import ( "github.com/dotcloud/docker/engine" ) func main() { job := engine.Job{ Name: "my-job", Command: []string{"ls", "/"}, } engine := engine.New() engine.Remove(job) }Overall, the Job package library provides a simple and easy-to-use interface for managing Docker jobs and would be useful for developers working with Docker containers.