Documentation ¶
Overview ¶
Package userinfo provides a shim to, and mock of, user information methods in the os and os/user packages.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Provider ¶
type Provider interface { Getegid() int // os.Getegid Geteuid() int // os.Geteuid LookupUser(username string) (*user.User, error) // user.Lookup LookupUserId(uid string) (*user.User, error) // user.LookupId LookupGroup(username string) (*group.Group, error) // group.Lookup LookupGroupId(uid string) (*group.Group, error) // group.LookupId }
func GetDefaultProvider ¶
func GetDefaultProvider() Provider
GetDefaultProvider returns a shim to functions from the Go standard library.
Click to show internal directories.
Click to hide internal directories.