Documentation
¶
Index ¶
- Variables
- func Add(cg string) error
- func Current() (string, error)
- func IsV2() (bool, error)
- func MockOsRemove(m func(p string) error) (restore func())
- func MockProcSelfCgroup(p string) (restore func())
- func MockSysFsCgroup(p string) (restore func())
- func MovePidTo(pid int, cg string) error
- func ReadKVProperty(cg, property, key string) (value string, err error)
- func Remove(cg string) error
- func WriteProperty(cg, property, value string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var KeyNotFoundError = errors.New("key not found")
Functions ¶
func MockOsRemove ¶
Use only from tests, from cross package mocking
func MockProcSelfCgroup ¶
func MockProcSelfCgroup(p string) (restore func())
Use only from tests, from cross package mocking
func MockSysFsCgroup ¶
func MockSysFsCgroup(p string) (restore func())
Use only from tests, from cross package mocking
func ReadKVProperty ¶
ReadKVProperty returns the value of a given key from the property, eg. oom_group_kill from memory.events.local.
func WriteProperty ¶
WriteProperty writes the provided value to the given property.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.