wsl

package
v4.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ErrorSuccessRebootInitiated = 1641
	ErrorSuccessRebootRequired  = 3010
)
View Source
const (
	SEE_MASK_NOCLOSEPROCESS         = 0x40
	EWX_FORCEIFHUNG                 = 0x10
	EWX_REBOOT                      = 0x02
	EWX_RESTARTAPPS                 = 0x40
	SHTDN_REASON_MAJOR_APPLICATION  = 0x00040000
	SHTDN_REASON_MINOR_INSTALLATION = 0x00000002
	SHTDN_REASON_FLAG_PLANNED       = 0x80000000
	TOKEN_ADJUST_PRIVILEGES         = 0x0020
	TOKEN_QUERY                     = 0x0008
	SE_PRIVILEGE_ENABLED            = 0x00000002
	SE_ERR_ACCESSDENIED             = 0x05
	WM_QUIT                         = 0x12
)

nolint // Cleaner to refer to the official OS constant names, and consistent with syscall

Variables

This section is empty.

Functions

func GetVMInfos

func GetVMInfos() ([]*machine.ListResponse, error)

func GetWSLProvider

func GetWSLProvider() machine.Provider

func MessageBox

func MessageBox(caption, title string, fail bool) int

Types

type ExitCodeError

type ExitCodeError struct {
	// contains filtered or unexported fields
}

func (*ExitCodeError) Error

func (e *ExitCodeError) Error() string

type Luid

type Luid struct {
	// contains filtered or unexported fields
}

nolint

type LuidAndAttributes

type LuidAndAttributes struct {
	// contains filtered or unexported fields
}

type MachineVM

type MachineVM struct {
	// ConfigPath is the path to the configuration file
	ConfigPath string
	// Created contains the original created time instead of querying the file mod time
	Created time.Time
	// ImageStream is the version of fcos being used
	ImageStream string
	// ImagePath is the fq path to
	ImagePath string
	// LastUp contains the last recorded uptime
	LastUp time.Time
	// Name of the vm
	Name string
	// Whether this machine should run in a rootful or rootless manner
	Rootful bool
	// SSH identity, username, etc
	machine.SSHConfig
	// machine version
	Version int
}

func (*MachineVM) Init

func (v *MachineVM) Init(opts machine.InitOptions) (bool, error)

Init writes the json configuration file to the filesystem for other verbs (start, stop)

func (*MachineVM) Inspect added in v4.1.0

func (v *MachineVM) Inspect() (*machine.InspectInfo, error)

Inspect returns verbose detail about the machine

func (*MachineVM) Remove

func (v *MachineVM) Remove(name string, opts machine.RemoveOptions) (string, func() error, error)

func (*MachineVM) SSH

func (v *MachineVM) SSH(name string, opts machine.SSHOptions) error

SSH opens an interactive SSH session to the vm specified. Added ssh function to VM interface: pkg/machine/config/go : line 58

func (*MachineVM) Set

func (v *MachineVM) Set(_ string, opts machine.SetOptions) ([]error, error)

func (*MachineVM) Start

func (v *MachineVM) Start(name string, _ machine.StartOptions) error

func (*MachineVM) State added in v4.1.0

func (v *MachineVM) State(bypass bool) (machine.Status, error)

func (*MachineVM) Stop

func (v *MachineVM) Stop(name string, _ machine.StopOptions) error

type Provider

type Provider struct{}

func (*Provider) CheckExclusiveActiveVM

func (p *Provider) CheckExclusiveActiveVM() (bool, string, error)

func (*Provider) IsValidVMName

func (p *Provider) IsValidVMName(name string) (bool, error)

func (*Provider) List

List lists all vm's that use qemu virtualization

func (*Provider) LoadVMByName

func (p *Provider) LoadVMByName(name string) (machine.VM, error)

LoadByName reads a json file that describes a known qemu vm and returns a vm instance

func (*Provider) NewMachine

func (p *Provider) NewMachine(opts machine.InitOptions) (machine.VM, error)

NewMachine initializes an instance of a wsl machine

func (*Provider) RemoveAndCleanMachines added in v4.1.0

func (p *Provider) RemoveAndCleanMachines() error

RemoveAndCleanMachines removes all machine and cleans up any other files associatied with podman machine

type SHELLEXECUTEINFO

type SHELLEXECUTEINFO struct {
	// contains filtered or unexported fields
}

nolint

type TokenPrivileges

type TokenPrivileges struct {
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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