Versions in this module Expand all Collapse all v0 v0.9.1 Mar 25, 2014 v0.9.0 Mar 10, 2014 Changes in this version + func GetNamespaceFlags(namespaces libcontainer.Namespaces) (flag int) + type CommandFactory interface + Create func(container *libcontainer.Container, console string, syncFd *os.File, ...) *exec.Cmd + type DefaultCommandFactory struct + Root string + func (c *DefaultCommandFactory) Create(container *libcontainer.Container, console string, pipe *os.File, ...) *exec.Cmd + type DefaultStateWriter struct + Root string + func (d *DefaultStateWriter) DeletePid() error + func (d *DefaultStateWriter) WritePid(pid int) error + type NsInit interface + Exec func(container *libcontainer.Container, term Terminal, args []string) (int, error) + ExecIn func(container *libcontainer.Container, nspid int, args []string) (int, error) + Init func(container *libcontainer.Container, uncleanRootfs, console string, ...) error + func NewNsInit(command CommandFactory, state StateWriter) NsInit + type StateWriter interface + DeletePid func() error + WritePid func(pid int) error + type StdTerminal struct + func (s *StdTerminal) Attach(command *exec.Cmd) error + func (s *StdTerminal) Close() error + func (s *StdTerminal) Resize(h, w int) error + func (s *StdTerminal) SetMaster(*os.File) + type SyncPipe struct + func NewSyncPipe() (s *SyncPipe, err error) + func NewSyncPipeFromFd(parendFd, childFd uintptr) (*SyncPipe, error) + func (s *SyncPipe) Close() error + func (s *SyncPipe) ReadFromParent() (libcontainer.Context, error) + func (s *SyncPipe) SendToChild(context libcontainer.Context) error + type Terminal interface + Attach func(*exec.Cmd) error + Resize func(h, w int) error + SetMaster func(*os.File) + func NewTerminal(stdin io.Reader, stdout, stderr io.Writer, tty bool) Terminal + type TtyTerminal struct + func (t *TtyTerminal) Attach(command *exec.Cmd) error + func (t *TtyTerminal) Close() error + func (t *TtyTerminal) Resize(h, w int) error + func (t *TtyTerminal) SetMaster(master *os.File)