package
0.0.0-20240625190017-a0fef5fe53bc
Repository: https://github.com/clearlinux/clr-installer.git
Documentation: pkg.go.dev

# Functions

Apply creates the user and sets their password into chroot'ed rootDir.
IsSysDefaultUser checks if a given login is in the list of default users.
IsValidLogin checks the minimum login requirements.
IsValidPassword checks the minimum password requirements.
IsValidUsername checks the username restrictions.
NewUser creates/allocates a new user handle.
NewValidator creates/allocates a new user validation.

# Constants

LoginMaxRequirementMessage is the basic login requirements.
LoginNonEmptyRequirementMessage is basic login requirements.
LoginRegexRequirementMessage is the basic password requirements.
MaxLoginLength is the longest possible login.
MaxPasswordLength is the shortest possible password.
MaxUsernameLength is the longest possible username.
MinPasswordLength is the shortest possible password.
PasswordMaxRequirementMessage is the basic password requirements.
PasswordMinRequirementMessage is the basic password requirements.
RequiredBundle the bundle needed to enable non-root user accounts.
UsernameCharRequirementMessage is basic username requirements.
UsernameMaxRequirementMessage is the basic username requirements.

# Structs

User abstracts a target system definition.
Validator abstracts user validation efforts.