Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Group ¶
Group represents a group entry
func Lookup ¶
Lookup looks up a group by its name. If the group cannot be found, the error is of type UnknownGroupError.
func LookupId ¶
LookupId looks up a group by its gid. If the group cannot be found, the error is of type UnknownGroupIdError.
func LookupUid ¶
LookupUId returns a list of groups a given userid is associated with. If the no groups can be found, the error is of type user.UnknownUserIdError.
func LookupUser ¶
LookupUser returns a list of groups a given username is associated with. If the no groups can be found, the error is of type user.UnknownUserError.
type UnknownGroupError ¶
type UnknownGroupError string
UnknownGroupError is returned by Lookup when a group cannot be found.
func (UnknownGroupError) Error ¶
func (e UnknownGroupError) Error() string
type UnknownGroupIdError ¶
type UnknownGroupIdError int
UnknownGroupIdError is returned by LookupId when a group cannot be found.
func (UnknownGroupIdError) Error ¶
func (e UnknownGroupIdError) Error() string