hyperv

package
v0.0.18 Latest Latest
Warning

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

Go to latest
Published: May 20, 2020 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(
	cfg config.Config,
	daemonRunner driver.DaemonRunner,
	ui driver.UI,
	powershell Runner,
	ethernetGUID string,
	portGUID string,
	forwarderGUID string,
) driver.Driver

Types

type HyperV

type HyperV struct {
	UI            driver.UI
	Config        config.Config
	DaemonRunner  driver.DaemonRunner
	Powershell    Runner
	EthernetGUID  string
	PortGUID      string
	ForwarderGUID string
}

func (*HyperV) AddLoopbackAliases

func (d *HyperV) AddLoopbackAliases(switchName string, addrs ...string) error

func (*HyperV) CheckRequirements

func (d *HyperV) CheckRequirements() error

func (*HyperV) CreateVM

func (d *HyperV) CreateVM(name string, cpus int, memory int, efiPath string) (string, error)

func (*HyperV) DestroyVM

func (d *HyperV) DestroyVM(vmName string) error

func (*HyperV) IsRunning

func (d *HyperV) IsRunning() (bool, error)

func (*HyperV) IsVMRunning

func (d *HyperV) IsVMRunning(vmName string) (bool, error)

func (*HyperV) Prestart

func (d *HyperV) Prestart() error

func (*HyperV) RemoveLoopbackAliases

func (d *HyperV) RemoveLoopbackAliases(switchName string, addrs ...string) error

func (*HyperV) SetupNetworking

func (d *HyperV) SetupNetworking() error

func (*HyperV) Start

func (d *HyperV) Start(cpus int, memory int, efiPath string) error

func (*HyperV) StartVM

func (d *HyperV) StartVM(vmName string) error

func (*HyperV) Stop

func (d *HyperV) Stop() error

func (*HyperV) StopVM

func (d *HyperV) StopVM(vmName string) error

type Runner

type Runner interface {
	Output(command string) (string, error)
}

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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