Documentation
¶
Index ¶
- Variables
- func AllowAny(_ Subsystem, _ Path, _ error) error
- func IgnoreModules(names ...string) func(*memoryController)
- func IgnoreNotExist(err error) error
- func NewBlkio(root string, options ...func(controller *blkioController)) *blkioController
- func NewCpu(root string) *cpuController
- func NewCpuacct(root string) *cpuacctController
- func NewCpuset(root string) *cpusetController
- func NewDevices(root string) *devicesController
- func NewFreezer(root string) *freezerController
- func NewHugetlb(root string) (*hugetlbController, error)
- func NewMemory(root string, options ...func(*memoryController)) *memoryController
- func NewNamed(root string, name Name) *namedController
- func NewNetCls(root string) *netclsController
- func NewNetPrio(root string) *netprioController
- func NewPids(root string) *pidsController
- func NewRdma(root string) *rdmaController
- func OptionalSwap() func(*memoryController)
- func ParseCgroupFile(path string) (map[string]string, error)
- func ParseCgroupFileUnified(path string) (map[string]string, string, error)
- func ProcRoot(path string) func(controller *blkioController)
- func RequireDevices(s Subsystem, _ Path, _ error) error
- func RootPath(subsystem Name) (string, error)
- func RunningInUserNS() bool
- type CGMode
- type Cgroup
- type ErrorHandler
- type EventNotificationMode
- type Hierarchy
- type InitCheck
- type InitConfig
- type InitOpts
- type MemoryEvent
- type MemoryPressureLevel
- type Name
- type Path
- type PerfEventController
- type Process
- type State
- type Subsystem
- type SystemdController
- type Task
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidPid = errors.New("cgroups: pid must be greater than 0") ErrMountPointNotExist = errors.New("cgroups: cgroup mountpoint does not exist") ErrInvalidFormat = errors.New("cgroups: parsing file with invalid format failed") ErrFreezerNotSupported = errors.New("cgroups: freezer cgroup not supported on this system")