hyperv

package
v4.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

View Source
const (
	// Some of this will need to change when we are closer to having
	// working code.
	VolumeTypeVirtfs = "virtfs"
	MountType9p      = "9p"
)

Variables

This section is empty.

Functions

func GetVirtualizationProvider

func GetVirtualizationProvider() machine.VirtProvider

Types

type HyperVMachine

type HyperVMachine struct {

	// ConfigPath is the fully qualified path to the configuration file
	ConfigPath machine.VMFile
	// The command line representation of the qemu command
	//CmdLine []string
	// HostUser contains info about host user
	machine.HostUser
	// ImageConfig describes the bootable image
	machine.ImageConfig
	// Mounts is the list of remote filesystems to mount
	Mounts []machine.Mount
	// Name of VM
	Name string
	// PidFilePath is the where the Proxy PID file lives
	//PidFilePath machine.VMFile
	// VMPidFilePath is the where the VM PID file lives
	//VMPidFilePath machine.VMFile
	// QMPMonitor is the qemu monitor object for sending commands
	//QMPMonitor Monitor
	// ReadySocket tells host when vm is booted
	ReadySocket machine.VMFile
	// ResourceConfig is physical attrs of the VM
	machine.ResourceConfig
	// SSHConfig for accessing the remote vm
	machine.SSHConfig
	// Starting tells us whether the machine is running or if we have just dialed it to start it
	Starting bool
	// Created contains the original created time instead of querying the file mod time
	Created time.Time
	// LastUp contains the last recorded uptime
	LastUp time.Time
}

func (*HyperVMachine) Init

func (m *HyperVMachine) Init(opts machine.InitOptions) (bool, error)

func (*HyperVMachine) Inspect

func (m *HyperVMachine) Inspect() (*machine.InspectInfo, error)

func (*HyperVMachine) Remove

func (m *HyperVMachine) Remove(_ string, opts machine.RemoveOptions) (string, func() error, error)

func (*HyperVMachine) SSH

func (m *HyperVMachine) SSH(name string, opts machine.SSHOptions) error

func (*HyperVMachine) Set

func (m *HyperVMachine) Set(name string, opts machine.SetOptions) ([]error, error)

func (*HyperVMachine) Start

func (m *HyperVMachine) Start(name string, opts machine.StartOptions) error

func (*HyperVMachine) State

func (m *HyperVMachine) State(_ bool) (machine.Status, error)

func (*HyperVMachine) Stop

func (m *HyperVMachine) Stop(name string, opts machine.StopOptions) error

type Virtualization

type Virtualization struct {
	// contains filtered or unexported fields
}

func (Virtualization) Artifact

func (v Virtualization) Artifact() machine.Artifact

func (Virtualization) CheckExclusiveActiveVM

func (v Virtualization) CheckExclusiveActiveVM() (bool, string, error)

func (Virtualization) Compression

func (v Virtualization) Compression() machine.ImageCompression

func (Virtualization) Format

func (v Virtualization) Format() machine.ImageFormat

func (Virtualization) IsValidVMName

func (v Virtualization) IsValidVMName(name string) (bool, error)

func (Virtualization) List

func (Virtualization) LoadVMByName

func (v Virtualization) LoadVMByName(name string) (machine.VM, error)

func (Virtualization) NewMachine

func (v Virtualization) NewMachine(opts machine.InitOptions) (machine.VM, error)

func (Virtualization) RemoveAndCleanMachines

func (v Virtualization) RemoveAndCleanMachines() error

func (Virtualization) VMType

func (v Virtualization) VMType() machine.VMType

Jump to

Keyboard shortcuts

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