Versions in this module Expand all Collapse all v0 v0.1.0 Feb 3, 2016 Changes in this version + func Cgroupfs(l *LinuxFactory) error — linux/amd64 + func InitArgs(args ...string) func(*LinuxFactory) error — linux/amd64 + func InitPath(path string, args ...string) func(*LinuxFactory) error — linux/amd64 + func SystemdCgroups(l *LinuxFactory) error — linux/amd64 + func TmpfsRoot(l *LinuxFactory) error — linux/amd64 + type Console interface + Fd func() uintptr + Path func() string + type Container interface + Checkpoint func(criuOpts *CriuOpts) error + Config func() configs.Config + Destroy func() error + ID func() string + NotifyOOM func() (<-chan struct{}, error) + Pause func() error + Processes func() ([]int, error) + Restore func(process *Process, criuOpts *CriuOpts) error + Resume func() error + Set func(config configs.Config) error + Start func(process *Process) (err error) + State func() (*State, error) + Stats func() (*Stats, error) + Status func() (Status, error) + type CriuOpts struct + ExternalUnixConnections bool + ImagesDirectory string + LeaveRunning bool + PageServer CriuPageServerInfo + ShellJob bool + TcpEstablished bool + WorkDirectory string + type CriuPageServerInfo struct + Address string + Port int32 + type Error interface + Code func() ErrorCode + Detail func(w io.Writer) error + type ErrorCode int + const ConfigInvalid + const ContainerNotExists + const ContainerNotRunning + const ContainerNotStopped + const ContainerPaused + const IdInUse + const InvalidIdFormat + const ProcessNotExecuted + const SystemError + func (c ErrorCode) String() string + type Factory interface + Create func(id string, config *configs.Config) (Container, error) + Load func(id string) (Container, error) + StartInitialization func() error + Type func() string + func New(root string, options ...func(*LinuxFactory) error) (Factory, error) + type LinuxFactory struct — linux/amd64 + CriuPath string + InitArgs []string + InitPath string + NewCgroupsManager func(config *configs.Cgroup, paths map[string]string) cgroups.Manager + Root string + Validator validate.Validator + func (l *LinuxFactory) Create(id string, config *configs.Config) (Container, error) + func (l *LinuxFactory) Load(id string) (Container, error) + func (l *LinuxFactory) StartInitialization() (err error) + func (l *LinuxFactory) Type() string + type NetworkInterface struct + Name string + RxBytes uint64 + RxDropped uint64 + RxErrors uint64 + RxPackets uint64 + TxBytes uint64 + TxDropped uint64 + TxErrors uint64 + TxPackets uint64 + type Process struct + Args []string + Capabilities []string + Cwd string + Env []string + ExtraFiles []*os.File + Stderr io.Writer + Stdin io.Reader + Stdout io.Writer + User string + func (p *Process) NewConsole(rootuid int) (Console, error) + func (p Process) Pid() (int, error) + func (p Process) Signal(sig os.Signal) error + func (p Process) Wait() (*os.ProcessState, error) + type State struct + CgroupPaths map[string]string + Config configs.Config + ExternalDescriptors []string + ID string + InitProcessPid int + InitProcessStartTime string + NamespacePaths map[configs.NamespaceType]string + type Stats struct — linux/amd64, windows/amd64 + CgroupStats *cgroups.Stats + Interfaces []*NetworkInterface + type Status int + const Checkpointed + const Destroyed + const Paused + const Pausing + const Running