const MinShares …
const MaxShares …
const SharesPerCPU …
const MilliCPUToCPU …
const QuotaPeriod …
const MinQuotaPeriod …
func MilliCPUToQuota(milliCPU, period int64) int64 { … }
func MilliCPUToShares(milliCPU int64) uint64 { … }
func ResourceConfigForPod(pod *v1.Pod, enforceCPULimit bool, cpuPeriod uint64, enforceMemoryQoS bool) *ResourceConfig { … }
func GetCgroupSubsystems() (*CgroupSubsystems, error) { … }
func getCgroupProcs(dir string) ([]int, error) { … }
func GetPodCgroupNameSuffix(podUID types.UID) string { … }
func NodeAllocatableRoot(cgroupRoot string, cgroupsPerQOS bool, cgroupDriver string) string { … }
func GetKubeletContainer(kubeletCgroups string) (string, error) { … }