Versions in this module Expand all Collapse all v0 v0.0.11 Aug 25, 2021 v0.0.2 Aug 25, 2021 v0.0.1 Aug 25, 2021 Changes in this version + 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 struct + ContainerID int + HostID int + Size int + func ReadMappings(path string) ([]IDMap, error) + type Stat struct + Cmajflt string + Cminflt string + Comm string + Cstime string + Cutime string + Flags string + Itrealvalue string + Majflt string + Minflt string + Nice string + NumThreads string + Pgrp string + Pid string + Ppid string + Priority string + Session string + Starttime string + State string + Stime string + Tpgid string + TtyNr string + Utime string + Vsize string + func ParseStat(pid string) (*Stat, error) + type Status struct + CapAmb string + CapBnd string + CapEff string + CapInh string + CapPrm string + CpusAllowed string + CpusAllowedList string + FdSize string + Gids []string + Groups []string + HugetlbPages string + MemsAllowed string + MemsAllowedList string + NSpgid string + NSpid []string + NSsid string + NStgid string + Name string + Ngid string + NoNewPrivs string + NonvoluntaryCtxtSwitches string + PPid string + Pid string + RssAnon string + RssFile string + RssShmem string + Seccomp string + ShdPnd string + SigBlk string + SigCgt string + SigIgn string + SigPnd string + SigQ string + State string + Tgid string + Threads string + TracerPid string + Uids []string + Umask string + VMData string + VMExe string + VMHWM string + VMLCK string + VMLib string + VMPMD string + VMPTE string + VMPeak string + VMPin string + VMRSS string + VMSize string + VMStk string + VMSwap string + VoluntaryCtxtSwitches string + func ParseStatus(pid string, joinUserNS bool) (*Status, error)