package
Version:
v0.0.0-...-1f2438a
Opens a new window with list of versions in this module.
Published: May 4, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Config struct {
Sysfs string
}
Config is the cgroup driver configuration
Driver is a cgroup driver to join or execute
into a given container's cgroup
NewDriver returns a cgroup driver from the given configuration
Kind represents a cgroup name
const (
Blkio Kind = "blkio"
CPU Kind = "cpu,cpuacct"
CPUSet Kind = "cpuset"
Devices Kind = "devices"
Freezer Kind = "freezer"
HugeTLB Kind = "hugetlb"
Memory Kind = "memory"
Net Kind = "net_cls,net_prio"
PerfEvent Kind = "perf_event"
PIDs Kind = "pids"
)
func AppendCgroups(blkio, cpu, cpuset, devices, freezer, hugetlb, memory, net, perfevent, pids bool) []Kind
AppendCgroups creates a slice of the enabled cgroups
Source Files
¶
Click to show internal directories.
Click to hide internal directories.