Versions in this module Expand all Collapse all v0 v0.11.0 May 7, 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 + func SetTerminal(command *Command, pipes *Pipes) error + type Command struct + Arguments []string + Config map[string][]string + ConfigPath string + Console string + ContainerPid int + Entrypoint string + ID string + InitPath string + Mounts []Mount + Network *Network + Privileged bool + Resources *Resources + Rootfs string + Terminal Terminal + Tty bool + User string + WorkingDir string + func (c *Command) Pid() int + type Context map[string]string + type Driver interface + GetPidsForContainer func(id string) ([]int, error) + Info func(id string) Info + Kill func(c *Command, sig int) error + Name func() string + Run func(c *Command, pipes *Pipes, startCallback StartCallback) (int, error) + Terminate func(c *Command) error + type Info interface + IsRunning func() bool + type InitArgs struct + Args []string + Console string + Driver string + Env []string + Gateway string + Ip string + Mtu int + Pipe int + Privileged bool + Root string + User string + WorkDir string + type InitFunc func(i *InitArgs) error + func GetInitFunc(name string) (InitFunc, error) + type Mount struct + Destination string + Private 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 + 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 Resources struct + CpuShares int64 + Memory int64 + MemorySwap int64 + type StartCallback func(*Command) + type StdConsole struct + func NewStdConsole(command *Command, 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 TtyConsole struct + MasterPty *os.File + SlavePty *os.File + func NewTtyConsole(command *Command, pipes *Pipes) (*TtyConsole, error) + func (t *TtyConsole) AttachPipes(command *exec.Cmd, pipes *Pipes) error + func (t *TtyConsole) Close() error + func (t *TtyConsole) Master() *os.File + func (t *TtyConsole) Resize(h, w int) error + type TtyTerminal interface + Master func() *os.File