Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TemplateVmConfig ¶
type TemplateVmConfig struct { StatePath string `json:"statepath"` Driver string `json:"driver"` Cpu int `json:"cpu"` Memory int `json:"memory"` Kernel string `json:"kernel"` Initrd string `json:"initrd"` }
func CreateTemplateVM ¶
func (*TemplateVmConfig) BootConfigFromTemplate ¶
func (t *TemplateVmConfig) BootConfigFromTemplate() *hypervisor.BootConfig
func (*TemplateVmConfig) Destroy ¶
func (t *TemplateVmConfig) Destroy()
func (*TemplateVmConfig) NewVmFromTemplate ¶
func (t *TemplateVmConfig) NewVmFromTemplate(vmName string) (*hypervisor.Vm, error)
boot vm from template, the returned vm is paused
Click to show internal directories.
Click to hide internal directories.