Documentation ¶
Index ¶
- func CGroupPidPath(pid uint64) string
- func MountInfoPidPath(pid uint64) string
- func ParamRead(paramFilePath string, informer logger.Informer) (string, error)
- type CGroupSubSystem
- type CGroupSubSystemName
- type CGroupSubSystems
- type CGroupVersion
- type CPU
- type Memory
- type MountPoint
- type MountPointPath
- type MountPointRootPath
- type MountPoints
- type SubSystems
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CGroupPidPath ¶
func MountInfoPidPath ¶
Types ¶
type CGroupSubSystem ¶
type CGroupSubSystem struct { ID uint8 Name CGroupSubSystemName MountPointRoot MountPointRootPath }
func NewCGroupFromLine ¶
func NewCGroupFromLine(line string, informer logger.Informer) ([]*CGroupSubSystem, error)
type CGroupSubSystemName ¶
type CGroupSubSystemName string
const CPUSubSystem CGroupSubSystemName = "cpu"
const MemorySubSystem CGroupSubSystemName = "memory"
type CGroupSubSystems ¶
type CGroupSubSystems map[CGroupSubSystemName]*CGroupSubSystem
func ParseCGroup ¶
func ParseCGroup(processCGroupFilePath string, informer logger.Informer) (CGroupSubSystems, error)
type CGroupVersion ¶
type CGroupVersion string
type MountPoint ¶
type MountPoint struct { ID uint32 ParentID uint32 DeviceID string Root MountPointRootPath MountPoint MountPointPath Options []string OptionalFields []string FSType CGroupVersion MountSource string SuperOptions []string }
func NewMountPointFromLine ¶
func NewMountPointFromLine(line string) (*MountPoint, error)
type MountPointPath ¶
type MountPointPath string
type MountPointRootPath ¶
type MountPointRootPath string
type MountPoints ¶
type MountPoints map[uint32]*MountPoint
func ParseMountInfo ¶
func ParseMountInfo(processMountInfoFilePath string, inormer logger.Informer) (MountPoints, error)
type SubSystems ¶
type SubSystems struct { CGroupVersion CGroupVersion CPU *CPU Memory *Memory }
Click to show internal directories.
Click to hide internal directories.