const _cgroupFSType …
const _cgroupSubsysCPU …
const _cgroupSubsysCPUAcct …
const _cgroupSubsysCPUSet …
const _cgroupSubsysMemory …
const _cgroupCPUCFSQuotaUsParam …
const _cgroupCPUCFSPeriodUsParam …
const _cgroupMemCurrentUsage …
const _cgroupMemMaxUsage …
const _cgroupMemLimit …
const _procPathCGroup …
const _procPathMountInfo …
type CGroups …
func NewCGroups(procPathMountInfo, procPathCGroup string) (CGroups, error) { … }
func NewCGroupsForCurrentProcess() (CGroups, error) { … }
func (cg CGroups) CPUQuota() (float64, bool, error) { … }
func (cg CGroups) MemQuota() (currentUsage, maxUsage, memLimit int, err error) { … }