runtime

package
v59.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: MPL-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutoLogonUser

func AutoLogonUser() (username string)

func DeleteUser

func DeleteUser(username string) (err error)

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 InteractiveUsername() (string, error)

func ListUserAccounts

func ListUserAccounts() (usernames []string, err error)

func SetAutoLogin

func SetAutoLogin(user *OSUser) error

func UserHomeDirectoriesParent

func UserHomeDirectoriesParent() string

func WaitForLoginCompletion

func WaitForLoginCompletion(timeout time.Duration) error

Types

type OSUser

type OSUser struct {
	Name     string `json:"name"`
	Password string `json:"password"`
}

func (*OSUser) CreateNew

func (user *OSUser) CreateNew(okIfExists bool) (err error)

Jump to

Keyboard shortcuts

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