Documentation ¶
Overview ¶
Package osuser implements OS user lookup. It's a wrapper around os/user that works on non-cgo builds.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LookupByUID ¶
LookupByUID is like os/user.LookupId but handles a few edge cases like gokrazy and non-cgo lookups.
func LookupByUIDWithShell ¶
LookupByUIDWithShell is like os/user.LookupId but handles a few edge cases like gokrazy and non-cgo lookups, and returns the user shell. The user shell lookup is best-effort and may be empty.
func LookupByUsername ¶
LookupByUsername is like os/user.Lookup but handles a few edge cases like gokrazy and non-cgo lookups.
func LookupByUsernameWithShell ¶
LookupByUsernameWithShell is like os/user.Lookup but handles a few edge cases like gokrazy and non-cgo lookups, and returns the user shell. The user shell lookup is best-effort and may be empty.
Types ¶
This section is empty.