cgroup

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2018 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 4 more 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

Jump to

Keyboard shortcuts

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