Documentation
¶
Index ¶
- func InitHostProcfs() error
- func MountPoint() string
- type Process
- func (proc *Process) CGroupNsId() (uint32, error)
- func (proc *Process) Children(all bool) ([]*Process, error)
- func (proc *Process) Cmdline() ([]string, error)
- func (proc *Process) Comm() (string, error)
- func (proc *Process) Cwd() (string, error)
- func (proc *Process) Environ() ([]string, error)
- func (proc *Process) Executable() (string, error)
- func (proc *Process) MountNsId() (uint32, error)
- func (proc *Process) NetNsId() (uint32, error)
- func (proc *Process) PPid() (int, error)
- func (proc *Process) Pid() int
- func (proc *Process) PidNsId() (uint32, error)
- func (proc *Process) Root() (string, error)
- func (proc *Process) Stat() (stat *Stat, err error)
- func (proc *Process) Status() (status *Status, err error)
- func (proc *Process) UserNsId() (uint32, error)
- func (proc *Process) UtsNsId() (uint32, error)
- type Procfs
- type Stat
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitHostProcfs ¶
func InitHostProcfs() error
func MountPoint ¶
func MountPoint() string
Types ¶
type Process ¶
type Process struct {
// contains filtered or unexported fields
}
func AllProcesses ¶
func NewProcess ¶
func (*Process) CGroupNsId ¶
CGroupNsId reads cgroup namespace inode for specified process id and host procfs
func (*Process) Executable ¶
func (*Process) MountNsId ¶
MountNsId reads mount namespace inode for specified process id and host procfs
func (*Process) NetNsId ¶
NetNsId reads net namespace inode for specified process id and host procfs
func (*Process) PidNsId ¶
PidNsId reads pid namespace inode for specified process id and host procfs
type Procfs ¶
type Stat ¶
type Stat struct { Pid int Comm string State byte PPid int PGrp int Session int TTY int TPGid int Flags uint Minflt uint64 Cminflt uint64 Majflt uint64 Cmajflt uint64 Utime uint64 Stime uint64 Cutime uint64 Cstime uint64 Priority int64 Nice int64 NumThreads int64 Itrealvalue int64 Starttime uint64 Vsize uint64 Rss uint64 Rsslim uint64 }
Click to show internal directories.
Click to hide internal directories.