Documentation ¶
Index ¶
- Constants
- func GetVMInfos() ([]*machine.ListResponse, error)
- func GetWSLProvider() machine.Provider
- func IsWSLFeatureEnabled() bool
- func IsWSLInstalled() bool
- func MessageBox(caption, title string, fail bool) int
- func SilentExec(command string, args ...string) error
- func SilentExecCmd(command string, args ...string) *exec.Cmd
- type ExitCodeError
- type Luid
- type LuidAndAttributes
- type MachineVM
- func (v *MachineVM) Init(opts machine.InitOptions) (bool, error)
- func (v *MachineVM) Inspect() (*machine.InspectInfo, error)
- func (v *MachineVM) Remove(name string, opts machine.RemoveOptions) (string, func() error, error)
- func (v *MachineVM) SSH(name string, opts machine.SSHOptions) error
- func (v *MachineVM) Set(_ string, opts machine.SetOptions) ([]error, error)
- func (v *MachineVM) Start(name string, _ machine.StartOptions) error
- func (v *MachineVM) State(bypass bool) (machine.Status, error)
- func (v *MachineVM) Stop(name string, _ machine.StopOptions) error
- type Provider
- func (p *Provider) CheckExclusiveActiveVM() (bool, string, error)
- func (p *Provider) IsValidVMName(name string) (bool, error)
- func (p *Provider) List(_ machine.ListOptions) ([]*machine.ListResponse, error)
- func (p *Provider) LoadVMByName(name string) (machine.VM, error)
- func (p *Provider) NewMachine(opts machine.InitOptions) (machine.VM, error)
- func (p *Provider) RemoveAndCleanMachines() error
- func (p *Provider) VMType() string
- type SHELLEXECUTEINFO
- type TokenPrivileges
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 IsWSLFeatureEnabled ¶ added in v4.3.0
func IsWSLFeatureEnabled() bool
func IsWSLInstalled ¶ added in v4.3.0
func IsWSLInstalled() bool
func MessageBox ¶
func SilentExec ¶ added in v4.3.0
Types ¶
type ExitCodeError ¶
type ExitCodeError struct {
// contains filtered or unexported fields
}
func (*ExitCodeError) Error ¶
func (e *ExitCodeError) Error() string
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) 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
type Provider ¶
type Provider struct{}
func (*Provider) CheckExclusiveActiveVM ¶
func (*Provider) List ¶
func (p *Provider) List(_ machine.ListOptions) ([]*machine.ListResponse, error)
List lists all vm's that use qemu virtualization
func (*Provider) LoadVMByName ¶
LoadByName reads a json file that describes a known qemu vm and returns a vm instance
func (*Provider) NewMachine ¶
NewMachine initializes an instance of a wsl machine
func (*Provider) RemoveAndCleanMachines ¶ added in v4.1.0
RemoveAndCleanMachines removes all machine and cleans up any other files associated with podman machine
type SHELLEXECUTEINFO ¶
type SHELLEXECUTEINFO struct {
// contains filtered or unexported fields
}
nolint
type TokenPrivileges ¶
type TokenPrivileges struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.