Versions in this module Expand all Collapse all v0 v0.12.0 Jun 6, 2014 Changes in this version + func DefaultCreateCommand(container *libcontainer.Container, console, rootfs, dataPath, init string, ...) *exec.Cmd — linux/amd64 + func DeletePid(path string) error + func Exec(container *libcontainer.Container, term Terminal, rootfs, dataPath string, ...) (int, error) + func ExecIn(container *libcontainer.Container, nspid int, args []string) error — linux/amd64 + func FinalizeNamespace(container *libcontainer.Container) error — linux/amd64 + func GetNamespaceFlags(namespaces map[string]bool) (flag int) + func Init(container *libcontainer.Container, uncleanRootfs, consolePath string, ...) error + func InitializeNetworking(container *libcontainer.Container, nspid int, pipe *SyncPipe) error + func LoadContainerEnvironment(container *libcontainer.Container) error — linux/amd64 + func NsEnter(container *libcontainer.Container, processLabel string, nspid int, ...) error — linux/amd64 + func RestoreParentDeathSignal(old int) error — linux/amd64 + func SetupCgroups(container *libcontainer.Container, nspid int) (cgroups.ActiveCgroup, error) + func SetupUser(u string) error — linux/amd64 + func WritePid(path string, pid int, startTime string) error + type CreateCommand func(container *libcontainer.Container, console, rootfs, dataPath, init string, ...) *exec.Cmd + 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) Child() *os.File + func (s *SyncPipe) Close() error + func (s *SyncPipe) Parent() *os.File + 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)