const systemdSuffix …
const Cgroup2MemoryMin …
const Cgroup2MemoryHigh …
const Cgroup2MaxCpuLimit …
const Cgroup2MaxSwapFilename …
var RootCgroupName …
func NewCgroupName(base CgroupName, components ...string) CgroupName { … }
func escapeSystemdCgroupName(part string) string { … }
func unescapeSystemdCgroupName(part string) string { … }
func (cgroupName CgroupName) ToSystemd() string { … }
func ParseSystemdToCgroupName(name string) CgroupName { … }
func (cgroupName CgroupName) ToCgroupfs() string { … }
func ParseCgroupfsToCgroupName(name string) CgroupName { … }
func IsSystemdStyleName(name string) bool { … }
type CgroupSubsystems …
type cgroupCommon …
var _ …
var _ …
func NewCgroupManager(cs *CgroupSubsystems, cgroupDriver string) CgroupManager { … }
func newCgroupCommon(cs *CgroupSubsystems, cgroupDriver string) cgroupCommon { … }
func (m *cgroupCommon) Name(name CgroupName) string { … }
func (m *cgroupCommon) CgroupName(name string) CgroupName { … }
func (m *cgroupCommon) buildCgroupPaths(name CgroupName) map[string]string { … }
func (m *cgroupCommon) libctCgroupConfig(in *CgroupConfig, needResources bool) *libcontainerconfigs.Cgroup { … }
func (m *cgroupCommon) Destroy(cgroupConfig *CgroupConfig) error { … }
func (m *cgroupCommon) SetCgroupConfig(name CgroupName, resourceConfig *ResourceConfig) error { … }
func getCPUWeight(cpuShares *uint64) uint64 { … }
var availableRootControllersOnce …
var availableRootControllers …
func (m *cgroupCommon) toResources(resourceConfig *ResourceConfig) *libcontainerconfigs.Resources { … }
func (m *cgroupCommon) maybeSetHugetlb(resourceConfig *ResourceConfig, resources *libcontainerconfigs.Resources) { … }
func (m *cgroupCommon) Update(cgroupConfig *CgroupConfig) error { … }
func (m *cgroupCommon) Create(cgroupConfig *CgroupConfig) error { … }
func (m *cgroupCommon) Pids(name CgroupName) []int { … }
func (m *cgroupCommon) ReduceCPULimits(cgroupName CgroupName) error { … }
func readCgroupMemoryConfig(cgroupPath string, memLimitFile string) (*ResourceConfig, error) { … }