Versions in this module Expand all Collapse all v1 v1.9.0 Dec 15, 2017 Changes in this version + const DefaultHooksDirPath + const DefaultLogSizeMax + const DefaultPidsLimit + const OverrideHooksDirPath + type Config struct + func DefaultConfig() *Config + func (c *Config) ToFile(path string) error + func (c *Config) UpdateFromFile(path string) error + type ContainerServer struct + func New(config *Config) (*ContainerServer, error) + func (c *ContainerServer) AddContainer(ctr *oci.Container) + func (c *ContainerServer) AddInfraContainer(ctr *oci.Container) + func (c *ContainerServer) AddSandbox(sb *sandbox.Sandbox) + func (c *ContainerServer) Config() *Config + func (c *ContainerServer) ContainerKill(container string, killSignal syscall.Signal) (string, error) + func (c *ContainerServer) ContainerPause(container string) (string, error) + func (c *ContainerServer) ContainerRename(container, name string) error + func (c *ContainerServer) ContainerStateFromDisk(ctr *oci.Container) error + func (c *ContainerServer) ContainerStateToDisk(ctr *oci.Container) error + func (c *ContainerServer) ContainerStop(ctx context.Context, container string, timeout int64) (string, error) + func (c *ContainerServer) ContainerUnpause(container string) (string, error) + func (c *ContainerServer) ContainerWait(container string) (int32, error) + func (c *ContainerServer) CtrIDIndex() *truncindex.TruncIndex + func (c *ContainerServer) CtrNameIndex() *registrar.Registrar + func (c *ContainerServer) GetContainer(id string) *oci.Container + func (c *ContainerServer) GetContainerFromRequest(cid string) (*oci.Container, error) + func (c *ContainerServer) GetContainerRootFsSize(containerID string) (int64, error) + func (c *ContainerServer) GetContainerRwSize(containerID string) (int64, error) + func (c *ContainerServer) GetContainerStats(ctr *oci.Container, previousStats *ContainerStats) (*ContainerStats, error) + func (c *ContainerServer) GetContainerTopLayerID(containerID string) (string, error) + func (c *ContainerServer) GetInfraContainer(id string) *oci.Container + func (c *ContainerServer) GetLogs(container string, logChan chan string, opts LogOptions) error + func (c *ContainerServer) GetSandbox(id string) *sandbox.Sandbox + func (c *ContainerServer) GetSandboxContainer(id string) *oci.Container + func (c *ContainerServer) GetStorageContainer(container string) (*cstorage.Container, error) + func (c *ContainerServer) HasContainer(id string) bool + func (c *ContainerServer) HasSandbox(id string) bool + func (c *ContainerServer) Hooks() map[string]HookParams + func (c *ContainerServer) ImageContext() *types.SystemContext + func (c *ContainerServer) LibcontainerStats(ctr *oci.Container) (*libcontainer.Stats, error) + func (c *ContainerServer) ListContainers(filters ...func(*oci.Container) bool) ([]*oci.Container, error) + func (c *ContainerServer) ListSandboxes() []*sandbox.Sandbox + func (c *ContainerServer) LoadContainer(id string) error + func (c *ContainerServer) LoadSandbox(id string) error + func (c *ContainerServer) LookupContainer(idOrName string) (*oci.Container, error) + func (c *ContainerServer) LookupSandbox(idOrName string) (*sandbox.Sandbox, error) + func (c *ContainerServer) PodIDIndex() *truncindex.TruncIndex + func (c *ContainerServer) PodNameIndex() *registrar.Registrar + func (c *ContainerServer) ReleaseContainerName(name string) + func (c *ContainerServer) ReleasePodName(name string) + func (c *ContainerServer) Remove(ctx context.Context, container string, force bool) (string, error) + func (c *ContainerServer) RemoveContainer(ctr *oci.Container) + func (c *ContainerServer) RemoveInfraContainer(ctr *oci.Container) + func (c *ContainerServer) RemoveSandbox(id string) + func (c *ContainerServer) ReserveContainerName(id, name string) (string, error) + func (c *ContainerServer) ReservePodName(id, name string) (string, error) + func (c *ContainerServer) Runtime() *oci.Runtime + func (c *ContainerServer) Shutdown() error + func (c *ContainerServer) StorageImageServer() storage.ImageServer + func (c *ContainerServer) StorageRuntimeServer() storage.RuntimeServer + func (c *ContainerServer) Store() cstorage.Store + func (c *ContainerServer) Update() error + type ContainerStats struct + BlockInput uint64 + BlockOutput uint64 + CPU float64 + Container string + MemLimit uint64 + MemPerc float64 + MemUsage uint64 + NetInput uint64 + NetOutput uint64 + PIDs uint64 + type HookParams struct + Annotations []string + Cmds []string + HasBindMounts bool + Hook string + Stage []string + type ImageConfig struct + DefaultTransport string + ImageVolumes ImageVolumesType + InsecureRegistries []string + PauseCommand string + PauseImage string + Registries []string + SignaturePolicyPath string + type ImageVolumesType string + const ImageVolumesBind + const ImageVolumesIgnore + const ImageVolumesMkdir + type LogOptions struct + Details bool + Follow bool + SinceTime time.Time + Tail uint64 + type NetworkConfig struct + NetworkDir string + PluginDir string + type RootConfig struct + FileLocking bool + LogDir string + Root string + RunRoot string + Storage string + StorageOptions []string + type RuntimeConfig struct + ApparmorProfile string + CgroupManager string + Conmon string + ConmonEnv []string + ContainerExitsDir string + DefaultMounts []string + DefaultWorkloadTrust string + EnableSharedPIDNamespace bool + Hooks map[string]HookParams + HooksDirPath string + LogSizeMax int64 + NoPivot bool + PidsLimit int64 + Runtime string + RuntimeUntrustedWorkload string + SELinux bool + SeccompProfile string v1.9.0-beta.2 Dec 7, 2017