Documentation ¶
Index ¶
- Constants
- Variables
- type QEMUStubber
- func (q *QEMUStubber) CreateVM(opts define.CreateVMOpts, mc *vmconfigs.MachineConfig, ...) error
- func (q *QEMUStubber) Exists(name string) (bool, error)
- func (q *QEMUStubber) GetDisk(userInputPath string, dirs *define.MachineDirs, mc *vmconfigs.MachineConfig) error
- func (q *QEMUStubber) GetRosetta(mc *vmconfigs.MachineConfig) (bool, error)
- func (q *QEMUStubber) MountType() vmconfigs.VolumeMountType
- func (q *QEMUStubber) MountVolumesToVM(mc *vmconfigs.MachineConfig, quiet bool) error
- func (q *QEMUStubber) PostStartNetworking(mc *vmconfigs.MachineConfig, noInfo bool) error
- func (q *QEMUStubber) PrepareIgnition(_ *vmconfigs.MachineConfig, _ *ignition.IgnitionBuilder) (*ignition.ReadyUnitOpts, error)
- func (q *QEMUStubber) Remove(mc *vmconfigs.MachineConfig) ([]string, func() error, error)
- func (q *QEMUStubber) RemoveAndCleanMachines(_ *define.MachineDirs) error
- func (q QEMUStubber) RequireExclusiveActive() bool
- func (q *QEMUStubber) SetProviderAttrs(mc *vmconfigs.MachineConfig, opts define.SetOptions) error
- func (q *QEMUStubber) StartNetworking(mc *vmconfigs.MachineConfig, cmd *gvproxy.GvproxyCommand) error
- func (q *QEMUStubber) StartVM(mc *vmconfigs.MachineConfig) (func() error, func() error, error)
- func (q *QEMUStubber) State(mc *vmconfigs.MachineConfig, bypass bool) (define.Status, error)
- func (q *QEMUStubber) StopHostNetworking(_ *vmconfigs.MachineConfig, _ define.VMType) error
- func (q *QEMUStubber) StopVM(mc *vmconfigs.MachineConfig, _ bool) error
- func (q *QEMUStubber) UpdateSSHPort(mc *vmconfigs.MachineConfig, port int) error
- func (q QEMUStubber) UseProviderNetworkSetup() bool
- func (q QEMUStubber) UserModeNetworkEnabled(*vmconfigs.MachineConfig) bool
- func (q *QEMUStubber) VMType() define.VMType
Constants ¶
View Source
const (
MountType9p = "9p"
)
Variables ¶
View Source
var (
QemuCommand = "qemu-system-x86_64"
)
Functions ¶
This section is empty.
Types ¶
type QEMUStubber ¶
type QEMUStubber struct { vmconfigs.QEMUConfig // Command describes the final QEMU command line Command command.QemuCmd }
func (*QEMUStubber) CreateVM ¶
func (q *QEMUStubber) CreateVM(opts define.CreateVMOpts, mc *vmconfigs.MachineConfig, builder *ignition.IgnitionBuilder) error
func (*QEMUStubber) GetDisk ¶
func (q *QEMUStubber) GetDisk(userInputPath string, dirs *define.MachineDirs, mc *vmconfigs.MachineConfig) error
func (*QEMUStubber) GetRosetta ¶ added in v5.1.0
func (q *QEMUStubber) GetRosetta(mc *vmconfigs.MachineConfig) (bool, error)
func (*QEMUStubber) MountType ¶
func (q *QEMUStubber) MountType() vmconfigs.VolumeMountType
func (*QEMUStubber) MountVolumesToVM ¶
func (q *QEMUStubber) MountVolumesToVM(mc *vmconfigs.MachineConfig, quiet bool) error
mountVolumesToVM iterates through the machine's volumes and mounts them to the machine TODO this should probably be temporary; mount code should probably be its own package and shared completely
func (*QEMUStubber) PostStartNetworking ¶
func (q *QEMUStubber) PostStartNetworking(mc *vmconfigs.MachineConfig, noInfo bool) error
func (*QEMUStubber) PrepareIgnition ¶
func (q *QEMUStubber) PrepareIgnition(_ *vmconfigs.MachineConfig, _ *ignition.IgnitionBuilder) (*ignition.ReadyUnitOpts, error)
func (*QEMUStubber) Remove ¶
func (q *QEMUStubber) Remove(mc *vmconfigs.MachineConfig) ([]string, func() error, error)
Remove deletes all the files associated with a machine including the image itself
func (*QEMUStubber) RemoveAndCleanMachines ¶
func (q *QEMUStubber) RemoveAndCleanMachines(_ *define.MachineDirs) error
func (QEMUStubber) RequireExclusiveActive ¶
func (q QEMUStubber) RequireExclusiveActive() bool
func (*QEMUStubber) SetProviderAttrs ¶
func (q *QEMUStubber) SetProviderAttrs(mc *vmconfigs.MachineConfig, opts define.SetOptions) error
func (*QEMUStubber) StartNetworking ¶
func (q *QEMUStubber) StartNetworking(mc *vmconfigs.MachineConfig, cmd *gvproxy.GvproxyCommand) error
func (*QEMUStubber) StartVM ¶
func (q *QEMUStubber) StartVM(mc *vmconfigs.MachineConfig) (func() error, func() error, error)
func (*QEMUStubber) State ¶
func (q *QEMUStubber) State(mc *vmconfigs.MachineConfig, bypass bool) (define.Status, error)
func (*QEMUStubber) StopHostNetworking ¶
func (q *QEMUStubber) StopHostNetworking(_ *vmconfigs.MachineConfig, _ define.VMType) error
func (*QEMUStubber) StopVM ¶
func (q *QEMUStubber) StopVM(mc *vmconfigs.MachineConfig, _ bool) error
Stop uses the qmp monitor to call a system_powerdown
func (*QEMUStubber) UpdateSSHPort ¶
func (q *QEMUStubber) UpdateSSHPort(mc *vmconfigs.MachineConfig, port int) error
func (QEMUStubber) UseProviderNetworkSetup ¶
func (q QEMUStubber) UseProviderNetworkSetup() bool
func (QEMUStubber) UserModeNetworkEnabled ¶
func (q QEMUStubber) UserModeNetworkEnabled(*vmconfigs.MachineConfig) bool
func (*QEMUStubber) VMType ¶
func (q *QEMUStubber) VMType() define.VMType
Source Files ¶
Click to show internal directories.
Click to hide internal directories.