Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ListConfigs ¶
func Run ¶
func Run(config *VirtualMachine) error
Types ¶
type NIC ¶
type VirtualMachine ¶
type VirtualMachine struct { AutoStart bool `yaml:"auto_start" json:"auto_start"` SystemTarget string `yaml:"system_target" json:"system_target"` MachineType string `yaml:"machine_type" json:"machine_type"` RunAs string `yaml:"run_as" json:"run_as"` EnableKVM bool `yaml:"enable_kvm" json:"enable_kvm"` Boot map[string]string `yaml:"boot" json:"boot"` Drives []*Drive `yaml:"drives" json:"drives"` NICs []*NIC `yaml:"nics" json:"nics"` CPUModel string `yaml:"cpu_model" json:"cpu_model"` CPUs int `yaml:"cpus" json:"cpus"` RAM string `yaml:"ram" json:"ram"` VNCDisplay string `yaml:"vnc_display" json:"vnc_display"` AdditionalArgs []string `yaml:"additional_args" json:"additional_args"` ShutdownTimeout int `yaml:"shutdown_timeout" json:"shutdown_timeout"` MaximumRetries int `yaml:"maximum_retries" json:"maximum_retries"` // contains filtered or unexported fields }
func ParseConfig ¶
func ParseConfig(configDir string, name string) (*VirtualMachine, error)
func (*VirtualMachine) SetName ¶
func (vm *VirtualMachine) SetName(name string)
func (*VirtualMachine) SetPIDFile ¶
func (vm *VirtualMachine) SetPIDFile(pidfile string)
func (*VirtualMachine) SetQMP ¶
func (vm *VirtualMachine) SetQMP(qmp string)
Click to show internal directories.
Click to hide internal directories.