package
0.7.0
Repository: https://github.com/lxc/incus.git
Documentation: pkg.go.dev

# Functions

GetInfo returns basic system cgroup information.
Init initializes cgroups.
New setups a new CGroup abstraction using the provided read/writer.
NewFileReadWriter returns a CGroup instance using the filesystem as its backend.
ParseCPU parses CPU allowances.
TaskSchedulerTrigger triggers a CPU rebalance.

# Constants

Blkio resource control.
BlkioWeight resource control.
CgroupsDisabled indicates that cgroups are not supported.
CgroupsHybrid indicates that this is a mixed cgroup1 and cgroup2 layout.
CgroupsLegacy indicates that this is a pure cgroup1 layout.
CgroupsUnified indicates that this is a pure cgroup2 layout.
CPU resource control.
CPUAcct resource control.
CPUSet resource control.
Devices resource control.
Freezer resource control.
Hugetlb resource control.
Memory resource control.
MemoryMaxUsage resource control.
MemorySwap resource control.
MemorySwapMaxUsage resource control.
MemorySwappiness resource control.
MemorySwapUsage resource control.
Pids resource control.
Unavailable indicates the lack of controller.
V1 indicates the controller is backed by Cgroup V1.
V2 indicates the controller is backed by Cgroup V2.

# Variables

DeviceSchedRebalance channel for scheduling a CPU rebalance.
ErrControllerMissing indicates that the requested controller isn't setup on the system.
ErrUnknownVersion indicates that a version other than those supported was detected during init.

# Structs

CGroup represents the main cgroup abstraction.
CPUStats represent CPU stats.
Info contains system cgroup information.
IOStats represent IO stats.

# Interfaces

The ReadWriter interface is used to read/write cgroup data.

# Type aliases

Backend indicates whether to use v1, v2 or unavailable.
Layout determines the cgroup layout on this system.
Resource is a generic type used to abstract resource control features support for the legacy and unified hierarchy.