Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetInitCgroupDir ¶ added in v0.9.0
func GetThisCgroupDir ¶
Returns the relative path to the cgroup docker is running in.
Types ¶
type Cgroup ¶ added in v0.9.0
type Cgroup struct { Name string `json:"name,omitempty"` Parent string `json:"parent,omitempty"` DeviceAccess bool `json:"device_access,omitempty"` // name of parent cgroup or slice Memory int64 `json:"memory,omitempty"` // Memory limit (in bytes) MemorySwap int64 `json:"memory_swap,omitempty"` // Total memory usage (memory + swap); set `-1' to disable swap }
Click to show internal directories.
Click to hide internal directories.