Documentation ¶
Index ¶
- Constants
- func GetVMInfos() ([]*machine.ListResponse, error)
- func GetWSLProvider() machine.VirtProvider
- func IsWSLFeatureEnabled() bool
- func IsWSLInstalled() bool
- func MessageBox(caption, title string, fail bool) int
- func NewFedoraDownloader(vmType machine.VMType, vmName, releaseStream string) (machine.DistributionDownload, error)
- func SilentExec(command string, args ...string) error
- func SilentExecCmd(command string, args ...string) *exec.Cmd
- type ExitCodeError
- type FedoraDownload
- 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, opts machine.StartOptions) error
- func (v *MachineVM) State(bypass bool) (machine.Status, error)
- func (v *MachineVM) Stop(name string, _ machine.StopOptions) error
- type SHELLEXECUTEINFO
- type TokenPrivileges
- type Virtualization
- func (p *Virtualization) Artifact() machine.Artifact
- func (p *Virtualization) CheckExclusiveActiveVM() (bool, string, error)
- func (p *Virtualization) Compression() machine.ImageCompression
- func (p *Virtualization) Format() machine.ImageFormat
- func (p *Virtualization) IsValidVMName(name string) (bool, error)
- func (p *Virtualization) List(_ machine.ListOptions) ([]*machine.ListResponse, error)
- func (p *Virtualization) LoadVMByName(name string) (machine.VM, error)
- func (p *Virtualization) NewMachine(opts machine.InitOptions) (machine.VM, error)
- func (p *Virtualization) RemoveAndCleanMachines() error
- func (p *Virtualization) VMType() machine.VMType
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.VirtProvider
func IsWSLFeatureEnabled ¶ added in v4.3.0
func IsWSLFeatureEnabled() bool
func IsWSLInstalled ¶ added in v4.3.0
func IsWSLInstalled() bool
func MessageBox ¶
func NewFedoraDownloader ¶ added in v4.5.0
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 FedoraDownload ¶ added in v4.5.0
func (FedoraDownload) CleanCache ¶ added in v4.5.0
func (f FedoraDownload) CleanCache() error
func (FedoraDownload) Get ¶ added in v4.5.0
func (f FedoraDownload) Get() *machine.Download
func (FedoraDownload) HasUsableCache ¶ added in v4.5.0
func (f FedoraDownload) HasUsableCache() (bool, error)
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 SHELLEXECUTEINFO ¶
type SHELLEXECUTEINFO struct {
// contains filtered or unexported fields
}
nolint
type TokenPrivileges ¶
type TokenPrivileges struct {
// contains filtered or unexported fields
}
type Virtualization ¶ added in v4.5.0
type Virtualization struct {
// contains filtered or unexported fields
}
func (*Virtualization) Artifact ¶ added in v4.5.0
func (p *Virtualization) Artifact() machine.Artifact
func (*Virtualization) CheckExclusiveActiveVM ¶ added in v4.5.0
func (p *Virtualization) CheckExclusiveActiveVM() (bool, string, error)
func (*Virtualization) Compression ¶ added in v4.5.0
func (p *Virtualization) Compression() machine.ImageCompression
func (*Virtualization) Format ¶ added in v4.5.0
func (p *Virtualization) Format() machine.ImageFormat
func (*Virtualization) IsValidVMName ¶ added in v4.5.0
func (p *Virtualization) IsValidVMName(name string) (bool, error)
func (*Virtualization) List ¶ added in v4.5.0
func (p *Virtualization) List(_ machine.ListOptions) ([]*machine.ListResponse, error)
List lists all vm's that use qemu virtualization
func (*Virtualization) LoadVMByName ¶ added in v4.5.0
func (p *Virtualization) LoadVMByName(name string) (machine.VM, error)
LoadByName reads a json file that describes a known qemu vm and returns a vm instance
func (*Virtualization) NewMachine ¶ added in v4.5.0
func (p *Virtualization) NewMachine(opts machine.InitOptions) (machine.VM, error)
NewMachine initializes an instance of a wsl machine
func (*Virtualization) RemoveAndCleanMachines ¶ added in v4.5.0
func (p *Virtualization) RemoveAndCleanMachines() error
RemoveAndCleanMachines removes all machine and cleans up any other files associated with podman machine
func (*Virtualization) VMType ¶ added in v4.5.0
func (p *Virtualization) VMType() machine.VMType
Click to show internal directories.
Click to hide internal directories.