cgroup

package
v0.44.1 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CPUSetPath

func CPUSetPath() string

func ControllerPath

func ControllerPath(controller string) string

Types

type MockParser

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

Mock of Parser interface

func NewMockParser

func NewMockParser(ctrl *gomock.Controller) *MockParser

func (*MockParser) EXPECT

func (_m *MockParser) EXPECT() *_MockParserRecorder

func (*MockParser) Parse

func (_m *MockParser) Parse(pid int) (map[string]string, error)

type Parser

type Parser interface {
	// Parse retrieves the cgroup data for the given process id and returns a
	// map of controllers to slice paths.
	Parse(pid int) (map[string]string, error)
}

func NewParser

func NewParser() Parser

Jump to

Keyboard shortcuts

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