Versions in this module Expand all Collapse all v0 v0.0.1 Mar 17, 2024 Changes in this version + const CgroupControllersFile + const CgroupDefaultController + const CgroupV1FsType + const CgroupV2FsType + func CouldNotFindOrMountDefaultCgroup(ver CgroupVersion) error + func CouldNotOpenFile(file string, err error) error + func ErrorParsingFile(file string, err error) error + func GetCgroupControllerHierarchy(subsys string) (int, error) + func GetCgroupPath(rootDir string, cgroupId uint64, subPath string) (string, time.Time, error) + func IsCgroupV2MountedAndDefault() (bool, error) + func NoCgroupSupport() error + type Cgroup interface + GetMountPoint func() string + GetVersion func() CgroupVersion + func NewCgroup(ver CgroupVersion) (Cgroup, error) + type CgroupV1 struct + func (c *CgroupV1) GetMountPoint() string + func (c *CgroupV1) GetVersion() CgroupVersion + type CgroupV2 struct + func (c *CgroupV2) GetMountPoint() string + func (c *CgroupV2) GetVersion() CgroupVersion + type CgroupVersion int + const CgroupVersion1 + const CgroupVersion2 + func GetCgroupDefaultVersion() (CgroupVersion, error) + func (v CgroupVersion) String() string + type Cgroups struct + func NewCgroups() (*Cgroups, error) + func (cs *Cgroups) Destroy() error + func (cs *Cgroups) GetCgroup(ver CgroupVersion) Cgroup + func (cs *Cgroups) GetDefaultCgroup() Cgroup + func (cs *Cgroups) GetDefaultCgroupHierarchyID() int + type VersionNotSupported struct + func (c *VersionNotSupported) Error() string