kvm

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: 9 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,
) driver.Driver

Types

type KVM

type KVM struct {
	UI           driver.UI
	Config       config.Config
	DaemonRunner driver.DaemonRunner
	SudoShell    *runner.Sudo
}

func (*KVM) CheckRequirements

func (d *KVM) CheckRequirements() error

func (*KVM) IsRunning

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

func (*KVM) Prestart

func (d *KVM) Prestart() error

func (*KVM) Start

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

func (*KVM) Stop

func (d *KVM) Stop() error

Jump to

Keyboard shortcuts

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