Versions in this module Expand all Collapse all v0 v0.5.0 Sep 23, 2026 v0.4.0 Sep 16, 2026 v0.3.0 Sep 9, 2026 v0.2.0 Sep 2, 2026 v0.1.0 Sep 1, 2026 Changes in this version + func NewServiceUnavailableError(cause string) error + func NewUnrecoverableError(symptom string) error + type Backend interface + GraceTime func(Container) time.Duration + Start func() error + Stop func() error + type BandwidthLimits struct + BurstRateInBytesPerSecond uint64 + RateInBytesPerSecond uint64 + type BindMount struct + DstPath string + Mode BindMountMode + Origin BindMountOrigin + SrcPath string + type BindMountMode uint8 + const BindMountModeRO + const BindMountModeRW + type BindMountOrigin uint8 + const BindMountOriginContainer + const BindMountOriginHost + type CPULimits struct + LimitInShares uint64 + Weight uint64 + type Capacity struct + DiskInBytes uint64 + MaxContainers uint64 + MemoryInBytes uint64 + SchedulableDiskInBytes uint64 + type Client interface + BulkInfo func(handles []string) (map[string]ContainerInfoEntry, error) + BulkMetrics func(handles []string) (map[string]ContainerMetricsEntry, error) + Capacity func() (Capacity, error) + Containers func(Properties) ([]Container, error) + Create func(ContainerSpec) (Container, error) + Destroy func(handle string) error + Lookup func(handle string) (Container, error) + Ping func() error + type Container interface + Attach func(processID string, io ProcessIO) (Process, error) + BulkNetOut func(netOutRules []NetOutRule) error + CurrentBandwidthLimits func() (BandwidthLimits, error) + CurrentCPULimits func() (CPULimits, error) + CurrentDiskLimits func() (DiskLimits, error) + CurrentMemoryLimits func() (MemoryLimits, error) + Handle func() string + Info func() (ContainerInfo, error) + Metrics func() (Metrics, error) + NetIn func(hostPort, containerPort uint32) (uint32, uint32, error) + NetOut func(netOutRule NetOutRule) error + Properties func() (Properties, error) + Property func(name string) (string, error) + RemoveProperty func(name string) error + Run func(ProcessSpec, ProcessIO) (Process, error) + SetGraceTime func(graceTime time.Duration) error + SetProperty func(name string, value string) error + Stop func(kill bool) error + StreamIn func(spec StreamInSpec) error + StreamOut func(spec StreamOutSpec) (io.ReadCloser, error) + type ContainerBandwidthStat struct + InBurst uint64 + InRate uint64 + OutBurst uint64 + OutRate uint64 + type ContainerCPUStat struct + System uint64 + Usage uint64 + User uint64 + type ContainerDiskStat struct + ExclusiveBytesUsed uint64 + ExclusiveInodesUsed uint64 + TotalBytesUsed uint64 + TotalInodesUsed uint64 + type ContainerInfo struct + ContainerIP string + ContainerIPv6 string + ContainerPath string + Events []string + ExternalIP string + HostIP string + MappedPorts []PortMapping + ProcessIDs []string + Properties Properties + State string + type ContainerInfoEntry struct + Err *Error + Info ContainerInfo + type ContainerMemoryStat struct + ActiveAnon uint64 + ActiveFile uint64 + Anon uint64 + Cache uint64 + File uint64 + HierarchicalMemoryLimit uint64 + HierarchicalMemswLimit uint64 + InactiveAnon uint64 + InactiveFile uint64 + MappedFile uint64 + Pgfault uint64 + Pgmajfault uint64 + Pgpgin uint64 + Pgpgout uint64 + Rss uint64 + Swap uint64 + SwapCached uint64 + TotalActiveAnon uint64 + TotalActiveFile uint64 + TotalCache uint64 + TotalInactiveAnon uint64 + TotalInactiveFile uint64 + TotalMappedFile uint64 + TotalPgfault uint64 + TotalPgmajfault uint64 + TotalPgpgin uint64 + TotalPgpgout uint64 + TotalRss uint64 + TotalSwap uint64 + TotalUnevictable uint64 + TotalUsageTowardLimit uint64 + Unevictable uint64 + type ContainerMetricsEntry struct + Err *Error + Metrics Metrics + type ContainerNetworkStat struct + RxBytes uint64 + TxBytes uint64 + type ContainerNotFoundError struct + Handle string + func (err ContainerNotFoundError) Error() string + type ContainerPidStat struct + Current uint64 + Max uint64 + type ContainerSpec struct + BindMounts []BindMount + Env []string + GraceTime time.Duration + Handle string + Image ImageRef + Limits Limits + NetIn []NetIn + NetOut []NetOutRule + Network string + Privileged bool + Properties Properties + RootFSPath string + type DiskLimitScope uint8 + const DiskLimitScopeExclusive + const DiskLimitScopeTotal + type DiskLimits struct + ByteHard uint64 + ByteSoft uint64 + InodeHard uint64 + InodeSoft uint64 + Scope DiskLimitScope + type Error struct + Err error + func NewError(err string) *Error + func (m *Error) UnmarshalJSON(data []byte) error + func (m Error) Error() string + func (m Error) MarshalJSON() ([]byte, error) + func (m Error) StatusCode() int + type ExecutableNotFoundError struct + Message string + func (err ExecutableNotFoundError) Error() string + type ICMPCode uint8 + func ICMPControlCode(code uint8) *ICMPCode + type ICMPControl struct + Code *ICMPCode + Type ICMPType + type ICMPType uint8 + type IPRange struct + End net.IP + Start net.IP + func IPRangeFromIP(ip net.IP) IPRange + func IPRangeFromIPNet(ipNet *net.IPNet) IPRange + type ImageRef struct + Password string + URI string + Username string + type Limits struct + Bandwidth BandwidthLimits + CPU CPULimits + Disk DiskLimits + Memory MemoryLimits + Pid PidLimits + type MemoryLimits struct + LimitInBytes uint64 + type Metrics struct + Age time.Duration + CPUEntitlement uint64 + CPUStat ContainerCPUStat + DiskStat ContainerDiskStat + MemoryStat ContainerMemoryStat + NetworkStat *ContainerNetworkStat + PidStat ContainerPidStat + type NetIn struct + ContainerPort uint32 + HostPort uint32 + type NetOutRule struct + ICMPs *ICMPControl + Log bool + Networks []IPRange + Ports []PortRange + Protocol Protocol + type PidLimits struct + Max uint64 + type PortMapping struct + ContainerPort uint32 + HostPort uint32 + type PortRange struct + End uint16 + Start uint16 + func PortRangeFromPort(port uint16) PortRange + type Process interface + ID func() string + SetTTY func(TTYSpec) error + Signal func(Signal) error + Wait func() (int, error) + type ProcessIO struct + Stderr io.Writer + Stdin io.Reader + Stdout io.Writer + type ProcessLimits struct + CPU CPULimits + Memory MemoryLimits + type ProcessNotFoundError struct + ProcessID string + func (err ProcessNotFoundError) Error() string + type ProcessSpec struct + Args []string + BindMounts []BindMount + Dir string + Env []string + ID string + Image ImageRef + Limits ResourceLimits + OverrideContainerLimits *ProcessLimits + Path string + TTY *TTYSpec + User string + type Properties map[string]string + type Protocol uint8 + const ProtocolAll + const ProtocolICMP + const ProtocolICMPv6 + const ProtocolTCP + const ProtocolUDP + type ResourceLimits struct + As *uint64 + Core *uint64 + Cpu *uint64 + Data *uint64 + Fsize *uint64 + Locks *uint64 + Memlock *uint64 + Msgqueue *uint64 + Nice *uint64 + Nofile *uint64 + Nproc *uint64 + Rss *uint64 + Rtprio *uint64 + Sigpending *uint64 + Stack *uint64 + type ServiceUnavailableError struct + Cause string + func (err ServiceUnavailableError) Error() string + type Signal int + const SignalKill + const SignalTerminate + type StreamInSpec struct + Path string + TarStream io.Reader + User string + type StreamOutSpec struct + Path string + User string + type TTYSpec struct + WindowSize *WindowSize + type UnrecoverableError struct + Symptom string + func (err UnrecoverableError) Error() string + type WindowSize struct + Columns uint16 + Rows uint16