Documentation
¶
Overview ¶
Package libvirt contains wrappers for converting schema ids to libvirt RFC4122 UUID type
Index ¶
- func CleanupLibvirtConnections()
- func HasDHCP(net libvirtxml.Network) bool
- func Provider() *schema.Provider
- type Client
- type Config
- type DeviceDRM
- type DeviceGeneric
- type DeviceNet
- type DevicePCI
- type DeviceSCSI
- type DeviceSCSIHost
- type DeviceStorage
- type DeviceSystem
- type DeviceUSB
- type DeviceUSBDevice
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CleanupLibvirtConnections ¶
func CleanupLibvirtConnections()
CleanupLibvirtConnections closes libvirt clients for all URIs.
func HasDHCP ¶
func HasDHCP(net libvirtxml.Network) bool
HasDHCP checks if the network has a DHCP server managed by libvirt.
Types ¶
type DeviceDRM ¶ added in v0.8.0
type DeviceDRM struct {
Device xml.Name `xml:"device"`
Name string `xml:"name"`
Path string `xml:"path"`
Parent string `xml:"parent"`
Devnode []struct {
Type string `xml:"type,attr"`
Path string `xml:",chardata"`
} `xml:"devnode"`
Capability struct {
Type string `xml:"type,attr"`
DRMType string `xml:"type"`
} `xml:"capability"`
}
type DeviceGeneric ¶ added in v0.8.0
type DeviceGeneric struct {
Device xml.Name `xml:"device"`
Name string `xml:"name"`
Path string `xml:"path"`
Parent string `xml:"parent"`
Capability struct {
Capability xml.Name `xml:"capability"`
Type string `xml:"type,attr"`
} `xml:"capability"`
}
strutures to parse device XML just enough to get Capability.Type.
type DeviceNet ¶ added in v0.8.0
type DeviceNet struct {
Device xml.Name `xml:"device"`
Name string `xml:"name"`
Path string `xml:"path"`
Parent string `xml:"parent"`
Capability struct {
Type string `xml:"type,attr"`
Interface string `xml:"interface"`
Address string `xml:"address"`
Link struct {
Speed string `xml:"speed,attr"`
State string `xml:"state,attr"`
} `xml:"link"`
Feature struct {
Name []string `xml:"name,attr"`
} `xml:"feature"`
Cappability struct {
Type string `xml:"type,attr"`
} `xml:"capability"`
} `xml:"capability"`
}
type DevicePCI ¶ added in v0.8.0
type DevicePCI struct {
Device xml.Name `xml:"device"`
Name string `xml:"name"`
Path string `xml:"path"`
Parent string `xml:"parent"`
Capability struct {
Type string `xml:"type,attr"`
Class string `xml:"class"`
Domain int `xml:"domain"`
Bus int `xml:"bus"`
Slot int `xml:"slot"`
Function int `xml:"function"`
Product struct {
Name string `xml:",chardata"`
ID string `xml:"id,attr"`
} `xml:"product"`
Vendor struct {
Name string `xml:",chardata"`
ID string `xml:"id,attr"`
} `xml:"vendor"`
IommuGroup struct {
IommuGroup xml.Name `xml:"iommuGroup"`
Number int `xml:"number,attr"`
Addresses []struct {
Address xml.Name `xml:"address"`
Domain string `xml:"domain,attr"`
Bus string `xml:"bus,attr"`
Slot string `xml:"slot,attr"`
Function string `xml:"function,attr"`
} `xml:"address"`
} `xml:"iommuGroup"`
} `xml:"capability"`
}
type DeviceSCSI ¶ added in v0.8.0
type DeviceSCSI struct {
Device xml.Name `xml:"device"`
Name string `xml:"name"`
Path string `xml:"path"`
Parent string `xml:"parent"`
Capability struct {
Type string `xml:"type,attr"`
Host int `xml:"host"`
Bus int `xml:"bus"`
Target int `xml:"target"`
Lun int `xml:"lun"`
ScsiType string `xml:"type"`
} `xml:"capability"`
}
type DeviceSCSIHost ¶ added in v0.8.0
type DeviceStorage ¶ added in v0.8.0
type DeviceStorage struct {
Device xml.Name `xml:"device"`
Name string `xml:"name"`
Path string `xml:"path"`
Parent string `xml:"parent"`
Capability struct {
Type string `xml:"type,attr"`
Block string `xml:"block"`
DriveType string `xml:"drive_type"`
Model string `xml:"model"`
Serial string `xml:"serial"`
Size int `xml:"size"`
LogicalBlockSize int `xml:"logical_block_size"`
NumBlocks int `xml:"num_blocks"`
} `xml:"capability"`
}
type DeviceSystem ¶ added in v0.8.0
type DeviceSystem struct {
Device xml.Name `xml:"device"`
Name string `xml:"name"`
Path string `xml:"path"`
Parent string `xml:"parent"`
Capability struct {
Type string `xml:"type,attr"`
Product string `xml:"product"`
Hardware struct {
Vendor string `xml:"vendor"`
Version string `xml:"version"`
Serial string `xml:"serial"`
UUID string `xml:"uuid"`
} `xml:"hardware"`
Firmware struct {
Vendor string `xml:"vendor"`
Version string `xml:"version"`
ReleaseDate string `xml:"release_date"`
} `xml:"firmware"`
} `xml:"capability"`
}
type DeviceUSB ¶ added in v0.8.0
type DeviceUSB struct {
Device xml.Name `xml:"device"`
Name string `xml:"name"`
Path string `xml:"path"`
Parent string `xml:"parent"`
Capability struct {
Type string `xml:"type,attr"`
Number int `xml:"number"`
Class int `xml:"class"`
Subclass int `xml:"subclass"`
Protocol int `xml:"protocol"`
Description string `xml:"description"`
} `xml:"capability"`
}
type DeviceUSBDevice ¶ added in v0.8.0
type DeviceUSBDevice struct {
Device xml.Name `xml:"device"`
Name string `xml:"name"`
Path string `xml:"path"`
Parent string `xml:"parent"`
Capability struct {
Type string `xml:"type,attr"`
Bus string `xml:"bus"`
Device string `xml:"device"`
Product struct {
Name string `xml:",chardata"`
ID string `xml:"id,attr"`
} `xml:"product"`
Vendor struct {
Name string `xml:",chardata"`
ID string `xml:"id,attr"`
} `xml:"vendor"`
} `xml:"capability"`
}
Source Files
¶
- cloudinit_def.go
- config.go
- coreos_ignition_def.go
- data_source_libvirt_network.go
- data_source_libvirt_node_device_info.go
- data_source_libvirt_node_devices.go
- data_source_libvirt_node_info.go
- disk_def.go
- domain.go
- domain_def.go
- network.go
- network_def.go
- network_dns.go
- network_routes.go
- pool.go
- pool_def.go
- provider.go
- refresh.go
- resource_libvirt_cloud_init.go
- resource_libvirt_combustion.go
- resource_libvirt_coreos_ignition.go
- resource_libvirt_domain.go
- resource_libvirt_network.go
- resource_libvirt_pool.go
- resource_libvirt_volume.go
- timeout.go
- utils.go
- utils_domain_def.go
- utils_libvirt.go
- utils_net.go
- utils_volume.go
- utils_xslt.go
- volume.go
- volume_def.go
- volume_image.go
Click to show internal directories.
Click to hide internal directories.