Documentation ¶
Index ¶
- func AutoLogonUser() (username string)
- func DeleteUser(username string) (err error)
- func GeneratePassword() string
- func InteractiveUsername() (string, error)
- func ListUserAccounts() (usernames []string, err error)
- func SetAutoLogin(user *OSUser) error
- func UserHomeDirectoriesParent() string
- func WaitForLoginCompletion(timeout time.Duration) error
- type OSUser
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoLogonUser ¶
func AutoLogonUser() (username string)
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 InteractiveUsername ¶
func ListUserAccounts ¶
func SetAutoLogin ¶
func UserHomeDirectoriesParent ¶
func UserHomeDirectoriesParent() string
func WaitForLoginCompletion ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.