Versions in this module Expand all Collapse all v0 v0.8.0 Feb 5, 2014 Changes in this version + var ErrDriverAlreadyRegistered = errors.New("A driver already registered this docker init function") + var ErrDriverNotFound = errors.New("The requested docker init has not been found") + var ErrNotRunning = errors.New("Process could not be started") + var ErrWaitTimeoutReached = errors.New("Wait timeout reached") + func RegisterInitFunc(name string, fct InitFunc) error + type Command struct + Arguments []string + Config []string + ConfigPath string + Entrypoint string + ID string + InitPath string + Network *Network + Privileged bool + Resources *Resources + Rootfs string + Tty bool + User string + WorkingDir string + func (c *Command) Pid() int + type Driver interface + GetPidsForContainer func(id string) ([]int, error) + Info func(id string) Info + Kill func(c *Command, sig int) error + Name func() string + Restore func(c *Command) error + Run func(c *Command, startCallback StartCallback) (int, error) + type Info interface + IsRunning func() bool + type InitArgs struct + Args []string + Driver string + Env []string + Gateway string + Ip string + Mtu int + Privileged bool + User string + WorkDir string + type InitFunc func(i *InitArgs) error + func GetInitFunc(name string) (InitFunc, error) + type Network struct + Bridge string + Gateway string + IPAddress string + IPPrefixLen int + Mtu int + type Resources struct + CpuShares int64 + Memory int64 + MemorySwap int64 + type StartCallback func(*Command)