Documentation ¶
Rendered for windows/amd64
Index ¶
- func GetVMFromMC(mc *vmconfigs.MachineConfig) (*hypervctl.VirtualMachineManager, *hypervctl.VirtualMachine, error)
- type HyperVStubber
- func (h HyperVStubber) CreateVM(opts define.CreateVMOpts, mc *vmconfigs.MachineConfig, ...) error
- func (h HyperVStubber) Exists(name string) (bool, error)
- func (h HyperVStubber) GetDisk(userInputPath string, dirs *define.MachineDirs, mc *vmconfigs.MachineConfig) error
- func (h HyperVStubber) GetRosetta(mc *vmconfigs.MachineConfig) (bool, error)
- func (h HyperVStubber) MountType() vmconfigs.VolumeMountType
- func (h HyperVStubber) MountVolumesToVM(mc *vmconfigs.MachineConfig, quiet bool) error
- func (h HyperVStubber) PostStartNetworking(mc *vmconfigs.MachineConfig, noInfo bool) error
- func (h HyperVStubber) PrepareIgnition(mc *vmconfigs.MachineConfig, ignBuilder *ignition.IgnitionBuilder) (*ignition.ReadyUnitOpts, error)
- func (h HyperVStubber) Remove(mc *vmconfigs.MachineConfig) ([]string, func() error, error)
- func (h HyperVStubber) RemoveAndCleanMachines(_ *define.MachineDirs) error
- func (h HyperVStubber) RequireExclusiveActive() bool
- func (h HyperVStubber) SetProviderAttrs(mc *vmconfigs.MachineConfig, opts define.SetOptions) error
- func (h HyperVStubber) StartNetworking(mc *vmconfigs.MachineConfig, cmd *gvproxy.GvproxyCommand) error
- func (h HyperVStubber) StartVM(mc *vmconfigs.MachineConfig) (func() error, func() error, error)
- func (h HyperVStubber) State(mc *vmconfigs.MachineConfig, bypass bool) (define.Status, error)
- func (h HyperVStubber) StopHostNetworking(mc *vmconfigs.MachineConfig, vmType define.VMType) error
- func (h HyperVStubber) StopVM(mc *vmconfigs.MachineConfig, hardStop bool) error
- func (h HyperVStubber) UpdateSSHPort(mc *vmconfigs.MachineConfig, port int) error
- func (h HyperVStubber) UseProviderNetworkSetup() bool
- func (h HyperVStubber) UserModeNetworkEnabled(mc *vmconfigs.MachineConfig) bool
- func (h HyperVStubber) VMType() define.VMType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetVMFromMC ¶
func GetVMFromMC(mc *vmconfigs.MachineConfig) (*hypervctl.VirtualMachineManager, *hypervctl.VirtualMachine, error)
Types ¶
type HyperVStubber ¶
type HyperVStubber struct {
vmconfigs.HyperVConfig
}
func (HyperVStubber) CreateVM ¶
func (h HyperVStubber) CreateVM(opts define.CreateVMOpts, mc *vmconfigs.MachineConfig, builder *ignition.IgnitionBuilder) error
func (HyperVStubber) GetDisk ¶
func (h HyperVStubber) GetDisk(userInputPath string, dirs *define.MachineDirs, mc *vmconfigs.MachineConfig) error
func (HyperVStubber) GetRosetta ¶ added in v5.1.0
func (h HyperVStubber) GetRosetta(mc *vmconfigs.MachineConfig) (bool, error)
func (HyperVStubber) MountType ¶
func (h HyperVStubber) MountType() vmconfigs.VolumeMountType
func (HyperVStubber) MountVolumesToVM ¶
func (h HyperVStubber) MountVolumesToVM(mc *vmconfigs.MachineConfig, quiet bool) error
func (HyperVStubber) PostStartNetworking ¶
func (h HyperVStubber) PostStartNetworking(mc *vmconfigs.MachineConfig, noInfo bool) error
func (HyperVStubber) PrepareIgnition ¶
func (h HyperVStubber) PrepareIgnition(mc *vmconfigs.MachineConfig, ignBuilder *ignition.IgnitionBuilder) (*ignition.ReadyUnitOpts, error)
func (HyperVStubber) Remove ¶
func (h HyperVStubber) Remove(mc *vmconfigs.MachineConfig) ([]string, func() error, error)
func (HyperVStubber) RemoveAndCleanMachines ¶
func (h HyperVStubber) RemoveAndCleanMachines(_ *define.MachineDirs) error
func (HyperVStubber) RequireExclusiveActive ¶
func (h HyperVStubber) RequireExclusiveActive() bool
func (HyperVStubber) SetProviderAttrs ¶
func (h HyperVStubber) SetProviderAttrs(mc *vmconfigs.MachineConfig, opts define.SetOptions) error
func (HyperVStubber) StartNetworking ¶
func (h HyperVStubber) StartNetworking(mc *vmconfigs.MachineConfig, cmd *gvproxy.GvproxyCommand) error
func (HyperVStubber) StartVM ¶
func (h HyperVStubber) StartVM(mc *vmconfigs.MachineConfig) (func() error, func() error, error)
func (HyperVStubber) State ¶
func (h HyperVStubber) State(mc *vmconfigs.MachineConfig, bypass bool) (define.Status, error)
State is returns the state as a define.status. for hyperv, state differs from others because state is determined by the VM itself. normally this can be done with vm.State() and a conversion but doing here as well. this requires a little more interaction with the hypervisor
func (HyperVStubber) StopHostNetworking ¶
func (h HyperVStubber) StopHostNetworking(mc *vmconfigs.MachineConfig, vmType define.VMType) error
TODO should this be plumbed higher into the code stack?
func (HyperVStubber) StopVM ¶
func (h HyperVStubber) StopVM(mc *vmconfigs.MachineConfig, hardStop bool) error
func (HyperVStubber) UpdateSSHPort ¶
func (h HyperVStubber) UpdateSSHPort(mc *vmconfigs.MachineConfig, port int) error
func (HyperVStubber) UseProviderNetworkSetup ¶
func (h HyperVStubber) UseProviderNetworkSetup() bool
func (HyperVStubber) UserModeNetworkEnabled ¶
func (h HyperVStubber) UserModeNetworkEnabled(mc *vmconfigs.MachineConfig) bool
func (HyperVStubber) VMType ¶
func (h HyperVStubber) VMType() define.VMType
Click to show internal directories.
Click to hide internal directories.