ratz/src/system/capacity/cgroups/cgroup.go

type CGroup

// NewCGroup returns a new *CGroup from a given path.
func NewCGroup(path string) *CGroup {}

// Path returns the path of the CGroup*.
func (cg *CGroup) Path() string {}

// ParamPath returns the path of the given cgroup param under itself.
func (cg *CGroup) ParamPath(param string) string {}

// readFirstLine reads the first line from a cgroup param file.
func (cg *CGroup) readFirstLine(param string) (string, error) {}

// readInt parses the first line from a cgroup param file as int.
func (cg *CGroup) readInt(param string) (int, error) {}