Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type UserList ¶
type UserList struct { // Userinfo lists for all system users Users []Userinfo `json:"users"` }
type UserListOps ¶
UserListOps interface provides list of all system users by parsing Linux password file.
type UserOps ¶
type Userinfo ¶
type Userinfo struct { // Uid is the user ID. Uid string `json:"uid"` // Gid is the primary group ID. Gid string `json:"gid"` // Username is the login name. Username string `json:"userName,omitempty"` // Group name / optional Groupname string `json:"groupName,omitempty"` // Name is the user's real or display name. // It might be blank. Name string `json:"name,omitempty"` // HomeDir is the path to the user's home directory // (if they have one). HomeDir string `json:"homeDir,omitempty"` UserPasswd string `json:"userPasswd,omitempty"` }
func (*Userinfo) DeleteUser ¶
DeleteUser gets the schema for user by name, deletes it if available.
Click to show internal directories.
Click to hide internal directories.