Documentation
¶
Index ¶
- type LinuxUserManager
- func (l LinuxUserManager) AddUser(username, homeDir, shell string, isSystem, createHome bool, ...) (string, []string)
- func (l LinuxUserManager) ModifyPassword(username, password string) (string, *strings.Reader, string)
- func (l LinuxUserManager) ModifyUser(username, homeDir, shell string, groups []string) (string, []string)
- func (l LinuxUserManager) NewLinuxManager() *LinuxUserManager
- func (l LinuxUserManager) RemoveUser(username string) (string, []string)
- func (l LinuxUserManager) UserExists(username string) (string, []string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LinuxUserManager ¶
type LinuxUserManager struct{}
LinuxUserManager implements UserManager for Linux systems.
func (LinuxUserManager) AddUser ¶
func (l LinuxUserManager) AddUser(username, homeDir, shell string, isSystem, createHome bool, groups, args []string) (string, []string)
AddUser adds a new user to the system.
func (LinuxUserManager) ModifyPassword ¶
func (LinuxUserManager) ModifyUser ¶
func (l LinuxUserManager) ModifyUser(username, homeDir, shell string, groups []string) (string, []string)
ModifyUser modifies an existing user's details.
func (LinuxUserManager) NewLinuxManager ¶
func (l LinuxUserManager) NewLinuxManager() *LinuxUserManager
func (LinuxUserManager) RemoveUser ¶
func (l LinuxUserManager) RemoveUser(username string) (string, []string)
RemoveUser removes an existing user from the system.
func (LinuxUserManager) UserExists ¶
func (l LinuxUserManager) UserExists(username string) (string, []string)
UserExists checks if a user exists on the system.
Click to show internal directories.
Click to hide internal directories.