package
1.0.1
Repository: https://github.com/containers/common.git
Documentation: pkg.go.dev

# Functions

GetAvailableControllers get string:bool map of all the available controllers.
GetSystemCPUUsage returns the system usage for all the cgroups.
GetUserConnection returns an user connection to D-BUS.
IsCgroup2UnifiedMode returns whether we are running in cgroup 2 cgroup2 mode.
Load loads an existing cgroup control.
New creates a new cgroup control.
NewSystemd creates a new cgroup control.
UserOwnsCurrentSystemdCgroup checks whether the current EUID owns the current cgroup.

# Constants

Blkio is the blkio controller.
CPU is the cpu controller.
CPUAcct is the cpuacct controller.
CPUset is the cpuset controller.
Memory is the memory controller.
Pids is the pids controller.

# Variables

ErrCgroupDeleted means the cgroup was deleted.
ErrCgroupV1Rootless means the cgroup v1 were attempted to be used in rootless environment.
No description provided by the author

# Structs

BlkIOEntry describes an entry in the blkio stats.
BlkioMetrics keeps usage stats for the blkio cgroup controller.
CgroupControl controls a cgroup hierarchy.
CPUMetrics keeps stats for the CPU usage.
CPUUsage keeps stats for the CPU usage (unit: nanoseconds).
MemoryMetrics keeps usage stats for the memory cgroup controller.
MemoryUsage keeps stats for the memory usage.
Metrics keeps usage stats for the cgroup controllers.
PidsMetrics keeps usage stats for the pids cgroup controller.