qemu

package
v0.0.0-...-71f76d9 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2016 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteVM

func DeleteVM(name string) error

func GetVMStatus

func GetVMStatus(name, dir string) (string, error)

func LaunchVM

func LaunchVM(c *VMConfig, extra ...string) (*exec.Cmd, error)

func StopVM

func StopVM(name string) error

func StoreConfig

func StoreConfig(c *VMConfig) error

func VMCommand

func VMCommand(c *VMConfig, extra ...string) (*exec.Cmd, error)

Types

type VMConfig

type VMConfig struct {
	Name        string
	Image       string
	Verbose     bool
	Memory      int64
	Cpus        int
	Networking  string
	Bridge      string
	NatRules    []nat.Rule
	BackingFile bool
	InstanceDir string
	Monitor     string
	ConfigFile  string
	MAC         string
}

func LoadConfig

func LoadConfig(name string) (*VMConfig, error)

type Version

type Version struct {
	Major int
	Minor int
	Patch int
}

func ParseVersion

func ParseVersion(text string) (*Version, error)

func ProbeVersion

func ProbeVersion() (*Version, error)

Jump to

Keyboard shortcuts

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