manager

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2022 License: Apache-2.0 Imports: 8 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config *configs.Cgroup) (cgroups.Manager, error)

New returns the instance of a cgroup manager, which is chosen based on the local environment (whether cgroup v1 or v2 is used) and the config (whether config.Systemd is set or not).

func NewWithPaths

func NewWithPaths(config *configs.Cgroup, paths map[string]string) (cgroups.Manager, error)

NewWithPaths is similar to New, and can be used in case cgroup paths are already well known, which can save some resources.

For cgroup v1, the keys are controller/subsystem name, and the values are absolute filesystem paths to the appropriate cgroups.

For cgroup v2, the only key allowed is "" (empty string), and the value is the unified cgroup path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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