Documentation ¶
Overview ¶
Package distroinstall exists to implement various utilities used by landscape that need to be mocked in tests. As such, the real implementations are located in the _windows files, and the mocks in the _gowslmock files. Use build tag gowslmock to enable the latter.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateUser ¶
func CreateUser(ctx context.Context, d gowsl.Distro, userName string, userFullName string) (uid uint32, err error)
CreateUser creates a new user with the specified details in the target distro.
func InstallFromExecutable ¶
InstallFromExecutable finds the executable associated with the specified distro and installs it.
func UsernameIsValid ¶
UsernameIsValid returns true if the username matches the WSL regex for usernames.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.