Documentation
¶
Index ¶
- Constants
- type CreateParams
- type DestroyParams
- type Device
- type Devices
- type DiskDevice
- type DiskDeviceType
- type DiskSource
- type DiskSourceBlock
- type DiskSourceFile
- type DiskTarget
- type DiskType
- type Domain
- type DomainType
- type GraphicsDevice
- type GraphicsDeviceType
- type InterfaceDevice
- type InterfaceDeviceSource
- type InterfaceDeviceSourceBridge
- type InterfaceDeviceType
- type Listen
- type Machine
- type Memory
- type OS
- type OSType
- type OSTypeType
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 DestroyParams ¶
type DestroyParams struct {
Name string `json:"name"`
}
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 DomainType ¶
type DomainType string
type GraphicsDevice ¶
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 OSType ¶
type OSType struct {
Type OSTypeType `xml:",chardata"`
Arch string `xml:"arch,attr"`
}
type OSTypeType ¶
type OSTypeType string
Click to show internal directories.
Click to hide internal directories.