control

package
v0.0.0-...-41d593c Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: Apache-2.0 Imports: 10 Imported by: 16

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) 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_cgroup1 is a generated GoMock package.
Package mock_cgroup1 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