Documentation ¶
Index ¶
- type Backend
- type BandwidthLimits
- type BindMount
- type BindMountMode
- type BindMountOrigin
- type CPULimits
- type Capacity
- type Client
- type Container
- type ContainerBandwidthStat
- type ContainerCPUStat
- type ContainerDiskStat
- type ContainerInfo
- type ContainerMemoryStat
- type ContainerSpec
- type DiskLimits
- type MemoryLimits
- type PortMapping
- type Process
- type ProcessIO
- type ProcessSpec
- type Properties
- type ResourceLimits
- type TTYSpec
- type WindowSize
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BandwidthLimits ¶
type BindMount ¶
type BindMount struct { SrcPath string DstPath string Mode BindMountMode Origin BindMountOrigin }
type BindMountMode ¶
type BindMountMode uint8
const BindMountModeRO BindMountMode = 0
const BindMountModeRW BindMountMode = 1
type BindMountOrigin ¶
type BindMountOrigin uint8
const BindMountOriginContainer BindMountOrigin = 1
const BindMountOriginHost BindMountOrigin = 0
type Container ¶
type Container interface { Handle() string Stop(kill bool) error Info() (ContainerInfo, error) StreamIn(dstPath string, tarStream io.Reader) error StreamOut(srcPath string) (io.ReadCloser, error) LimitBandwidth(limits BandwidthLimits) error CurrentBandwidthLimits() (BandwidthLimits, error) LimitCPU(limits CPULimits) error CurrentCPULimits() (CPULimits, error) LimitDisk(limits DiskLimits) error CurrentDiskLimits() (DiskLimits, error) LimitMemory(limits MemoryLimits) error CurrentMemoryLimits() (MemoryLimits, error) NetIn(hostPort, containerPort uint32) (uint32, uint32, error) NetOut(network string, port uint32) error Run(ProcessSpec, ProcessIO) (Process, error) Attach(uint32, ProcessIO) (Process, error) }
type ContainerBandwidthStat ¶
type ContainerCPUStat ¶
type ContainerDiskStat ¶
type ContainerInfo ¶
type ContainerInfo struct { State string Events []string HostIP string ContainerIP string ContainerPath string ProcessIDs []uint32 MemoryStat ContainerMemoryStat CPUStat ContainerCPUStat DiskStat ContainerDiskStat BandwidthStat ContainerBandwidthStat Properties Properties MappedPorts []PortMapping }
type ContainerMemoryStat ¶
type ContainerMemoryStat struct { Cache uint64 Rss uint64 MappedFile uint64 Pgpgin uint64 Pgpgout uint64 Swap uint64 Pgfault uint64 Pgmajfault uint64 InactiveAnon uint64 ActiveAnon uint64 InactiveFile uint64 ActiveFile uint64 Unevictable uint64 HierarchicalMemoryLimit uint64 HierarchicalMemswLimit uint64 TotalCache uint64 TotalRss uint64 TotalMappedFile uint64 TotalPgpgin uint64 TotalPgpgout uint64 TotalSwap uint64 TotalPgfault uint64 TotalPgmajfault uint64 TotalInactiveAnon uint64 TotalActiveAnon uint64 TotalInactiveFile uint64 TotalActiveFile uint64 TotalUnevictable uint64 }
type ContainerSpec ¶
type DiskLimits ¶
type MemoryLimits ¶
type MemoryLimits struct {
LimitInBytes uint64
}
type PortMapping ¶
type ProcessSpec ¶
type Properties ¶
type ResourceLimits ¶
type TTYSpec ¶
type TTYSpec struct {
WindowSize *WindowSize
}
type WindowSize ¶
Click to show internal directories.
Click to hide internal directories.