Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Current ¶
Current returns the current user.
The first call will cache the current user information. Subsequent calls will return the cached value and will not reflect changes to the current user.
func Lookup ¶
Lookup looks up a user by username. If the user cannot be found, the returned error is of type [UnknownUserError].
func LookupGroup ¶
LookupGroup looks up a group by name. If the group cannot be found, the returned error is of type [UnknownGroupError].
func LookupGroupId ¶
LookupGroupId looks up a group by groupid. If the group cannot be found, the returned error is of type [UnknownGroupIdError].
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.