control

package
v1.30.0 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

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