Documentation ¶
Index ¶
Constants ¶
View Source
const LibVirtConIsNil string = "the libvirt connection was nil"
LibVirtConIsNil is a global string error msg
Variables ¶
View Source
var WaitSleepInterval = 1 * time.Second
WaitSleepInterval time
View Source
var WaitTimeout = 5 * time.Minute
WaitTimeout time
Functions ¶
func CleanupLibvirtConnections ¶
func CleanupLibvirtConnections()
CleanupLibvirtConnections closes libvirt clients for all URIs
Types ¶
type Domain ¶
type Domain interface {
QemuAgentCommand(command string, timeout libvirt.DomainQemuAgentCommandTimeout, flags uint32) (string, error)
}
Domain Interface used to expose a libvirt.Domain Used to allow testing
type QemuAgentInterface ¶
type QemuAgentInterface struct { Name string `json:"name"` Hwaddr string `json:"hardware-address"` IPAddresses []QemuAgentInterfaceIPAddress `json:"ip-addresses"` }
QemuAgentInterface type
type QemuAgentInterfaceIPAddress ¶
type QemuAgentInterfaceIPAddress struct { Type string `json:"ip-address-type"` Address string `json:"ip-address"` Prefix uint `json:"prefix"` }
QemuAgentInterfaceIPAddress type
type QemuAgentInterfacesResponse ¶
type QemuAgentInterfacesResponse struct {
Interfaces []QemuAgentInterface `json:"return"`
}
QemuAgentInterfacesResponse type
Source Files ¶
- cloudinit_def.go
- config.go
- coreos_ignition_def.go
- disk_def.go
- domain.go
- domain_def.go
- libvirt_interfaces.go
- network_def.go
- provider.go
- qemu_agent.go
- resource_cloud_init.go
- resource_libvirt_coreos_ignition.go
- resource_libvirt_domain.go
- resource_libvirt_network.go
- resource_libvirt_volume.go
- stream.go
- utils.go
- utils_domain_def.go
- utils_libvirt.go
- utils_net.go
- utils_volume.go
- volume_def.go
Click to show internal directories.
Click to hide internal directories.