control

package
v1.52.2 Latest Latest
Warning

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

Go to latest
Published: May 20, 2021 License: Apache-2.0 Imports: 7 Imported by: 5 modules, 16 packages

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

This section is empty.

Types

type Control

type Control interface {
	Create(cgroupSpec *Spec) (cgroups.Cgroup, error)
	Remove(cgroupPath string) error
	Exists(cgroupPath string) bool
	Init() error
}

func New

func New() Control

New is used to obtain a new cgroup control object

type Spec

type Spec struct {
	// Root is the cgroup path
	Root string
	// Specs are for all the linux resources including cpu, memory, etc...
	Specs *specs.LinuxResources
}

Spec captures the abstraction for a creating a new cgroup based on root and the runtime specifications

Directories

Path Synopsis
mock
Package mock_cgroups is a generated GoMock package.
Package mock_cgroups is a generated GoMock package.
mock_factory
Package mock_factory is a generated GoMock package.
Package mock_factory is a generated GoMock package.
Package mock_control is a generated GoMock package.
Package mock_control is a generated GoMock package.

Jump to

Keyboard shortcuts

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