cgroups

package
v0.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteGroupHierarchy

func DeleteGroupHierarchy(config *settings.Settings) error

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

func (*GroupHierarchy) Move added in v0.2.0

func (gh *GroupHierarchy) Move(pid int, cgroup string) error

Move a process, identified byt its pid, to a control group, identified by its name

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL