Documentation ¶
Overview ¶
Package sys contains types and functions useful for finding system information.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GroupRegistry ¶
type GroupRegistry interface { FindById(id GroupId) (string, error) FindByName(name string) (GroupId, error) }
GroupRegistry represents an object that knows about user account group names and IDs.
func NewGroupRegistry ¶
func NewGroupRegistry() GroupRegistry
Return a group registry hooked up to the system's real group registry.
type NotFoundError ¶
type NotFoundError string
NotFoundError is returned by registry lookup methods when the requested user or group cannot be found.
func (NotFoundError) Error ¶
func (e NotFoundError) Error() string
type UserRegistry ¶
type UserRegistry interface { FindById(id UserId) (string, error) FindByName(name string) (UserId, error) }
UserRegistry represents an object that knows about user account names and IDs.
func NewUserRegistry ¶
func NewUserRegistry() UserRegistry
Return a user registry hooked up to the system's real user registry.
Click to show internal directories.
Click to hide internal directories.