distroinstall

package
v0.0.0-...-426bf0d Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

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

func InstallFromExecutable(ctx context.Context, d gowsl.Distro) error

InstallFromExecutable finds the executable associated with the specified distro and installs it.

func UsernameIsValid

func UsernameIsValid(userName string) bool

UsernameIsValid returns true if the username matches the WSL regex for usernames.

Types

This section is empty.

Jump to

Keyboard shortcuts

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