Versions in this module Expand all Collapse all v1 v1.2.0 Aug 20, 2014 Changes in this version type Container + Config func() *Config + Destroy func() error + Path func() string + Pause func() error + Processes func() ([]int, error) + Resume func() error + RunState func() (*RunState, error) + Start func(*ProcessConfig) (pid int, exitChan chan int, err error) + Stats func() (*ContainerStats, error) + type Factory interface + Create func(path string, config *Config) (Container, error) + Load func(path string) (Container, error) + type ProcessConfig struct + Args []string + Env []string + Stderr io.WriteCloser + Stdin io.ReadCloser + Stdout io.WriteCloser + type RunState int + const Destroyed + const Paused + const Pausing + const Running type State + CgroupPaths map[string]string v1.1.0 Jun 26, 2014 Changes in this version + func DeleteState(basePath string) error + func SaveState(basePath string, state *State) error + type Config struct + AppArmorProfile string + Capabilities []string + Cgroups *cgroups.Cgroup + Env []string + Hostname string + MountConfig *MountConfig + Namespaces map[string]bool + Networks []*Network + ProcessLabel string + RestrictSys bool + Routes []*Route + Tty bool + User string + WorkingDir string + type ContainerStats struct + CgroupStats *cgroups.Stats + NetworkStats network.NetworkStats + func GetStats(container *Config, state *State) (*ContainerStats, error) + type MountConfig mount.MountConfig + type State struct + InitPid int + InitStartTime string + NetworkState network.NetworkState + func GetState(basePath string) (*State, error) v1.0.1 Jun 19, 2014 v1.0.0 Jun 10, 2014 Changes in this version + var ErrUnkownCapability = errors.New("Unknown capability") + var ErrUnkownNamespace = errors.New("Unknown namespace") + var ErrUnsupported = errors.New("Unsupported method") + func GetAllCapabilities() []string + type Capabilities []*Capability + func (c Capabilities) Contains(capp string) bool + func (c Capabilities) Get(capp string) *Capability + type Capability struct + Key string + Value capability.Cap + func GetCapability(key string) *Capability + func (c *Capability) String() string + type Container struct + Capabilities []string + Cgroups *cgroups.Cgroup + Context Context + DeviceNodes []*devices.Device + Env []string + Hostname string + Mounts Mounts + Namespaces map[string]bool + Networks []*Network + NoPivotRoot bool + ReadonlyFs bool + Routes []*Route + Tty bool + User string + WorkingDir string + type Context map[string]string + type Mount struct + Destination string + Private bool + Source string + Type string + Writable bool + type Mounts []Mount + func (s Mounts) OfType(t string) Mounts + type Namespace struct + File string + Key string + Value int + func GetNamespace(key string) *Namespace + func (ns *Namespace) String() string + type Namespaces []*Namespace + func (n Namespaces) Contains(ns string) bool + func (n Namespaces) Get(ns string) *Namespace + type Network struct + Address string + Context Context + Gateway string + Mtu int + Type string + type Route struct + Destination string + Gateway string + InterfaceName string + Source string