Documentation
¶
Index ¶
- func CreateVolume(path, format string, sizeMB int64) error
- func DeleteVM(name string) error
- func GetVMStatus(name, dir string) (string, error)
- func LaunchVM(c *VMConfig, verbose bool, extra ...string) (*exec.Cmd, error)
- func StopVM(name string) error
- func StoreConfig(c *VMConfig) error
- func VMCommand(c *VMConfig, verbose bool, extra ...string) (*exec.Cmd, error)
- type VMConfig
- type Version
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateVolume ¶
func GetVMStatus ¶
func StoreConfig ¶
Types ¶
type VMConfig ¶
type VMConfig struct {
Name string // general
Verbose bool
Cmd string
DisableKvm bool
Persist bool
InstanceDir string
Monitor string
ConfigFile string
AioType string
Image string // storage
BackingFile bool
Volumes []string
Memory int64 // resources
Cpus int
Networking string // networking
Bridge string
NatRules []nat.Rule
MAC string
VNCFile string // VNC domain socket path
KernelMode bool
KernelPath string
}
func LoadConfig ¶
func (*VMConfig) ValidateVmArguments ¶
Click to show internal directories.
Click to hide internal directories.