package
0.0.0-20221020015033-d691e2b79fc8
Repository: https://github.com/baidu/easyfaas.git
Documentation: pkg.go.dev

# Functions

Gets a single int64 value from the specified cgroup file.
Gets a single uint64 value from the specified cgroup file.
GetCgroupSubsystems returns information about the mounted cgroup subsystems.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
IntKeySet creates a Int from a keys of a map[int](? extends interface{}).
MilliCPUToQuota converts milliCPU to CFS quota and period values.
MilliCPUToShares converts the milliCPU to CFS shares.
NewCgroupManager is a factory method that returns a CgroupManager.
New creates a Int from a list of values.
New creates a String from a list of values.
QuotaToMilliCPU converts CFS quota and period values to milliCPU.
StringKeySet creates a String from a keys of a map[string](? extends interface{}).

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
default memory limits is PAGE_COUNTER_MAX, now support 64 bit arch refs: https://github.com/torvalds/linux/blob/master/include/linux/page_counter.h.
No description provided by the author
No description provided by the author
Taken from lmctfy https://github.com/google/lmctfy/blob/master/lmctfy/controllers/cpu_controller.cc.
100000 is equivalent to 100ms.
No description provided by the author

# Variables

No description provided by the author

# Structs

CgroupConfig holds the cgroup configuration information.
CgroupSubsystems holds information about the mounted cgroup subsytem.
No description provided by the author
No description provided by the author
No description provided by the author

# Interfaces

CgroupManager allows for cgroup management.

# Type aliases

CgroupName is the abstract name of a cgroup prior to any driver specific conversion.
sets.Int is a set of ints, implemented via map[int]struct{} for minimal memory consumption.
sets.String is a set of strings, implemented via map[string]struct{} for minimal memory consumption.