Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteGroupHierarchy ¶
DeleteGroupHierarchy deletes a V1 control group hierarchy. Processes in to-be-deleted control groups will be moved to root control groups.
Types ¶
type GroupHierarchy ¶
type GroupHierarchy struct {
// contains filtered or unexported fields
}
GroupHierarchy represents a V1 control group hierarchy
func NewGroupHierarchy ¶
func NewGroupHierarchy(config *settings.Settings) *GroupHierarchy
NewGroupHierarchy creates and initializes a GroupHierarchy struct
type ProcessMover ¶ added in v0.2.0
type ProcessMover interface { // Move a process, identified byt its pid, to a control group, identified by // its name Move(pid int, cgroup string) error }
ProcessMover objects implement the ability to move processes into process control groups.
Click to show internal directories.
Click to hide internal directories.