Documentation ¶
Overview ¶
Package pidowner handles lookups from process ID to its owning user.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotImplemented = errors.New("not implemented for GOOS=" + runtime.GOOS)
View Source
var ErrProcessNotFound = errors.New("process not found")
Functions ¶
func OwnerOfPID ¶
OwnerOfPID returns the user ID that owns the given process ID.
The returned user ID is suitable to passing to os/user.LookupId.
The returned error will be ErrNotImplemented for operating systems where this isn't supported.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.