linux

package
v0.10.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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 (l LinuxUserManager) ModifyPassword(username, password string) (string, *strings.Reader, string)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL