Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Group ¶
type Group struct { Name string Passwd string // Password is encrypted if password-shadowing is on Gid uint32 Members *[]string // member list }
Group wraps up `group` struct used in kernel
func GetGroupByGid ¶
GetGroupByGid wraps up `getgrgid` system call. It retrieves group records from group file based on gid.
func GetGroupByName ¶
GetGroupByName wraps up `getgrnam` system call. It retrieves group records from group file based on group name.
func GetGroupEntry ¶
func GetGroupEntry() []*Group
GetGroupEntry wraps up `getgrent` system call. It performs sequential scans of the records in the group file.
type GroupNotFoundError ¶
func (*GroupNotFoundError) Error ¶
func (err *GroupNotFoundError) Error() string
Click to show internal directories.
Click to hide internal directories.