package cgroups
import "github.com/containerd/cgroups/v3"
Index ¶
Functions ¶
func RunningInUserNS ¶
func RunningInUserNS() bool
RunningInUserNS detects whether we are currently running in a user namespace. Copied from github.com/lxc/lxd/shared/util.go
Types ¶
type CGMode ¶
type CGMode int
CGMode is the cgroups mode of the host system
const ( // Unavailable cgroup mountpoint CGMode = iota // Legacy cgroups v1 Legacy // Hybrid with cgroups v1 and v2 controllers mounted Hybrid // Unified with only cgroups v2 mounted Unified )
func Mode ¶
func Mode() CGMode
Mode returns the cgroups mode running on the host
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
cgroup1 | |
cgroup1/stats | |
cgroup2 | |
cgroup2/stats |
- Version
- v3.0.0
- Published
- Jan 9, 2023
- Platform
- js/wasm
- Imports
- 6 packages
- Last checked
- 21 hours ago –
Tools for package owners.