Documentation
¶
Index ¶
- func DeleteUser(username string) (err error)
- func GeneratePassword() string
- func GenericWorkerBinary() string
- func InteractiveUsername() (interactiveUsername string, err error)
- func ListUserAccounts() (usernames []string, err error)
- func SetAutoLogin(user *OSUser) error
- func UserHomeDirectoriesParent() string
- func WaitForLoginCompletion(timeout time.Duration, username string) (err error)
- type OSUser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteUser ¶
func GeneratePassword ¶
func GeneratePassword() string
Uses [A-Za-z0-9] characters (default set) to avoid strange escaping problems that could potentially affect security. Prefixed with `pWd0_` to ensure password contains a special character (_), lowercase and uppercase letters, and a number. This is useful if the OS has a strict password policy requiring all of these. The total password length is 29 characters (24 of which are random). 29 characters should not be too long for the OS. The 24 random characters of [A-Za-z0-9] provide (26+26+10)^24 possible permutations (approx 143 bits of randomness). Randomisation is not seeded, so results should not be reproducible.
func GenericWorkerBinary ¶
func GenericWorkerBinary() string
func InteractiveUsername ¶
func ListUserAccounts ¶
func SetAutoLogin ¶
func UserHomeDirectoriesParent ¶
func UserHomeDirectoriesParent() string
Types ¶
Click to show internal directories.
Click to hide internal directories.