Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultCgroupRoot = "/sys/fs/cgroup"
DefaultCgroupRoot is the standard cgroup v2 root
Variables ¶
This section is empty.
Functions ¶
func FindContainerCgroupPath ¶
FindContainerCgroupPath attempts to find the cgroup path for a container ID. Tries well-known patterns first, then falls back to walking the cgroup tree.
func GetCgroupInodeFromPath ¶
GetCgroupInodeFromPath returns the inode number of a cgroup directory on Linux.
func ReadCgroupProcs ¶
ReadCgroupProcs reads the PIDs from a cgroup's cgroup.procs file.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.