Help us shape the future of Go! Take the 2026 Go Developer Survey

template

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: May 10, 2017 License: Apache-2.0 Imports: 9 Imported by: 8

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, vsock bool) (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