Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UIDInAnyGroup ¶
UIDInAnyGroup returns true if the user with supplied uid is a member of any group in list. List is a string slice that may contain GIDs, groupnames, or both.
Types ¶
type Group ¶
Group represents a Unix group information.
type User ¶
User represents a Unix user account information.
func CurrentOriginal ¶
CurrentOriginal returns a pointer to User structure associated with the original current user, if current user is inside a user namespace with a custom user mappings, it will returns information about the original user otherwise it returns information about the current user
Click to show internal directories.
Click to hide internal directories.