package
1.30.0
Repository: https://github.com/coreos/rocket.git
Documentation: pkg.go.dev

# Functions

CreateCgroups mounts the v1 cgroup controllers hierarchy in /sys/fs/cgroup under root.
GetCgroupPathByPid returns the cgroup path of the process with the given pid and given controller.
GetControllerDirs takes a map with the enabled cgroup controllers grouped by hierarchy and returns the directory names as they should be in /sys/fs/cgroup.
GetEnabledCgroups returns a map with the enabled cgroup controllers grouped by hierarchy.
GetOwnCgroupPath returns the cgroup path of this process in controller hierarchy.
IsControllerMounted returns whether a controller is mounted by checking that cgroup.procs is accessible.
JoinSubcgroup makes the calling process join the subcgroup hierarchy on a particular controller.
RemountCgroups remounts the v1 cgroup hierarchy under root.