cgroups

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2018 License: Apache-2.0 Imports: 7 Imported by: 2

Documentation

Index

Constants

View Source
const (
	DevicesSubsystem = "devices"
	CGroupBase       = "/sys/fs/cgroup"
)

Variables

This section is empty.

Functions

func Init

func Init() (err error)

Types

type DevicesGroup

type DevicesGroup interface {
	Group
	Deny(spec string) error
	Allow(spec string) error
	List() ([]string, error)
}

type Group

type Group interface {
	Name() string
	Subsystem() string
	Task(pid int) error
}

func GetGroup

func GetGroup(name string, subsystem string) (Group, error)

Jump to

Keyboard shortcuts

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