# Functions
CanUseCgroups checks whether it's possible to use the cgroups manager.
DefaultPathForPid returns a default cgroup path for a given PID.
GetManager returns a Manager for the provided cgroup name/path.
GetManagerFromPid returns a Manager for the cgroup that pid is a member of.
HasDbus checks if DBUS_SESSION_BUS_ADDRESS is set, and sane.
HasXDGRuntimeDir checks if XDG_Runtime_Dir is set, and sane.
No description provided by the author
LoadConfig loads a TOML cgroups config file into our native cgroups.Config struct.
LoadResources loads a cgroups config file into a LinuxResources struct.
NewManagerWithFile creates a Manager, applies the configuration at specPath, and adds pid to the cgroup.
NewManagerWithJSON creates a Manager, applies the JSON configuration supplied, and adds pid to the cgroup.
NewManagerWithSpec creates a Manager, applies the configuration in spec, and adds pid to the cgroup.
SaveConfig saves a native cgroups.Config struct into a TOML file at confPath.
UnmarshalJSON unmarshals a JSON string into a LinuxResources struct.
# Variables
No description provided by the author
# Structs
Config has container runtime resource constraints.
LinuxBlockIO for Linux cgroup 'blkio' resource management.
LinuxCPU for Linux cgroup 'cpu' resource management.
LinuxDeviceCgroup represents a device rule for the whitelist controller.
LinuxHugepageLimit structure corresponds to limiting kernel hugepages.
LinuxInterfacePriority for network interfaces.
LinuxMemory for Linux cgroup 'memory' resource management.
LinuxNetwork identification and priority configuration.
LinuxPids for Linux cgroup 'pids' resource management (Linux 4.3).
LinuxRdma for Linux cgroup 'rdma' resource management (Linux 4.11).
LinuxThrottleDevice struct holds a `major:minor rate_per_second` pair.
LinuxWeightDevice struct holds a `major:minor weight` pair for weightDevice.
Manager provides functions to modify, freeze, thaw, and destroy a cgroup.