user

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUser

func CreateUser(username string, cfg *config.Config, osInfo *osdetect.OSInfo) error

CreateUser creates a new system user with SSH keys and sudo access

func DeleteUser

func DeleteUser(username string, osInfo *osdetect.OSInfo) error

DeleteUser deletes a user and their home directory

func ListUsers

func ListUsers() ([]string, error)

ListUsers lists all non-system users

Types

This section is empty.

Jump to

Keyboard shortcuts

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