hyperv

package
v5.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

Types

type HyperVStubber

type HyperVStubber struct {
	vmconfigs.HyperVConfig
}

func (HyperVStubber) CreateVM

func (HyperVStubber) Exists

func (h HyperVStubber) Exists(name string) (bool, error)

func (HyperVStubber) GetDisk

func (h HyperVStubber) GetDisk(userInputPath string, dirs *define.MachineDirs, mc *vmconfigs.MachineConfig) 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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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