template

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2017 License: Apache-2.0 Imports: 9 Imported by: 6

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"`
	Config    hypervisor.BootConfig
}

func CreateTemplateVM

func CreateTemplateVM(statePath, vmName string, b hypervisor.BootConfig) (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