package
Version:
v4.3.3+incompatible
Opens a new window with list of versions in this module.
Published: Aug 12, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 17
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Config struct {
MountPath string
}
Config holds configuration for the cgroup service.
CheckAndSetDefaults checks BPF configuration.
type Service struct {
*Config
}
Service manages cgroup orchestration.
New creates a new cgroup service.
Close will unmount the cgroup filesystem.
Create will create a cgroup for a given session.
ID returns the cgroup ID for the given session.
Place place a process in the cgroup for that session.
Remove will remove the cgroup for a session. An existing processes will be
moved to the root controller.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.