vm

package
v0.0.0-...-a71b8bb Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2014 License: AGPL-3.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetVNCPort

func GetVNCPort(name string) int64

func InitializeLibvirt

func InitializeLibvirt()

func ProcessCommand

func ProcessCommand(name string, command string)

func ProxyVNC

func ProxyVNC(vncPort int64, password string, useSSL bool) int64

Types

type VIRXMLDevicesG

type VIRXMLDevicesG struct {
	Graphics []VIRXMLGraphics `xml:"graphics"`
}

type VIRXMLDevicesM

type VIRXMLDevicesM struct {
	Interfaces []VIRXMLInterface `xml:"interface"`
}

type VIRXMLGraphics

type VIRXMLGraphics struct {
	Type string `xml:"type,attr"`
	Port string `xml:"port,attr"`
}

type VIRXMLInterface

type VIRXMLInterface struct {
	Mac    VIRXMLMac     `xml:"mac"`
	Target VIRXMLTargetM `xml:"target"`
}

type VIRXMLMac

type VIRXMLMac struct {
	Address string `xml:"address,attr"`
}

type VIRXMLResG

type VIRXMLResG struct {
	XMLName xml.Name       `xml:"domain"`
	Devices VIRXMLDevicesG `xml:"devices"`
}

type VIRXMLResM

type VIRXMLResM struct {
	XMLName xml.Name       `xml:"domain"`
	Devices VIRXMLDevicesM `xml:"devices"`
}

type VIRXMLTargetM

type VIRXMLTargetM struct {
	Dev string `xml:"dev,attr"`
}

type VMDomain

type VMDomain struct {
	// contains filtered or unexported fields
}

type VMNetDefinition

type VMNetDefinition struct {
	// contains filtered or unexported fields
}

func GetNWParams

func GetNWParams(name string, vmType string) *VMNetDefinition

type VMNetIfaceDefinition

type VMNetIfaceDefinition struct {
	// contains filtered or unexported fields
}

type VMStatus

type VMStatus struct {
	Name        string
	IsPoweredOn bool
	CpuUsage    float64
	RamUsage    float64
	Vcpus       int64
}

func GetStatus

func GetStatus(name string) VMStatus

func List

func List() []VMStatus

Jump to

Keyboard shortcuts

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