kvm

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2017 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DomainTypeKVM = "kvm"

	OSTypeTypeHVM OSTypeType = "hvm"

	ArchI686   = "i686"
	ArchX86_64 = "x86_64"
)
View Source
const (
	DiskTypeFile    DiskType = "file"
	DiskTypeDir     DiskType = "dir"
	DiskTypeVolume  DiskType = "volume"
	DiskTypeNetwork DiskType = "network"

	DiskDeviceTypeDisk  DiskDeviceType = "disk"
	DiskDeviceTypeCDROM DiskDeviceType = "cdrom"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateParams

type CreateParams struct {
	Name   string `json:"name"`
	CPU    int    `json:"cpu"`
	Memory int    `json:"memory"`
	Image  string `json:"image"`
	Bridge string `json:"bridge"`
}

type DestroyParams

type DestroyParams struct {
	Name string `json:"name"`
}

type Device

type Device interface{}

type Devices

type Devices struct {
	Emulator string `xml:"emulator"`
	Devices  []Device
}

type DiskDevice

type DiskDevice struct {
	XMLName xml.Name       `xml:"disk"`
	Type    DiskType       `xml:"type,attr"`
	Device  DiskDeviceType `xml:"device,attr"`
	Source  DiskSource     `xml:"source"`
	Target  DiskTarget     `xml:"target"`
}

type DiskDeviceType

type DiskDeviceType string

type DiskSource

type DiskSource interface{}

type DiskSourceBlock

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

type DiskSourceFile

type DiskSourceFile struct {
	File string `xml:"file,attr"`
}

type DiskTarget

type DiskTarget struct {
	Dev string `xml:"dev,attr"`
	Bus string `xml:"bus,attr"`
}

type DiskType

type DiskType string

type Domain

type Domain struct {
	XMLName xml.Name   `xml:"domain"`
	Type    DomainType `xml:"type,attr"`
	Name    string     `xml:"name"`
	UUID    string     `xml:"uuid"`
	Memory  Memory     `xml:"memory"`
	VCPU    int        `xml:"vcpu`
	OS      OS         `xml:"os"`
	Devices Devices    `xml:"devices"`
}

type DomainType

type DomainType string

type GraphicsDevice

type GraphicsDevice struct {
	XMLName xml.Name           `xml:"graphics"`
	Type    GraphicsDeviceType `xml:"type,attr"`
	Port    int                `xml:"port,attr"`
	KeyMap  string             `xml:"keymap,attr"`
	Listen  Listen             `xml:"listen"`
}

type GraphicsDeviceType

type GraphicsDeviceType string
const (
	GraphicsDeviceTypeVNC GraphicsDeviceType = "vnc"
)

type InterfaceDevice

type InterfaceDevice struct {
	XMLName xml.Name              `xml:"interface"`
	Type    InterfaceDeviceType   `xml:"type,attr"`
	Source  InterfaceDeviceSource `xml:"source"`
}

type InterfaceDeviceSource

type InterfaceDeviceSource interface{}

type InterfaceDeviceSourceBridge

type InterfaceDeviceSourceBridge struct {
	Bridge string `xml:"bridge,attr"`
}

type InterfaceDeviceType

type InterfaceDeviceType string
const (
	InterfaceDeviceTypeBridge InterfaceDeviceType = "bridge"
)

type Listen

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

type Machine

type Machine struct {
	ID    int    `json:"id"`
	Name  string `json:"name"`
	State string `json:"state"`
}

type Memory

type Memory struct {
	Capacity int    `xml:",chardata"`
	Unit     string `xml:"unit,attr,omitempty"`
}

type OS

type OS struct {
	Type OSType `xml:"type"`
}

type OSType

type OSType struct {
	Type OSTypeType `xml:",chardata"`
	Arch string     `xml:"arch,attr"`
}

type OSTypeType

type OSTypeType string

Jump to

Keyboard shortcuts

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