Documentation ¶
Rendered for windows/amd64
Index ¶
- Constants
- func GetVirtualizationProvider() machine.VirtProvider
- type HyperVMachine
- func (m *HyperVMachine) Init(opts machine.InitOptions) (bool, error)
- func (m *HyperVMachine) Inspect() (*machine.InspectInfo, error)
- func (m *HyperVMachine) Remove(_ string, opts machine.RemoveOptions) (string, func() error, error)
- func (m *HyperVMachine) SSH(name string, opts machine.SSHOptions) error
- func (m *HyperVMachine) Set(name string, opts machine.SetOptions) ([]error, error)
- func (m *HyperVMachine) Start(name string, opts machine.StartOptions) error
- func (m *HyperVMachine) State(_ bool) (machine.Status, error)
- func (m *HyperVMachine) Stop(name string, opts machine.StopOptions) error
- type Virtualization
- func (v Virtualization) Artifact() machine.Artifact
- func (v Virtualization) CheckExclusiveActiveVM() (bool, string, error)
- func (v Virtualization) Compression() machine.ImageCompression
- func (v Virtualization) Format() machine.ImageFormat
- func (v Virtualization) IsValidVMName(name string) (bool, error)
- func (v Virtualization) List(opts machine.ListOptions) ([]*machine.ListResponse, error)
- func (v Virtualization) LoadVMByName(name string) (machine.VM, error)
- func (v Virtualization) NewMachine(opts machine.InitOptions) (machine.VM, error)
- func (v Virtualization) RemoveAndCleanMachines() error
- func (v Virtualization) VMType() machine.VMType
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) 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 (v Virtualization) List(opts machine.ListOptions) ([]*machine.ListResponse, error)
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
Click to show internal directories.
Click to hide internal directories.