Versions in this module Expand all Collapse all v0 v0.1.4 Oct 12, 2014 v0.1.3 Oct 11, 2014 v0.1.2 Oct 10, 2014 v0.1.1 Oct 10, 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 TweakCapabilities(basics, adds, drops []string) ([]string, error) + type Command struct + AllowedDevices []*devices.Device + AppArmorProfile string + AutoCreatedDevices []*devices.Device + CapAdd []string + CapDrop []string + ConfigPath string + ContainerPid int + ID string + InitPath string + LxcConfig []string + MountLabel string + Mounts []Mount + Network *Network + ProcessConfig ProcessConfig + ProcessLabel string + Resources *Resources + Rootfs string + WorkingDir string + type Context map[string]string + type Driver interface + Clean func(id string) error + Exec func(c *Command, processConfig *ProcessConfig, pipes *Pipes, ...) (int, error) + GetPidsForContainer func(id string) ([]int, error) + Info func(id string) Info + Kill func(c *Command, sig int) error + Name func() string + Pause func(c *Command) error + Run func(c *Command, pipes *Pipes, startCallback StartCallback) (int, error) + Terminate func(c *Command) error + Unpause func(c *Command) error + type Info interface + IsRunning func() bool + type Mount struct + Destination string + Private bool + Slave bool + Source string + Writable bool + type Network struct + ContainerID string + HostNetworking bool + Interface *NetworkInterface + Mtu int + type NetworkInterface struct + Bridge string + Gateway string + IPAddress string + IPPrefixLen int + MacAddress string + type Pipes struct + Stderr io.Writer + Stdin io.ReadCloser + Stdout io.Writer + func NewPipes(stdin io.ReadCloser, stdout, stderr io.Writer, useStdin bool) *Pipes + type ProcessConfig struct + Arguments []string + Console string + Entrypoint string + Privileged bool + Terminal Terminal + Tty bool + User string + type Resources struct + CpuShares int64 + Cpuset string + Memory int64 + MemorySwap int64 + type StartCallback func(*ProcessConfig, int) + type StdConsole struct + func NewStdConsole(processConfig *ProcessConfig, pipes *Pipes) (*StdConsole, error) + func (s *StdConsole) AttachPipes(command *exec.Cmd, pipes *Pipes) error + func (s *StdConsole) Close() error + func (s *StdConsole) Resize(h, w int) error + type Terminal interface + Resize func(height, width int) error + type TtyTerminal interface + Master func() *os.File