cgroups

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetProcessControllers

func GetProcessControllers(pid interface{}) (map[string]string, error)

GetProcessControllers returns the mapping between controller types and their paths inside cgroup fs for the specified PID

Types

type Controller

type Controller struct {
	// contains filtered or unexported fields
}

Controller represents a named controller for a process

func GetProcessController

func GetProcessController(pid interface{}, controllerName string) (*Controller, error)

GetProcessController returns a named resource Controller for the specified PID

func (*Controller) Set

func (c *Controller) Set(name string, value interface{}) error

Set sets the value of a controller setting

Jump to

Keyboard shortcuts

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