Versions in this module Expand all Collapse all v0 v0.9.1 Mar 25, 2014 Changes in this version type Network + Interface *NetworkInterface + type NetworkInterface struct + Bridge string + Gateway string + IPAddress string + IPPrefixLen int v0.9.0 Mar 10, 2014 Changes in this version + func SetTerminal(command *Command, pipes *Pipes) error type Command + ContainerPid int + Terminal Terminal type InitArgs + Console string + Pipe int + Root 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 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 v0.8.1 Feb 18, 2014 Changes in this version type Command + Console string 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)