Versions in this module Expand all Collapse all v0 v0.0.0 Jan 2, 2017 Changes in this version + const ContainerStateCreated + const ContainerStateRunning + const ContainerStateStopped + type Container struct + func NewContainer(id string, name string, bundlePath string, logPath string, netns ns.NetNS, ...) (*Container, error) + func (c *Container) Annotations() map[string]string + func (c *Container) BundlePath() string + func (c *Container) ID() string + func (c *Container) Image() *pb.ImageSpec + func (c *Container) Labels() map[string]string + func (c *Container) LogPath() string + func (c *Container) Metadata() *pb.ContainerMetadata + func (c *Container) Name() string + func (c *Container) NetNsPath() (string, error) + func (c *Container) Sandbox() string + type ContainerState struct + Created time.Time + ExitCode int32 + Finished time.Time + Started time.Time + type ExecSyncError struct + Err error + ExitCode int32 + Stderr bytes.Buffer + Stdout bytes.Buffer + func (e ExecSyncError) Error() string + type ExecSyncResponse struct + ExitCode int32 + Stderr []byte + Stdout []byte + type History []*Container + func (history *History) Len() int + func (history *History) Less(i, j int) bool + func (history *History) Swap(i, j int) + type Runtime struct + func New(runtimePath string, containerDir string, conmonPath string, conmonEnv []string, ...) (*Runtime, error) + func (r *Runtime) ContainerDir() string + func (r *Runtime) ContainerStatus(c *Container) *ContainerState + func (r *Runtime) CreateContainer(c *Container) error + func (r *Runtime) DeleteContainer(c *Container) error + func (r *Runtime) ExecSync(c *Container, command []string, timeout int64) (resp *ExecSyncResponse, err error) + func (r *Runtime) Name() string + func (r *Runtime) NetworkReady() (bool, error) + func (r *Runtime) Path() string + func (r *Runtime) RuntimeReady() (bool, error) + func (r *Runtime) StartContainer(c *Container) error + func (r *Runtime) StopContainer(c *Container) error + func (r *Runtime) UpdateStatus(c *Container) error + func (r *Runtime) Version() (string, error) + type Store interface + Add func(string, *Container) + ApplyAll func(StoreReducer) + Delete func(string) + First func(StoreFilter) *Container + Get func(string) *Container + List func() []*Container + Size func() int + func NewMemoryStore() Store + type StoreFilter func(*Container) bool + type StoreReducer func(*Container)