Documentation ¶
Index ¶
- func CountChilds(pid int) (int, error)
- func ExtractPid(path string) (pid uint, err error)
- func HasFilesystem(fs string) (bool, error)
- func HasNamespace(pid int, nstype string) (bool, error)
- func ParentMount(path string) (string, error)
- func ParseMountInfo(path string) (map[string][]string, error)
- func ReadIDMap(path string) (uint32, uint32, error)
- func SetOOMScoreAdj(pid int, score *int) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CountChilds ¶
CountChilds returns the number of child processes for a given process id
func ExtractPid ¶
ExtractPid returns a pid extracted from path of type "/proc/1"
func HasFilesystem ¶
HasFilesystem returns whether kernel support filesystem or not
func HasNamespace ¶
HasNamespace checks if host namespace and container namespace are different.
func ParentMount ¶
ParentMount parses mountinfo and return the path of parent mount point for which the provided path is mounted in
func ParseMountInfo ¶
ParseMountInfo parses mountinfo pointing to path and returns a map of parent mount points with associated child mount points
func SetOOMScoreAdj ¶
SetOOMScoreAdj sets OOM score for process with pid
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.