Documentation ¶
Index ¶
- Variables
- func GetCgroupParamKeyValue(t string) (string, uint64, error)
- func GetCgroupParamString(cgroupPath, cgroupFile string) (string, error)
- func GetCgroupParamUint(cgroupPath, cgroupFile string) (uint64, error)
- func ParseUint(s string, base, bitSize int) (uint64, error)
- func ReadFile(dir, file string) (string, error)
- func WriteFile(dir, file, data string) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotValidFormat = errors.New("line is not a valid key value format")
)
Functions ¶
func GetCgroupParamKeyValue ¶
Parses a cgroup param and returns as name, value
i.e. "io_service_bytes 1234" will return as io_service_bytes, 1234
func GetCgroupParamString ¶
Gets a string value from the specified cgroup file
func GetCgroupParamUint ¶
Gets a single uint64 value from the specified cgroup file.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.