Documentation
¶
Overview ¶
Package procutil provides common utilities related to /proc to be shared across variation of tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("process not found")
ErrNotFound is an error returned by Find*() family, if no target process is found.
Functions ¶
func FindAll ¶
FindAll returns a list of all process.Process instances which are matched with the given mathcer. If process it not found, this returns ErrNotFound.
func FindUnique ¶
FindUnique returns a process.Process instance which is matched with the given matcher. If not found, or multiple processes satisfy the matcher, this returns an error. Specifically, on not found case, ErrNotFound is returned.
Types ¶
type Matcher ¶
Matcher is the interface to be passed to Find*() family, representing a condition to identify the target process.
Click to show internal directories.
Click to hide internal directories.