manager

package
v1.10.3 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 8 Imported by: 1 module, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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