vm

package
v0.0.0-...-a1f5ae0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2016 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DestroyAll

func DestroyAll(configDir, tmuxSession string) error

func StopAll

func StopAll(tmuxSession string) error

Types

type HD

type HD struct {
	Device string
	Path   string
	Size   string
}

func NewHD

func NewHD(device, size, baseDir, serial string) (*HD, error)

func (*HD) Destroy

func (hd *HD) Destroy()

type NIC

type NIC struct {
	Bridge string
	Mac    string
	Dev    string
	Addr   string
}

func NewNIC

func NewNIC(bridge string, bridgeOrderNumber int, mac string) (*NIC, error)

type Population

type Population struct {
	Serials []string
	Macs    []string
}

type VM

type VM struct {
	HDs     []*HD
	NICs    []*NIC
	Serial  string
	Memory  uint16
	Image   string
	BaseDir string
}

func List

func List(baseDir string) ([]*VM, error)

func Load

func Load(baseDir, serial string) (*VM, error)

func NewVM

func NewVM(flags *VMFlags, baseDir string, pop *Population) (*VM, error)

func (*VM) Destroy

func (vm *VM) Destroy(tmuxSession string) error

func (*VM) GenerateQEMUArgs

func (vm *VM) GenerateQEMUArgs() []string

func (*VM) Save

func (vm *VM) Save() error

func (*VM) Start

func (vm *VM) Start(tmuxSession string, noTMux bool)

func (*VM) Status

func (vm *VM) Status(tmuxSession string) (string, error)

func (*VM) Stop

func (vm *VM) Stop(tmuxSession string) error

func (*VM) Wipe

func (vm *VM) Wipe(flags *VMFlags) error

type VMFlags

type VMFlags struct {
	BridgeInterfaces string
	HDs              string
	Memory           uint16
	DiskSize         string
	Image            string
}

Jump to

Keyboard shortcuts

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