Documentation ¶
Index ¶
Constants ¶
View Source
const ( //DevicesSubsystem device subsystem DevicesSubsystem = Subsystem("devices") //CPUSetSubsystem cpu subsystem CPUSetSubsystem = Subsystem("cpuset") //MemorySubsystem memory subsystem MemorySubsystem = Subsystem("memory") //CGroupBase base mount point CGroupBase = "/sys/fs/cgroup" )
Variables ¶
View Source
var ( //ErrDoesNotExist does not exist error ErrDoesNotExist = fmt.Errorf("cgroup does not exist") //ErrInvalidType invalid cgroup type ErrInvalidType = fmt.Errorf("cgroup of invalid type") )
Functions ¶
Types ¶
type CPUSetGroup ¶ added in v1.4.0
type DevicesGroup ¶
type Group ¶
type Group interface { Name() string Subsystem() Subsystem Task(pid int) error Tasks() ([]int, error) Root() Group Reset() }
Group generic cgroup interface
type MemoryGroup ¶ added in v1.4.0
Click to show internal directories.
Click to hide internal directories.