cgroup

package
v0.42.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 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