Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGroupFromFile ¶
NewGroupFromFile creates a group file reader from provided path
func NewPasswdFromFile ¶
NewPasswdFromFile creates a passwd file reader from provided path
Types ¶
type GroupFile ¶
type GroupFile interface {
io.WriterTo
// Upsert creates or updates the group in the group database
Upsert(g osuser.Group)
}
GroupFile defines an interface to a group file.
type PasswdFile ¶
type PasswdFile interface {
io.WriterTo
// Upsert creates or updates the user in the passwd database
Upsert(u osuser.User)
}
PasswdFile defines an interface to a passwd file.
Click to show internal directories.
Click to hide internal directories.