Documentation ¶
Index ¶
Constants ¶
View Source
const Path = "/proc"
Path to proc filesystem.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type NamespaceID ¶
type NamespaceID = uint64
type NamespaceType ¶
type NamespaceType string
const ( PIDNamespace NamespaceType = "pid" MountNamespace NamespaceType = "mnt" )
type Proc ¶
type Proc struct {
// contains filtered or unexported fields
}
func (*Proc) GetCurrentPIDNSID ¶
func (p *Proc) GetCurrentPIDNSID() (NamespaceID, error)
func (*Proc) GetNSForPID ¶
func (p *Proc) GetNSForPID(pid PID, ns NamespaceType) (NamespaceID, error)
func (*Proc) GetProcessStartTime ¶
GetProcessStartTime parses the /proc/<pid>/stat file to determine the start time of the process after system boot.
func (*Proc) LoadMountNSOldestProcesses ¶
func (p *Proc) LoadMountNSOldestProcesses() (map[NamespaceID]PID, error)
Click to show internal directories.
Click to hide internal directories.