Documentation ¶
Index ¶
- func GetPIDs() ([]string, error)
- func GetPIDsFromCgroup(pid string) ([]string, error)
- func ParseAttrCurrent(pid string) (string, error)
- func ParseCmdLine(pid string) ([]string, error)
- func ParsePIDNamespace(pid string) (string, error)
- func ParseUserNamespace(pid string) (string, error)
- type IDMap
- type Stat
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetPIDsFromCgroup ¶
GetPIDsFromCgroup returns a strings slice of all pids listesd in pid's pids cgroup. It automatically detects if we're running in unified mode or not.
func ParseAttrCurrent ¶
func ParseCmdLine ¶
func ParsePIDNamespace ¶
func ParseUserNamespace ¶
Types ¶
type IDMap ¶
func ReadMappings ¶
type Stat ¶
type Stat struct { Pid string Comm string State string Ppid string Pgrp string Session string TtyNr string Tpgid string Flags string Minflt string Cminflt string Majflt string Cmajflt string Utime string Stime string Cutime string Cstime string Priority string Nice string NumThreads string Itrealvalue string Starttime string Vsize string }
type Status ¶
type Status struct { Name string Umask string State string Tgid string Ngid string Pid string PPid string TracerPid string Uids []string Gids []string FdSize string Groups []string NStgid string NSpid []string NSpgid string NSsid string VMPeak string VMSize string VMLCK string VMPin string VMHWM string VMRSS string RssAnon string RssFile string RssShmem string VMData string VMStk string VMExe string VMLib string VMPTE string VMPMD string VMSwap string HugetlbPages string Threads string SigQ string SigPnd string ShdPnd string SigBlk string SigIgn string SigCgt string CapInh string CapPrm string CapEff string CapBnd string CapAmb string NoNewPrivs string Seccomp string CpusAllowed string CpusAllowedList string MemsAllowed string MemsAllowedList string VoluntaryCtxtSwitches string NonvoluntaryCtxtSwitches string }
Click to show internal directories.
Click to hide internal directories.