Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Process ¶
type Process interface { // Pid is the process ID for this process. Pid() int // PPid is the parent process ID for this process. PPid() int // Arch is the x64 or x86 Arch() string // Executable name running this process. This is not a path to the // executable. Executable() string // Owner is the account name of the process owner. Owner() string // bin_path of the running process BinPath() string }
Process - platform agnostic Process interface
type ProcessArray ¶
type ProcessArray struct {
Results []ProcessDetails `json:"Processes"`
}
ProcessArray - struct that will hold all of the Process results
type ProcessDetails ¶
type UnixProcess ¶
type UnixProcess struct {
// contains filtered or unexported fields
}
UnixProcess is an implementation of Process that contains Unix-specific fields and information.
func (*UnixProcess) Arch ¶
func (p *UnixProcess) Arch() string
func (*UnixProcess) BinPath ¶
func (p *UnixProcess) BinPath() string
func (*UnixProcess) Executable ¶
func (p *UnixProcess) Executable() string
Executable returns the process name
func (*UnixProcess) Owner ¶
func (p *UnixProcess) Owner() string
Owner returns the username the process belongs to
func (*UnixProcess) PPid ¶
func (p *UnixProcess) PPid() int
PPid returns the parent process identifier
func (*UnixProcess) Refresh ¶
func (p *UnixProcess) Refresh() error
Refresh reloads all the data associated with this process.
Click to show internal directories.
Click to hide internal directories.