template

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2016 License: Apache-2.0 Imports: 9 Imported by: 0

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 CreateTemplateVM(statePath, vmName string, cpu, mem int, kernel, initrd string) (t *TemplateVmConfig, err error)

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

Jump to

Keyboard shortcuts

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