Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommandName ¶
CommandName returns the executable command name for pid on Linux.
Types ¶
type PermissionError ¶
PermissionError reports an inability to inspect a process table or entry.
func (*PermissionError) Error ¶
func (e *PermissionError) Error() string
func (*PermissionError) Unwrap ¶
func (e *PermissionError) Unwrap() error
type Process ¶
type Process struct {
PID int
PPID int
ProcessGroupID int
Foreground bool
StartIdentity string
Executable string
CWD string
TTY string
AgentHint string
MultiplexerKind string
MultiplexerServer string
MultiplexerSession string
MultiplexerPane string
Args []string `json:"-"`
}
Process is a point-in-time snapshot of a process. Args, AgentHint, and the multiplexer hints are transient inventory data and must not be persisted by callers.
type TableError ¶
TableError reports malformed or otherwise unusable process table data.
func (*TableError) Error ¶
func (e *TableError) Error() string
func (*TableError) Unwrap ¶
func (e *TableError) Unwrap() error
type UnsupportedError ¶
type UnsupportedError struct {
Platform string
}
UnsupportedError reports that process enumeration is unavailable on the current operating system.
func (*UnsupportedError) Error ¶
func (e *UnsupportedError) Error() string
Click to show internal directories.
Click to hide internal directories.