pidowner
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package pidowner handles lookups from process ID to its owning user.
Index¶
Constants¶
This section is empty.
Variables¶
var ErrNotImplemented =errors.New("not implemented for GOOS=" +runtime.GOOS)var ErrProcessNotFound =errors.New("process not found")Functions¶
funcOwnerOfPID¶
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 wherethis isn't supported.
Types¶
This section is empty.