libvirt-go: github.com/libvirt/libvirt-go Index | Files

package libvirt

import "github.com/libvirt/libvirt-go"

Package libvirt provides a Go binding to the libvirt C library

Through conditional compilation it supports libvirt versions 1.2.0 onwards. This is done automatically, with no requirement to use magic Go build tags. If an API was not available in the particular version of libvirt this package was built against, an error will be returned with a code of ERR_NO_SUPPORT. This is the same code seen if using a new libvirt library to talk to an old libvirtd lacking the API, or if a hypervisor does not support a given feature, so an application can easily handle all scenarios together.

The Go binding is a fairly direct mapping of the underling C API which seeks to maximise the use of the Go type system to allow strong compiler type checking. The following rules describe how APIs/constants are mapped from C to Go

For structs, the 'vir' prefix and 'Ptr' suffix are removed from the name. e.g. virConnectPtr in C becomes 'Connect' in Go.

For structs which are reference counted at the C level, it is neccessary to explicitly release the reference at the Go level. e.g. if a Go method returns a '* Domain' struct, it is neccessary to call 'Free' on this when no longer required. The use of 'defer' is recommended for this purpose

dom, err := conn.LookupDomainByName("myguest")
if err != nil {
    ...
}
defer dom.Free()

If multiple goroutines are using the same libvirt object struct, it may not be possible to determine which goroutine should call 'Free'. In such scenarios each new goroutine should call 'Ref' to obtain a private reference on the underlying C struct. All goroutines can call 'Free' unconditionally with the final one causing the release of the C object.

For methods, the 'vir' prefix and object name prefix are remove from the name. The C functions become methods with an object receiver. e.g. 'virDomainScreenshot' in C becomes 'Screenshot' with a 'Domain *' receiver.

For methods which accept a 'unsigned int flags' parameter in the C level, the corresponding Go parameter will be a named type corresponding to the C enum that defines the valid flags. For example, the ListAllDomains method takes a 'flags ConnectListAllDomainsFlags' parameter. If there are not currently any flags defined for a method in the C API, then the Go method parameter will be declared as a "flags uint32". Callers should always pass the literal integer value 0 for such parameters, without forcing any specific type. This will allow compatibility with future updates to the libvirt-go binding which may replace the 'uint32' type with a enum type at a later date.

For enums, the VIR_ prefix is removed from the name. The enums get a dedicated type defined in Go. e.g. the VIR_NODE_SUSPEND_TARGET_MEM enum constant in C, becomes NODE_SUSPEND_TARGET_MEM with a type of NodeSuspendTarget.

Methods accepting or returning virTypedParameter arrays in C will map the parameters into a Go struct. The struct will contain two fields for each possible parameter. One boolean field with a suffix of 'Set' indicates whether the parameter has a value set, and the other custom typed field provides the parameter value. This makes it possible to distinguish a parameter with a default value of '0' from a parameter which is 0 because it isn't supported by the hypervisor. If the C API defines additional typed parameters, then the corresponding Go struct will be extended to have further fields. e.g. the GetMemoryStats method in Go (which is backed by virNodeGetMemoryStats in C) will return a NodeMemoryStats struct containing the typed parameter values.

stats, err := conn.GetMemoryParameters()
if err != nil {
   ....
}
if stats.TotalSet {
   fmt.Printf("Total memory: %d KB", stats.Total)
}

Every method that can fail will include an 'error' object as the last return value. This will be an instance of the Error struct if an error occurred. To check for specific libvirt error codes, it is neccessary to cast the error.

err := storage_vol.Wipe(0)
if err != nil {
   lverr, ok := err.(libvirt.Error)
   if ok && lverr.Code == libvirt.ERR_NO_SUPPORT {
       fmt.Println("Wiping storage volumes is not supported");
   } else {
       fmt.Println("Error wiping storage volume: %s", err)
   }
}

Example usage

To connect to libvirt

import (
    libvirt "github.com/libvirt/libvirt-go"
)
conn, err := libvirt.NewConnect("qemu:///system")
if err != nil {
    ...
}
defer conn.Close()

doms, err := conn.ListAllDomains(libvirt.CONNECT_LIST_DOMAINS_ACTIVE)
if err != nil {
    ...
}

fmt.Printf("%d running domains:\n", len(doms))
for _, dom := range doms {
    name, err := dom.GetName()
    if err == nil {
        fmt.Printf("  %s\n", name)
    }
    dom.Free()
}

Index

Package Files

callbacks.go callbacks_cfuncs.go connect.go connect_cfuncs.go connect_compat.go doc.go domain.go domain_compat.go domain_events.go domain_events_cfuncs.go domain_snapshot.go error.go events.go events_cfuncs.go interface.go network.go network_compat.go network_events.go network_events_cfuncs.go node_device.go node_device_compat.go node_device_events.go node_device_events_cfuncs.go nwfilter.go secret.go secret_compat.go secret_events.go secret_events_cfuncs.go storage_pool.go storage_pool_compat.go storage_pool_events.go storage_pool_events_cfuncs.go storage_volume.go storage_volume_compat.go stream.go stream_cfuncs.go typedparams.go

Constants

const (
    CONNECT_CLOSE_REASON_ERROR     = ConnectCloseReason(C.VIR_CONNECT_CLOSE_REASON_ERROR)
    CONNECT_CLOSE_REASON_EOF       = ConnectCloseReason(C.VIR_CONNECT_CLOSE_REASON_EOF)
    CONNECT_CLOSE_REASON_KEEPALIVE = ConnectCloseReason(C.VIR_CONNECT_CLOSE_REASON_KEEPALIVE)
    CONNECT_CLOSE_REASON_CLIENT    = ConnectCloseReason(C.VIR_CONNECT_CLOSE_REASON_CLIENT)
)
const (
    CONNECT_LIST_DOMAINS_ACTIVE         = ConnectListAllDomainsFlags(C.VIR_CONNECT_LIST_DOMAINS_ACTIVE)
    CONNECT_LIST_DOMAINS_INACTIVE       = ConnectListAllDomainsFlags(C.VIR_CONNECT_LIST_DOMAINS_INACTIVE)
    CONNECT_LIST_DOMAINS_PERSISTENT     = ConnectListAllDomainsFlags(C.VIR_CONNECT_LIST_DOMAINS_PERSISTENT)
    CONNECT_LIST_DOMAINS_TRANSIENT      = ConnectListAllDomainsFlags(C.VIR_CONNECT_LIST_DOMAINS_TRANSIENT)
    CONNECT_LIST_DOMAINS_RUNNING        = ConnectListAllDomainsFlags(C.VIR_CONNECT_LIST_DOMAINS_RUNNING)
    CONNECT_LIST_DOMAINS_PAUSED         = ConnectListAllDomainsFlags(C.VIR_CONNECT_LIST_DOMAINS_PAUSED)
    CONNECT_LIST_DOMAINS_SHUTOFF        = ConnectListAllDomainsFlags(C.VIR_CONNECT_LIST_DOMAINS_SHUTOFF)
    CONNECT_LIST_DOMAINS_OTHER          = ConnectListAllDomainsFlags(C.VIR_CONNECT_LIST_DOMAINS_OTHER)
    CONNECT_LIST_DOMAINS_MANAGEDSAVE    = ConnectListAllDomainsFlags(C.VIR_CONNECT_LIST_DOMAINS_MANAGEDSAVE)
    CONNECT_LIST_DOMAINS_NO_MANAGEDSAVE = ConnectListAllDomainsFlags(C.VIR_CONNECT_LIST_DOMAINS_NO_MANAGEDSAVE)
    CONNECT_LIST_DOMAINS_AUTOSTART      = ConnectListAllDomainsFlags(C.VIR_CONNECT_LIST_DOMAINS_AUTOSTART)
    CONNECT_LIST_DOMAINS_NO_AUTOSTART   = ConnectListAllDomainsFlags(C.VIR_CONNECT_LIST_DOMAINS_NO_AUTOSTART)
    CONNECT_LIST_DOMAINS_HAS_SNAPSHOT   = ConnectListAllDomainsFlags(C.VIR_CONNECT_LIST_DOMAINS_HAS_SNAPSHOT)
    CONNECT_LIST_DOMAINS_NO_SNAPSHOT    = ConnectListAllDomainsFlags(C.VIR_CONNECT_LIST_DOMAINS_NO_SNAPSHOT)
)
const (
    CONNECT_LIST_NETWORKS_INACTIVE     = ConnectListAllNetworksFlags(C.VIR_CONNECT_LIST_NETWORKS_INACTIVE)
    CONNECT_LIST_NETWORKS_ACTIVE       = ConnectListAllNetworksFlags(C.VIR_CONNECT_LIST_NETWORKS_ACTIVE)
    CONNECT_LIST_NETWORKS_PERSISTENT   = ConnectListAllNetworksFlags(C.VIR_CONNECT_LIST_NETWORKS_PERSISTENT)
    CONNECT_LIST_NETWORKS_TRANSIENT    = ConnectListAllNetworksFlags(C.VIR_CONNECT_LIST_NETWORKS_TRANSIENT)
    CONNECT_LIST_NETWORKS_AUTOSTART    = ConnectListAllNetworksFlags(C.VIR_CONNECT_LIST_NETWORKS_AUTOSTART)
    CONNECT_LIST_NETWORKS_NO_AUTOSTART = ConnectListAllNetworksFlags(C.VIR_CONNECT_LIST_NETWORKS_NO_AUTOSTART)
)
const (
    CONNECT_LIST_STORAGE_POOLS_INACTIVE     = ConnectListAllStoragePoolsFlags(C.VIR_CONNECT_LIST_STORAGE_POOLS_INACTIVE)
    CONNECT_LIST_STORAGE_POOLS_ACTIVE       = ConnectListAllStoragePoolsFlags(C.VIR_CONNECT_LIST_STORAGE_POOLS_ACTIVE)
    CONNECT_LIST_STORAGE_POOLS_PERSISTENT   = ConnectListAllStoragePoolsFlags(C.VIR_CONNECT_LIST_STORAGE_POOLS_PERSISTENT)
    CONNECT_LIST_STORAGE_POOLS_TRANSIENT    = ConnectListAllStoragePoolsFlags(C.VIR_CONNECT_LIST_STORAGE_POOLS_TRANSIENT)
    CONNECT_LIST_STORAGE_POOLS_AUTOSTART    = ConnectListAllStoragePoolsFlags(C.VIR_CONNECT_LIST_STORAGE_POOLS_AUTOSTART)
    CONNECT_LIST_STORAGE_POOLS_NO_AUTOSTART = ConnectListAllStoragePoolsFlags(C.VIR_CONNECT_LIST_STORAGE_POOLS_NO_AUTOSTART)
    CONNECT_LIST_STORAGE_POOLS_DIR          = ConnectListAllStoragePoolsFlags(C.VIR_CONNECT_LIST_STORAGE_POOLS_DIR)
    CONNECT_LIST_STORAGE_POOLS_FS           = ConnectListAllStoragePoolsFlags(C.VIR_CONNECT_LIST_STORAGE_POOLS_FS)
    CONNECT_LIST_STORAGE_POOLS_NETFS        = ConnectListAllStoragePoolsFlags(C.VIR_CONNECT_LIST_STORAGE_POOLS_NETFS)
    CONNECT_LIST_STORAGE_POOLS_LOGICAL      = ConnectListAllStoragePoolsFlags(C.VIR_CONNECT_LIST_STORAGE_POOLS_LOGICAL)
    CONNECT_LIST_STORAGE_POOLS_DISK         = ConnectListAllStoragePoolsFlags(C.VIR_CONNECT_LIST_STORAGE_POOLS_DISK)
    CONNECT_LIST_STORAGE_POOLS_ISCSI        = ConnectListAllStoragePoolsFlags(C.VIR_CONNECT_LIST_STORAGE_POOLS_ISCSI)
    CONNECT_LIST_STORAGE_POOLS_SCSI         = ConnectListAllStoragePoolsFlags(C.VIR_CONNECT_LIST_STORAGE_POOLS_SCSI)
    CONNECT_LIST_STORAGE_POOLS_MPATH        = ConnectListAllStoragePoolsFlags(C.VIR_CONNECT_LIST_STORAGE_POOLS_MPATH)
    CONNECT_LIST_STORAGE_POOLS_RBD          = ConnectListAllStoragePoolsFlags(C.VIR_CONNECT_LIST_STORAGE_POOLS_RBD)
    CONNECT_LIST_STORAGE_POOLS_SHEEPDOG     = ConnectListAllStoragePoolsFlags(C.VIR_CONNECT_LIST_STORAGE_POOLS_SHEEPDOG)
    CONNECT_LIST_STORAGE_POOLS_GLUSTER      = ConnectListAllStoragePoolsFlags(C.VIR_CONNECT_LIST_STORAGE_POOLS_GLUSTER)
    CONNECT_LIST_STORAGE_POOLS_ZFS          = ConnectListAllStoragePoolsFlags(C.VIR_CONNECT_LIST_STORAGE_POOLS_ZFS)
    CONNECT_LIST_STORAGE_POOLS_VSTORAGE     = ConnectListAllStoragePoolsFlags(C.VIR_CONNECT_LIST_STORAGE_POOLS_VSTORAGE)
)
const (
    CONNECT_BASELINE_CPU_EXPAND_FEATURES = ConnectBaselineCPUFlags(C.VIR_CONNECT_BASELINE_CPU_EXPAND_FEATURES)
    CONNECT_BASELINE_CPU_MIGRATABLE      = ConnectBaselineCPUFlags(C.VIR_CONNECT_BASELINE_CPU_MIGRATABLE)
)
const (
    CONNECT_LIST_INTERFACES_INACTIVE = ConnectListAllInterfacesFlags(C.VIR_CONNECT_LIST_INTERFACES_INACTIVE)
    CONNECT_LIST_INTERFACES_ACTIVE   = ConnectListAllInterfacesFlags(C.VIR_CONNECT_LIST_INTERFACES_ACTIVE)
)
const (
    CONNECT_LIST_NODE_DEVICES_CAP_SYSTEM        = ConnectListAllNodeDeviceFlags(C.VIR_CONNECT_LIST_NODE_DEVICES_CAP_SYSTEM)
    CONNECT_LIST_NODE_DEVICES_CAP_PCI_DEV       = ConnectListAllNodeDeviceFlags(C.VIR_CONNECT_LIST_NODE_DEVICES_CAP_PCI_DEV)
    CONNECT_LIST_NODE_DEVICES_CAP_USB_DEV       = ConnectListAllNodeDeviceFlags(C.VIR_CONNECT_LIST_NODE_DEVICES_CAP_USB_DEV)
    CONNECT_LIST_NODE_DEVICES_CAP_USB_INTERFACE = ConnectListAllNodeDeviceFlags(C.VIR_CONNECT_LIST_NODE_DEVICES_CAP_USB_INTERFACE)
    CONNECT_LIST_NODE_DEVICES_CAP_NET           = ConnectListAllNodeDeviceFlags(C.VIR_CONNECT_LIST_NODE_DEVICES_CAP_NET)
    CONNECT_LIST_NODE_DEVICES_CAP_SCSI_HOST     = ConnectListAllNodeDeviceFlags(C.VIR_CONNECT_LIST_NODE_DEVICES_CAP_SCSI_HOST)
    CONNECT_LIST_NODE_DEVICES_CAP_SCSI_TARGET   = ConnectListAllNodeDeviceFlags(C.VIR_CONNECT_LIST_NODE_DEVICES_CAP_SCSI_TARGET)
    CONNECT_LIST_NODE_DEVICES_CAP_SCSI          = ConnectListAllNodeDeviceFlags(C.VIR_CONNECT_LIST_NODE_DEVICES_CAP_SCSI)
    CONNECT_LIST_NODE_DEVICES_CAP_STORAGE       = ConnectListAllNodeDeviceFlags(C.VIR_CONNECT_LIST_NODE_DEVICES_CAP_STORAGE)
    CONNECT_LIST_NODE_DEVICES_CAP_FC_HOST       = ConnectListAllNodeDeviceFlags(C.VIR_CONNECT_LIST_NODE_DEVICES_CAP_FC_HOST)
    CONNECT_LIST_NODE_DEVICES_CAP_VPORTS        = ConnectListAllNodeDeviceFlags(C.VIR_CONNECT_LIST_NODE_DEVICES_CAP_VPORTS)
    CONNECT_LIST_NODE_DEVICES_CAP_SCSI_GENERIC  = ConnectListAllNodeDeviceFlags(C.VIR_CONNECT_LIST_NODE_DEVICES_CAP_SCSI_GENERIC)
    CONNECT_LIST_NODE_DEVICES_CAP_DRM           = ConnectListAllNodeDeviceFlags(C.VIR_CONNECT_LIST_NODE_DEVICES_CAP_DRM)
)
const (
    CONNECT_LIST_SECRETS_EPHEMERAL    = ConnectListAllSecretsFlags(C.VIR_CONNECT_LIST_SECRETS_EPHEMERAL)
    CONNECT_LIST_SECRETS_NO_EPHEMERAL = ConnectListAllSecretsFlags(C.VIR_CONNECT_LIST_SECRETS_NO_EPHEMERAL)
    CONNECT_LIST_SECRETS_PRIVATE      = ConnectListAllSecretsFlags(C.VIR_CONNECT_LIST_SECRETS_PRIVATE)
    CONNECT_LIST_SECRETS_NO_PRIVATE   = ConnectListAllSecretsFlags(C.VIR_CONNECT_LIST_SECRETS_NO_PRIVATE)
)
const (
    CONNECT_GET_ALL_DOMAINS_STATS_ACTIVE        = ConnectGetAllDomainStatsFlags(C.VIR_CONNECT_GET_ALL_DOMAINS_STATS_ACTIVE)
    CONNECT_GET_ALL_DOMAINS_STATS_INACTIVE      = ConnectGetAllDomainStatsFlags(C.VIR_CONNECT_GET_ALL_DOMAINS_STATS_INACTIVE)
    CONNECT_GET_ALL_DOMAINS_STATS_PERSISTENT    = ConnectGetAllDomainStatsFlags(C.VIR_CONNECT_GET_ALL_DOMAINS_STATS_PERSISTENT)
    CONNECT_GET_ALL_DOMAINS_STATS_TRANSIENT     = ConnectGetAllDomainStatsFlags(C.VIR_CONNECT_GET_ALL_DOMAINS_STATS_TRANSIENT)
    CONNECT_GET_ALL_DOMAINS_STATS_RUNNING       = ConnectGetAllDomainStatsFlags(C.VIR_CONNECT_GET_ALL_DOMAINS_STATS_RUNNING)
    CONNECT_GET_ALL_DOMAINS_STATS_PAUSED        = ConnectGetAllDomainStatsFlags(C.VIR_CONNECT_GET_ALL_DOMAINS_STATS_PAUSED)
    CONNECT_GET_ALL_DOMAINS_STATS_SHUTOFF       = ConnectGetAllDomainStatsFlags(C.VIR_CONNECT_GET_ALL_DOMAINS_STATS_SHUTOFF)
    CONNECT_GET_ALL_DOMAINS_STATS_OTHER         = ConnectGetAllDomainStatsFlags(C.VIR_CONNECT_GET_ALL_DOMAINS_STATS_OTHER)
    CONNECT_GET_ALL_DOMAINS_STATS_BACKING       = ConnectGetAllDomainStatsFlags(C.VIR_CONNECT_GET_ALL_DOMAINS_STATS_BACKING)
    CONNECT_GET_ALL_DOMAINS_STATS_ENFORCE_STATS = ConnectGetAllDomainStatsFlags(C.VIR_CONNECT_GET_ALL_DOMAINS_STATS_ENFORCE_STATS)
)
const (
    CONNECT_RO         = ConnectFlags(C.VIR_CONNECT_RO)
    CONNECT_NO_ALIASES = ConnectFlags(C.VIR_CONNECT_NO_ALIASES)
)
const (
    CONNECT_DOMAIN_EVENT_AGENT_LIFECYCLE_STATE_CONNECTED    = ConnectDomainEventAgentLifecycleState(C.VIR_CONNECT_DOMAIN_EVENT_AGENT_LIFECYCLE_STATE_CONNECTED)
    CONNECT_DOMAIN_EVENT_AGENT_LIFECYCLE_STATE_DISCONNECTED = ConnectDomainEventAgentLifecycleState(C.VIR_CONNECT_DOMAIN_EVENT_AGENT_LIFECYCLE_STATE_DISCONNECTED)
)
const (
    CONNECT_DOMAIN_EVENT_AGENT_LIFECYCLE_REASON_UNKNOWN        = ConnectDomainEventAgentLifecycleReason(C.VIR_CONNECT_DOMAIN_EVENT_AGENT_LIFECYCLE_REASON_UNKNOWN)
    CONNECT_DOMAIN_EVENT_AGENT_LIFECYCLE_REASON_DOMAIN_STARTED = ConnectDomainEventAgentLifecycleReason(C.VIR_CONNECT_DOMAIN_EVENT_AGENT_LIFECYCLE_REASON_DOMAIN_STARTED)
    CONNECT_DOMAIN_EVENT_AGENT_LIFECYCLE_REASON_CHANNEL        = ConnectDomainEventAgentLifecycleReason(C.VIR_CONNECT_DOMAIN_EVENT_AGENT_LIFECYCLE_REASON_CHANNEL)
)
const (
    CPU_COMPARE_ERROR        = CPUCompareResult(C.VIR_CPU_COMPARE_ERROR)
    CPU_COMPARE_INCOMPATIBLE = CPUCompareResult(C.VIR_CPU_COMPARE_INCOMPATIBLE)
    CPU_COMPARE_IDENTICAL    = CPUCompareResult(C.VIR_CPU_COMPARE_IDENTICAL)
    CPU_COMPARE_SUPERSET     = CPUCompareResult(C.VIR_CPU_COMPARE_SUPERSET)
)
const (
    NODE_ALLOC_PAGES_ADD = NodeAllocPagesFlags(C.VIR_NODE_ALLOC_PAGES_ADD)
    NODE_ALLOC_PAGES_SET = NodeAllocPagesFlags(C.VIR_NODE_ALLOC_PAGES_SET)
)
const (
    NODE_SUSPEND_TARGET_MEM    = NodeSuspendTarget(C.VIR_NODE_SUSPEND_TARGET_MEM)
    NODE_SUSPEND_TARGET_DISK   = NodeSuspendTarget(C.VIR_NODE_SUSPEND_TARGET_DISK)
    NODE_SUSPEND_TARGET_HYBRID = NodeSuspendTarget(C.VIR_NODE_SUSPEND_TARGET_HYBRID)
)
const (
    CRED_USERNAME     = ConnectCredentialType(C.VIR_CRED_USERNAME)
    CRED_AUTHNAME     = ConnectCredentialType(C.VIR_CRED_AUTHNAME)
    CRED_LANGUAGE     = ConnectCredentialType(C.VIR_CRED_LANGUAGE)
    CRED_CNONCE       = ConnectCredentialType(C.VIR_CRED_CNONCE)
    CRED_PASSPHRASE   = ConnectCredentialType(C.VIR_CRED_PASSPHRASE)
    CRED_ECHOPROMPT   = ConnectCredentialType(C.VIR_CRED_ECHOPROMPT)
    CRED_NOECHOPROMPT = ConnectCredentialType(C.VIR_CRED_NOECHOPROMPT)
    CRED_REALM        = ConnectCredentialType(C.VIR_CRED_REALM)
    CRED_EXTERNAL     = ConnectCredentialType(C.VIR_CRED_EXTERNAL)
)
const (
    DOMAIN_NOSTATE     = DomainState(C.VIR_DOMAIN_NOSTATE)
    DOMAIN_RUNNING     = DomainState(C.VIR_DOMAIN_RUNNING)
    DOMAIN_BLOCKED     = DomainState(C.VIR_DOMAIN_BLOCKED)
    DOMAIN_PAUSED      = DomainState(C.VIR_DOMAIN_PAUSED)
    DOMAIN_SHUTDOWN    = DomainState(C.VIR_DOMAIN_SHUTDOWN)
    DOMAIN_CRASHED     = DomainState(C.VIR_DOMAIN_CRASHED)
    DOMAIN_PMSUSPENDED = DomainState(C.VIR_DOMAIN_PMSUSPENDED)
    DOMAIN_SHUTOFF     = DomainState(C.VIR_DOMAIN_SHUTOFF)
)
const (
    DOMAIN_METADATA_DESCRIPTION = DomainMetadataType(C.VIR_DOMAIN_METADATA_DESCRIPTION)
    DOMAIN_METADATA_TITLE       = DomainMetadataType(C.VIR_DOMAIN_METADATA_TITLE)
    DOMAIN_METADATA_ELEMENT     = DomainMetadataType(C.VIR_DOMAIN_METADATA_ELEMENT)
)
const (
    DOMAIN_VCPU_CONFIG       = DomainVcpuFlags(C.VIR_DOMAIN_VCPU_CONFIG)
    DOMAIN_VCPU_CURRENT      = DomainVcpuFlags(C.VIR_DOMAIN_VCPU_CURRENT)
    DOMAIN_VCPU_LIVE         = DomainVcpuFlags(C.VIR_DOMAIN_VCPU_LIVE)
    DOMAIN_VCPU_MAXIMUM      = DomainVcpuFlags(C.VIR_DOMAIN_VCPU_MAXIMUM)
    DOMAIN_VCPU_GUEST        = DomainVcpuFlags(C.VIR_DOMAIN_VCPU_GUEST)
    DOMAIN_VCPU_HOTPLUGGABLE = DomainVcpuFlags(C.VIR_DOMAIN_VCPU_HOTPLUGGABLE)
)
const (
    DOMAIN_AFFECT_CONFIG  = DomainModificationImpact(C.VIR_DOMAIN_AFFECT_CONFIG)
    DOMAIN_AFFECT_CURRENT = DomainModificationImpact(C.VIR_DOMAIN_AFFECT_CURRENT)
    DOMAIN_AFFECT_LIVE    = DomainModificationImpact(C.VIR_DOMAIN_AFFECT_LIVE)
)
const (
    DOMAIN_MEM_CONFIG  = DomainMemoryModFlags(C.VIR_DOMAIN_MEM_CONFIG)
    DOMAIN_MEM_CURRENT = DomainMemoryModFlags(C.VIR_DOMAIN_MEM_CURRENT)
    DOMAIN_MEM_LIVE    = DomainMemoryModFlags(C.VIR_DOMAIN_MEM_LIVE)
    DOMAIN_MEM_MAXIMUM = DomainMemoryModFlags(C.VIR_DOMAIN_MEM_MAXIMUM)
)
const (
    DOMAIN_DESTROY_DEFAULT  = DomainDestroyFlags(C.VIR_DOMAIN_DESTROY_DEFAULT)
    DOMAIN_DESTROY_GRACEFUL = DomainDestroyFlags(C.VIR_DOMAIN_DESTROY_GRACEFUL)
)
const (
    DOMAIN_SHUTDOWN_DEFAULT        = DomainShutdownFlags(C.VIR_DOMAIN_SHUTDOWN_DEFAULT)
    DOMAIN_SHUTDOWN_ACPI_POWER_BTN = DomainShutdownFlags(C.VIR_DOMAIN_SHUTDOWN_ACPI_POWER_BTN)
    DOMAIN_SHUTDOWN_GUEST_AGENT    = DomainShutdownFlags(C.VIR_DOMAIN_SHUTDOWN_GUEST_AGENT)
    DOMAIN_SHUTDOWN_INITCTL        = DomainShutdownFlags(C.VIR_DOMAIN_SHUTDOWN_INITCTL)
    DOMAIN_SHUTDOWN_SIGNAL         = DomainShutdownFlags(C.VIR_DOMAIN_SHUTDOWN_SIGNAL)
    DOMAIN_SHUTDOWN_PARAVIRT       = DomainShutdownFlags(C.VIR_DOMAIN_SHUTDOWN_PARAVIRT)
)
const (
    DOMAIN_UNDEFINE_MANAGED_SAVE       = DomainUndefineFlagsValues(C.VIR_DOMAIN_UNDEFINE_MANAGED_SAVE)       // Also remove any managed save
    DOMAIN_UNDEFINE_SNAPSHOTS_METADATA = DomainUndefineFlagsValues(C.VIR_DOMAIN_UNDEFINE_SNAPSHOTS_METADATA) // If last use of domain, then also remove any snapshot metadata
    DOMAIN_UNDEFINE_NVRAM              = DomainUndefineFlagsValues(C.VIR_DOMAIN_UNDEFINE_NVRAM)              // Also remove any nvram file
    DOMAIN_UNDEFINE_KEEP_NVRAM         = DomainUndefineFlagsValues(C.VIR_DOMAIN_UNDEFINE_KEEP_NVRAM)         // Keep nvram file
)
const (
    DOMAIN_DEVICE_MODIFY_CONFIG  = DomainDeviceModifyFlags(C.VIR_DOMAIN_DEVICE_MODIFY_CONFIG)
    DOMAIN_DEVICE_MODIFY_CURRENT = DomainDeviceModifyFlags(C.VIR_DOMAIN_DEVICE_MODIFY_CURRENT)
    DOMAIN_DEVICE_MODIFY_LIVE    = DomainDeviceModifyFlags(C.VIR_DOMAIN_DEVICE_MODIFY_LIVE)
    DOMAIN_DEVICE_MODIFY_FORCE   = DomainDeviceModifyFlags(C.VIR_DOMAIN_DEVICE_MODIFY_FORCE)
)
const (
    DOMAIN_NONE               = DomainCreateFlags(C.VIR_DOMAIN_NONE)
    DOMAIN_START_PAUSED       = DomainCreateFlags(C.VIR_DOMAIN_START_PAUSED)
    DOMAIN_START_AUTODESTROY  = DomainCreateFlags(C.VIR_DOMAIN_START_AUTODESTROY)
    DOMAIN_START_BYPASS_CACHE = DomainCreateFlags(C.VIR_DOMAIN_START_BYPASS_CACHE)
    DOMAIN_START_FORCE_BOOT   = DomainCreateFlags(C.VIR_DOMAIN_START_FORCE_BOOT)
    DOMAIN_START_VALIDATE     = DomainCreateFlags(C.VIR_DOMAIN_START_VALIDATE)
)
const (
    DOMAIN_EVENT_DEFINED     = DomainEventType(C.VIR_DOMAIN_EVENT_DEFINED)
    DOMAIN_EVENT_UNDEFINED   = DomainEventType(C.VIR_DOMAIN_EVENT_UNDEFINED)
    DOMAIN_EVENT_STARTED     = DomainEventType(C.VIR_DOMAIN_EVENT_STARTED)
    DOMAIN_EVENT_SUSPENDED   = DomainEventType(C.VIR_DOMAIN_EVENT_SUSPENDED)
    DOMAIN_EVENT_RESUMED     = DomainEventType(C.VIR_DOMAIN_EVENT_RESUMED)
    DOMAIN_EVENT_STOPPED     = DomainEventType(C.VIR_DOMAIN_EVENT_STOPPED)
    DOMAIN_EVENT_SHUTDOWN    = DomainEventType(C.VIR_DOMAIN_EVENT_SHUTDOWN)
    DOMAIN_EVENT_PMSUSPENDED = DomainEventType(C.VIR_DOMAIN_EVENT_PMSUSPENDED)
    DOMAIN_EVENT_CRASHED     = DomainEventType(C.VIR_DOMAIN_EVENT_CRASHED)
)
const (
    // No action, watchdog ignored
    DOMAIN_EVENT_WATCHDOG_NONE = DomainEventWatchdogAction(C.VIR_DOMAIN_EVENT_WATCHDOG_NONE)

    // Guest CPUs are paused
    DOMAIN_EVENT_WATCHDOG_PAUSE = DomainEventWatchdogAction(C.VIR_DOMAIN_EVENT_WATCHDOG_PAUSE)

    // Guest CPUs are reset
    DOMAIN_EVENT_WATCHDOG_RESET = DomainEventWatchdogAction(C.VIR_DOMAIN_EVENT_WATCHDOG_RESET)

    // Guest is forcibly powered off
    DOMAIN_EVENT_WATCHDOG_POWEROFF = DomainEventWatchdogAction(C.VIR_DOMAIN_EVENT_WATCHDOG_POWEROFF)

    // Guest is requested to gracefully shutdown
    DOMAIN_EVENT_WATCHDOG_SHUTDOWN = DomainEventWatchdogAction(C.VIR_DOMAIN_EVENT_WATCHDOG_SHUTDOWN)

    // No action, a debug message logged
    DOMAIN_EVENT_WATCHDOG_DEBUG = DomainEventWatchdogAction(C.VIR_DOMAIN_EVENT_WATCHDOG_DEBUG)

    // Inject a non-maskable interrupt into guest
    DOMAIN_EVENT_WATCHDOG_INJECTNMI = DomainEventWatchdogAction(C.VIR_DOMAIN_EVENT_WATCHDOG_INJECTNMI)
)

The action that is to be taken due to the watchdog device firing

const (
    // No action, IO error ignored
    DOMAIN_EVENT_IO_ERROR_NONE = DomainEventIOErrorAction(C.VIR_DOMAIN_EVENT_IO_ERROR_NONE)

    // Guest CPUs are paused
    DOMAIN_EVENT_IO_ERROR_PAUSE = DomainEventIOErrorAction(C.VIR_DOMAIN_EVENT_IO_ERROR_PAUSE)

    // IO error reported to guest OS
    DOMAIN_EVENT_IO_ERROR_REPORT = DomainEventIOErrorAction(C.VIR_DOMAIN_EVENT_IO_ERROR_REPORT)
)

The action that is to be taken due to an IO error occurring

const (
    // Initial socket connection established
    DOMAIN_EVENT_GRAPHICS_CONNECT = DomainEventGraphicsPhase(C.VIR_DOMAIN_EVENT_GRAPHICS_CONNECT)

    // Authentication & setup completed
    DOMAIN_EVENT_GRAPHICS_INITIALIZE = DomainEventGraphicsPhase(C.VIR_DOMAIN_EVENT_GRAPHICS_INITIALIZE)

    // Final socket disconnection
    DOMAIN_EVENT_GRAPHICS_DISCONNECT = DomainEventGraphicsPhase(C.VIR_DOMAIN_EVENT_GRAPHICS_DISCONNECT)
)

The phase of the graphics client connection

const (
    // IPv4 address
    DOMAIN_EVENT_GRAPHICS_ADDRESS_IPV4 = DomainEventGraphicsAddressType(C.VIR_DOMAIN_EVENT_GRAPHICS_ADDRESS_IPV4)

    // IPv6 address
    DOMAIN_EVENT_GRAPHICS_ADDRESS_IPV6 = DomainEventGraphicsAddressType(C.VIR_DOMAIN_EVENT_GRAPHICS_ADDRESS_IPV6)

    // UNIX socket path
    DOMAIN_EVENT_GRAPHICS_ADDRESS_UNIX = DomainEventGraphicsAddressType(C.VIR_DOMAIN_EVENT_GRAPHICS_ADDRESS_UNIX)
)
const (
    // Placeholder
    DOMAIN_BLOCK_JOB_TYPE_UNKNOWN = DomainBlockJobType(C.VIR_DOMAIN_BLOCK_JOB_TYPE_UNKNOWN)

    // Block Pull (virDomainBlockPull, or virDomainBlockRebase without
    // flags), job ends on completion
    DOMAIN_BLOCK_JOB_TYPE_PULL = DomainBlockJobType(C.VIR_DOMAIN_BLOCK_JOB_TYPE_PULL)

    // Block Copy (virDomainBlockCopy, or virDomainBlockRebase with
    // flags), job exists as long as mirroring is active
    DOMAIN_BLOCK_JOB_TYPE_COPY = DomainBlockJobType(C.VIR_DOMAIN_BLOCK_JOB_TYPE_COPY)

    // Block Commit (virDomainBlockCommit without flags), job ends on
    // completion
    DOMAIN_BLOCK_JOB_TYPE_COMMIT = DomainBlockJobType(C.VIR_DOMAIN_BLOCK_JOB_TYPE_COMMIT)

    // Active Block Commit (virDomainBlockCommit with flags), job
    // exists as long as sync is active
    DOMAIN_BLOCK_JOB_TYPE_ACTIVE_COMMIT = DomainBlockJobType(C.VIR_DOMAIN_BLOCK_JOB_TYPE_ACTIVE_COMMIT)
)
const (
    DOMAIN_RUNNING_UNKNOWN            = DomainRunningReason(C.VIR_DOMAIN_RUNNING_UNKNOWN)
    DOMAIN_RUNNING_BOOTED             = DomainRunningReason(C.VIR_DOMAIN_RUNNING_BOOTED)             /* normal startup from boot */
    DOMAIN_RUNNING_MIGRATED           = DomainRunningReason(C.VIR_DOMAIN_RUNNING_MIGRATED)           /* migrated from another host */
    DOMAIN_RUNNING_RESTORED           = DomainRunningReason(C.VIR_DOMAIN_RUNNING_RESTORED)           /* restored from a state file */
    DOMAIN_RUNNING_FROM_SNAPSHOT      = DomainRunningReason(C.VIR_DOMAIN_RUNNING_FROM_SNAPSHOT)      /* restored from snapshot */
    DOMAIN_RUNNING_UNPAUSED           = DomainRunningReason(C.VIR_DOMAIN_RUNNING_UNPAUSED)           /* returned from paused state */
    DOMAIN_RUNNING_MIGRATION_CANCELED = DomainRunningReason(C.VIR_DOMAIN_RUNNING_MIGRATION_CANCELED) /* returned from migration */
    DOMAIN_RUNNING_SAVE_CANCELED      = DomainRunningReason(C.VIR_DOMAIN_RUNNING_SAVE_CANCELED)      /* returned from failed save process */
    DOMAIN_RUNNING_WAKEUP             = DomainRunningReason(C.VIR_DOMAIN_RUNNING_WAKEUP)             /* returned from pmsuspended due to wakeup event */
    DOMAIN_RUNNING_CRASHED            = DomainRunningReason(C.VIR_DOMAIN_RUNNING_CRASHED)            /* resumed from crashed */
    DOMAIN_RUNNING_POSTCOPY           = DomainRunningReason(C.VIR_DOMAIN_RUNNING_POSTCOPY)           /* running in post-copy migration mode */
)
const (
    DOMAIN_PAUSED_UNKNOWN         = DomainPausedReason(C.VIR_DOMAIN_PAUSED_UNKNOWN)         /* the reason is unknown */
    DOMAIN_PAUSED_USER            = DomainPausedReason(C.VIR_DOMAIN_PAUSED_USER)            /* paused on user request */
    DOMAIN_PAUSED_MIGRATION       = DomainPausedReason(C.VIR_DOMAIN_PAUSED_MIGRATION)       /* paused for offline migration */
    DOMAIN_PAUSED_SAVE            = DomainPausedReason(C.VIR_DOMAIN_PAUSED_SAVE)            /* paused for save */
    DOMAIN_PAUSED_DUMP            = DomainPausedReason(C.VIR_DOMAIN_PAUSED_DUMP)            /* paused for offline core dump */
    DOMAIN_PAUSED_IOERROR         = DomainPausedReason(C.VIR_DOMAIN_PAUSED_IOERROR)         /* paused due to a disk I/O error */
    DOMAIN_PAUSED_WATCHDOG        = DomainPausedReason(C.VIR_DOMAIN_PAUSED_WATCHDOG)        /* paused due to a watchdog event */
    DOMAIN_PAUSED_FROM_SNAPSHOT   = DomainPausedReason(C.VIR_DOMAIN_PAUSED_FROM_SNAPSHOT)   /* paused after restoring from snapshot */
    DOMAIN_PAUSED_SHUTTING_DOWN   = DomainPausedReason(C.VIR_DOMAIN_PAUSED_SHUTTING_DOWN)   /* paused during shutdown process */
    DOMAIN_PAUSED_SNAPSHOT        = DomainPausedReason(C.VIR_DOMAIN_PAUSED_SNAPSHOT)        /* paused while creating a snapshot */
    DOMAIN_PAUSED_CRASHED         = DomainPausedReason(C.VIR_DOMAIN_PAUSED_CRASHED)         /* paused due to a guest crash */
    DOMAIN_PAUSED_STARTING_UP     = DomainPausedReason(C.VIR_DOMAIN_PAUSED_STARTING_UP)     /* the domainis being started */
    DOMAIN_PAUSED_POSTCOPY        = DomainPausedReason(C.VIR_DOMAIN_PAUSED_POSTCOPY)        /* paused for post-copy migration */
    DOMAIN_PAUSED_POSTCOPY_FAILED = DomainPausedReason(C.VIR_DOMAIN_PAUSED_POSTCOPY_FAILED) /* paused after failed post-copy */
)
const (
    DOMAIN_XML_SECURE     = DomainXMLFlags(C.VIR_DOMAIN_XML_SECURE)     /* dump security sensitive information too */
    DOMAIN_XML_INACTIVE   = DomainXMLFlags(C.VIR_DOMAIN_XML_INACTIVE)   /* dump inactive domain information */
    DOMAIN_XML_UPDATE_CPU = DomainXMLFlags(C.VIR_DOMAIN_XML_UPDATE_CPU) /* update guest CPU requirements according to host CPU */
    DOMAIN_XML_MIGRATABLE = DomainXMLFlags(C.VIR_DOMAIN_XML_MIGRATABLE) /* dump XML suitable for migration */
)
const (
    DOMAIN_EVENT_DEFINED_ADDED         = DomainEventDefinedDetailType(C.VIR_DOMAIN_EVENT_DEFINED_ADDED)
    DOMAIN_EVENT_DEFINED_UPDATED       = DomainEventDefinedDetailType(C.VIR_DOMAIN_EVENT_DEFINED_UPDATED)
    DOMAIN_EVENT_DEFINED_RENAMED       = DomainEventDefinedDetailType(C.VIR_DOMAIN_EVENT_DEFINED_RENAMED)
    DOMAIN_EVENT_DEFINED_FROM_SNAPSHOT = DomainEventDefinedDetailType(C.VIR_DOMAIN_EVENT_DEFINED_FROM_SNAPSHOT)
)
const (
    DOMAIN_EVENT_UNDEFINED_REMOVED = DomainEventUndefinedDetailType(C.VIR_DOMAIN_EVENT_UNDEFINED_REMOVED)
    DOMAIN_EVENT_UNDEFINED_RENAMED = DomainEventUndefinedDetailType(C.VIR_DOMAIN_EVENT_UNDEFINED_RENAMED)
)
const (
    DOMAIN_EVENT_STARTED_BOOTED        = DomainEventStartedDetailType(C.VIR_DOMAIN_EVENT_STARTED_BOOTED)
    DOMAIN_EVENT_STARTED_MIGRATED      = DomainEventStartedDetailType(C.VIR_DOMAIN_EVENT_STARTED_MIGRATED)
    DOMAIN_EVENT_STARTED_RESTORED      = DomainEventStartedDetailType(C.VIR_DOMAIN_EVENT_STARTED_RESTORED)
    DOMAIN_EVENT_STARTED_FROM_SNAPSHOT = DomainEventStartedDetailType(C.VIR_DOMAIN_EVENT_STARTED_FROM_SNAPSHOT)
    DOMAIN_EVENT_STARTED_WAKEUP        = DomainEventStartedDetailType(C.VIR_DOMAIN_EVENT_STARTED_WAKEUP)
)
const (
    DOMAIN_EVENT_SUSPENDED_PAUSED          = DomainEventSuspendedDetailType(C.VIR_DOMAIN_EVENT_SUSPENDED_PAUSED)
    DOMAIN_EVENT_SUSPENDED_MIGRATED        = DomainEventSuspendedDetailType(C.VIR_DOMAIN_EVENT_SUSPENDED_MIGRATED)
    DOMAIN_EVENT_SUSPENDED_IOERROR         = DomainEventSuspendedDetailType(C.VIR_DOMAIN_EVENT_SUSPENDED_IOERROR)
    DOMAIN_EVENT_SUSPENDED_WATCHDOG        = DomainEventSuspendedDetailType(C.VIR_DOMAIN_EVENT_SUSPENDED_WATCHDOG)
    DOMAIN_EVENT_SUSPENDED_RESTORED        = DomainEventSuspendedDetailType(C.VIR_DOMAIN_EVENT_SUSPENDED_RESTORED)
    DOMAIN_EVENT_SUSPENDED_FROM_SNAPSHOT   = DomainEventSuspendedDetailType(C.VIR_DOMAIN_EVENT_SUSPENDED_FROM_SNAPSHOT)
    DOMAIN_EVENT_SUSPENDED_API_ERROR       = DomainEventSuspendedDetailType(C.VIR_DOMAIN_EVENT_SUSPENDED_API_ERROR)
    DOMAIN_EVENT_SUSPENDED_POSTCOPY        = DomainEventSuspendedDetailType(C.VIR_DOMAIN_EVENT_SUSPENDED_POSTCOPY)
    DOMAIN_EVENT_SUSPENDED_POSTCOPY_FAILED = DomainEventSuspendedDetailType(C.VIR_DOMAIN_EVENT_SUSPENDED_POSTCOPY_FAILED)
)
const (
    DOMAIN_EVENT_RESUMED_UNPAUSED      = DomainEventResumedDetailType(C.VIR_DOMAIN_EVENT_RESUMED_UNPAUSED)
    DOMAIN_EVENT_RESUMED_MIGRATED      = DomainEventResumedDetailType(C.VIR_DOMAIN_EVENT_RESUMED_MIGRATED)
    DOMAIN_EVENT_RESUMED_FROM_SNAPSHOT = DomainEventResumedDetailType(C.VIR_DOMAIN_EVENT_RESUMED_FROM_SNAPSHOT)
    DOMAIN_EVENT_RESUMED_POSTCOPY      = DomainEventResumedDetailType(C.VIR_DOMAIN_EVENT_RESUMED_POSTCOPY)
)
const (
    DOMAIN_EVENT_STOPPED_SHUTDOWN      = DomainEventStoppedDetailType(C.VIR_DOMAIN_EVENT_STOPPED_SHUTDOWN)
    DOMAIN_EVENT_STOPPED_DESTROYED     = DomainEventStoppedDetailType(C.VIR_DOMAIN_EVENT_STOPPED_DESTROYED)
    DOMAIN_EVENT_STOPPED_CRASHED       = DomainEventStoppedDetailType(C.VIR_DOMAIN_EVENT_STOPPED_CRASHED)
    DOMAIN_EVENT_STOPPED_MIGRATED      = DomainEventStoppedDetailType(C.VIR_DOMAIN_EVENT_STOPPED_MIGRATED)
    DOMAIN_EVENT_STOPPED_SAVED         = DomainEventStoppedDetailType(C.VIR_DOMAIN_EVENT_STOPPED_SAVED)
    DOMAIN_EVENT_STOPPED_FAILED        = DomainEventStoppedDetailType(C.VIR_DOMAIN_EVENT_STOPPED_FAILED)
    DOMAIN_EVENT_STOPPED_FROM_SNAPSHOT = DomainEventStoppedDetailType(C.VIR_DOMAIN_EVENT_STOPPED_FROM_SNAPSHOT)
)
const (
    DOMAIN_MEMORY_STAT_LAST           = DomainMemoryStatTags(C.VIR_DOMAIN_MEMORY_STAT_NR)
    DOMAIN_MEMORY_STAT_SWAP_IN        = DomainMemoryStatTags(C.VIR_DOMAIN_MEMORY_STAT_SWAP_IN)
    DOMAIN_MEMORY_STAT_SWAP_OUT       = DomainMemoryStatTags(C.VIR_DOMAIN_MEMORY_STAT_SWAP_OUT)
    DOMAIN_MEMORY_STAT_MAJOR_FAULT    = DomainMemoryStatTags(C.VIR_DOMAIN_MEMORY_STAT_MAJOR_FAULT)
    DOMAIN_MEMORY_STAT_MINOR_FAULT    = DomainMemoryStatTags(C.VIR_DOMAIN_MEMORY_STAT_MINOR_FAULT)
    DOMAIN_MEMORY_STAT_UNUSED         = DomainMemoryStatTags(C.VIR_DOMAIN_MEMORY_STAT_UNUSED)
    DOMAIN_MEMORY_STAT_AVAILABLE      = DomainMemoryStatTags(C.VIR_DOMAIN_MEMORY_STAT_AVAILABLE)
    DOMAIN_MEMORY_STAT_ACTUAL_BALLOON = DomainMemoryStatTags(C.VIR_DOMAIN_MEMORY_STAT_ACTUAL_BALLOON)
    DOMAIN_MEMORY_STAT_RSS            = DomainMemoryStatTags(C.VIR_DOMAIN_MEMORY_STAT_RSS)
    DOMAIN_MEMORY_STAT_USABLE         = DomainMemoryStatTags(C.VIR_DOMAIN_MEMORY_STAT_USABLE)
    DOMAIN_MEMORY_STAT_LAST_UPDATE    = DomainMemoryStatTags(C.VIR_DOMAIN_MEMORY_STAT_LAST_UPDATE)
    DOMAIN_MEMORY_STAT_NR             = DomainMemoryStatTags(C.VIR_DOMAIN_MEMORY_STAT_NR)
)
const (
    DOMAIN_CPU_STATS_CPUTIME    = DomainCPUStatsTags(C.VIR_DOMAIN_CPU_STATS_CPUTIME)
    DOMAIN_CPU_STATS_SYSTEMTIME = DomainCPUStatsTags(C.VIR_DOMAIN_CPU_STATS_SYSTEMTIME)
    DOMAIN_CPU_STATS_USERTIME   = DomainCPUStatsTags(C.VIR_DOMAIN_CPU_STATS_USERTIME)
    DOMAIN_CPU_STATS_VCPUTIME   = DomainCPUStatsTags(C.VIR_DOMAIN_CPU_STATS_VCPUTIME)
)
const (
    DOMAIN_INTERFACE_ADDRESSES_SRC_LEASE = DomainInterfaceAddressesSource(C.VIR_DOMAIN_INTERFACE_ADDRESSES_SRC_LEASE)
    DOMAIN_INTERFACE_ADDRESSES_SRC_AGENT = DomainInterfaceAddressesSource(C.VIR_DOMAIN_INTERFACE_ADDRESSES_SRC_AGENT)
)
const (
    KEYCODE_SET_LINUX  = KeycodeSet(C.VIR_KEYCODE_SET_LINUX)
    KEYCODE_SET_XT     = KeycodeSet(C.VIR_KEYCODE_SET_XT)
    KEYCODE_SET_ATSET1 = KeycodeSet(C.VIR_KEYCODE_SET_ATSET1)
    KEYCODE_SET_ATSET2 = KeycodeSet(C.VIR_KEYCODE_SET_ATSET2)
    KEYCODE_SET_ATSET3 = KeycodeSet(C.VIR_KEYCODE_SET_ATSET3)
    KEYCODE_SET_OSX    = KeycodeSet(C.VIR_KEYCODE_SET_OSX)
    KEYCODE_SET_XT_KBD = KeycodeSet(C.VIR_KEYCODE_SET_XT_KBD)
    KEYCODE_SET_USB    = KeycodeSet(C.VIR_KEYCODE_SET_USB)
    KEYCODE_SET_WIN32  = KeycodeSet(C.VIR_KEYCODE_SET_WIN32)
    KEYCODE_SET_RFB    = KeycodeSet(C.VIR_KEYCODE_SET_RFB)
)
const (
    DOMAIN_BLOCK_JOB_COMPLETED = ConnectDomainEventBlockJobStatus(C.VIR_DOMAIN_BLOCK_JOB_COMPLETED)
    DOMAIN_BLOCK_JOB_FAILED    = ConnectDomainEventBlockJobStatus(C.VIR_DOMAIN_BLOCK_JOB_FAILED)
    DOMAIN_BLOCK_JOB_CANCELED  = ConnectDomainEventBlockJobStatus(C.VIR_DOMAIN_BLOCK_JOB_CANCELED)
    DOMAIN_BLOCK_JOB_READY     = ConnectDomainEventBlockJobStatus(C.VIR_DOMAIN_BLOCK_JOB_READY)
)
const (
    // OldSrcPath is set
    DOMAIN_EVENT_DISK_CHANGE_MISSING_ON_START = ConnectDomainEventDiskChangeReason(C.VIR_DOMAIN_EVENT_DISK_CHANGE_MISSING_ON_START)
    DOMAIN_EVENT_DISK_DROP_MISSING_ON_START   = ConnectDomainEventDiskChangeReason(C.VIR_DOMAIN_EVENT_DISK_DROP_MISSING_ON_START)
)
const (
    DOMAIN_EVENT_TRAY_CHANGE_OPEN  = ConnectDomainEventTrayChangeReason(C.VIR_DOMAIN_EVENT_TRAY_CHANGE_OPEN)
    DOMAIN_EVENT_TRAY_CHANGE_CLOSE = ConnectDomainEventTrayChangeReason(C.VIR_DOMAIN_EVENT_TRAY_CHANGE_CLOSE)
)
const (
    DOMAIN_QEMU_MONITOR_COMMAND_DEFAULT = DomainQemuMonitorCommandFlags(C.VIR_DOMAIN_QEMU_MONITOR_COMMAND_DEFAULT)
    DOMAIN_QEMU_MONITOR_COMMAND_HMP     = DomainQemuMonitorCommandFlags(C.VIR_DOMAIN_QEMU_MONITOR_COMMAND_HMP)
)
const (
    DOMAIN_PROCESS_SIGNAL_NOP  = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_NOP)
    DOMAIN_PROCESS_SIGNAL_HUP  = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_HUP)
    DOMAIN_PROCESS_SIGNAL_INT  = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_INT)
    DOMAIN_PROCESS_SIGNAL_QUIT = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_QUIT)
    DOMAIN_PROCESS_SIGNAL_ILL  = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_ILL)
    DOMAIN_PROCESS_SIGNAL_TRAP = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_TRAP)
    DOMAIN_PROCESS_SIGNAL_ABRT = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_ABRT)
    DOMAIN_PROCESS_SIGNAL_BUS  = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_BUS)
    DOMAIN_PROCESS_SIGNAL_FPE  = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_FPE)
    DOMAIN_PROCESS_SIGNAL_KILL = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_KILL)

    DOMAIN_PROCESS_SIGNAL_USR1   = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_USR1)
    DOMAIN_PROCESS_SIGNAL_SEGV   = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_SEGV)
    DOMAIN_PROCESS_SIGNAL_USR2   = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_USR2)
    DOMAIN_PROCESS_SIGNAL_PIPE   = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_PIPE)
    DOMAIN_PROCESS_SIGNAL_ALRM   = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_ALRM)
    DOMAIN_PROCESS_SIGNAL_TERM   = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_TERM)
    DOMAIN_PROCESS_SIGNAL_STKFLT = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_STKFLT)
    DOMAIN_PROCESS_SIGNAL_CHLD   = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_CHLD)
    DOMAIN_PROCESS_SIGNAL_CONT   = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_CONT)
    DOMAIN_PROCESS_SIGNAL_STOP   = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_STOP)

    DOMAIN_PROCESS_SIGNAL_TSTP   = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_TSTP)
    DOMAIN_PROCESS_SIGNAL_TTIN   = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_TTIN)
    DOMAIN_PROCESS_SIGNAL_TTOU   = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_TTOU)
    DOMAIN_PROCESS_SIGNAL_URG    = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_URG)
    DOMAIN_PROCESS_SIGNAL_XCPU   = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_XCPU)
    DOMAIN_PROCESS_SIGNAL_XFSZ   = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_XFSZ)
    DOMAIN_PROCESS_SIGNAL_VTALRM = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_VTALRM)
    DOMAIN_PROCESS_SIGNAL_PROF   = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_PROF)
    DOMAIN_PROCESS_SIGNAL_WINCH  = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_WINCH)
    DOMAIN_PROCESS_SIGNAL_POLL   = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_POLL)

    DOMAIN_PROCESS_SIGNAL_PWR = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_PWR)
    DOMAIN_PROCESS_SIGNAL_SYS = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_SYS)
    DOMAIN_PROCESS_SIGNAL_RT0 = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_RT0)
    DOMAIN_PROCESS_SIGNAL_RT1 = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_RT1)
    DOMAIN_PROCESS_SIGNAL_RT2 = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_RT2)
    DOMAIN_PROCESS_SIGNAL_RT3 = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_RT3)
    DOMAIN_PROCESS_SIGNAL_RT4 = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_RT4)
    DOMAIN_PROCESS_SIGNAL_RT5 = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_RT5)
    DOMAIN_PROCESS_SIGNAL_RT6 = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_RT6)
    DOMAIN_PROCESS_SIGNAL_RT7 = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_RT7)

    DOMAIN_PROCESS_SIGNAL_RT8  = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_RT8)
    DOMAIN_PROCESS_SIGNAL_RT9  = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_RT9)
    DOMAIN_PROCESS_SIGNAL_RT10 = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_RT10)
    DOMAIN_PROCESS_SIGNAL_RT11 = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_RT11)
    DOMAIN_PROCESS_SIGNAL_RT12 = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_RT12)
    DOMAIN_PROCESS_SIGNAL_RT13 = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_RT13)
    DOMAIN_PROCESS_SIGNAL_RT14 = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_RT14)
    DOMAIN_PROCESS_SIGNAL_RT15 = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_RT15)
    DOMAIN_PROCESS_SIGNAL_RT16 = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_RT16)
    DOMAIN_PROCESS_SIGNAL_RT17 = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_RT17)
    DOMAIN_PROCESS_SIGNAL_RT18 = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_RT18)

    DOMAIN_PROCESS_SIGNAL_RT19 = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_RT19)
    DOMAIN_PROCESS_SIGNAL_RT20 = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_RT20)
    DOMAIN_PROCESS_SIGNAL_RT21 = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_RT21)
    DOMAIN_PROCESS_SIGNAL_RT22 = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_RT22)
    DOMAIN_PROCESS_SIGNAL_RT23 = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_RT23)
    DOMAIN_PROCESS_SIGNAL_RT24 = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_RT24)
    DOMAIN_PROCESS_SIGNAL_RT25 = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_RT25)
    DOMAIN_PROCESS_SIGNAL_RT26 = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_RT26)
    DOMAIN_PROCESS_SIGNAL_RT27 = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_RT27)

    DOMAIN_PROCESS_SIGNAL_RT28 = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_RT28)
    DOMAIN_PROCESS_SIGNAL_RT29 = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_RT29)
    DOMAIN_PROCESS_SIGNAL_RT30 = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_RT30)
    DOMAIN_PROCESS_SIGNAL_RT31 = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_RT31)
    DOMAIN_PROCESS_SIGNAL_RT32 = DomainProcessSignal(C.VIR_DOMAIN_PROCESS_SIGNAL_RT32)
)
const (
    DOMAIN_CONTROL_OK       = DomainControlState(C.VIR_DOMAIN_CONTROL_OK)
    DOMAIN_CONTROL_JOB      = DomainControlState(C.VIR_DOMAIN_CONTROL_JOB)
    DOMAIN_CONTROL_OCCUPIED = DomainControlState(C.VIR_DOMAIN_CONTROL_OCCUPIED)
    DOMAIN_CONTROL_ERROR    = DomainControlState(C.VIR_DOMAIN_CONTROL_ERROR)
)
const (
    DOMAIN_CONTROL_ERROR_REASON_NONE     = DomainControlErrorReason(C.VIR_DOMAIN_CONTROL_ERROR_REASON_NONE)
    DOMAIN_CONTROL_ERROR_REASON_UNKNOWN  = DomainControlErrorReason(C.VIR_DOMAIN_CONTROL_ERROR_REASON_UNKNOWN)
    DOMAIN_CONTROL_ERROR_REASON_MONITOR  = DomainControlErrorReason(C.VIR_DOMAIN_CONTROL_ERROR_REASON_MONITOR)
    DOMAIN_CONTROL_ERROR_REASON_INTERNAL = DomainControlErrorReason(C.VIR_DOMAIN_CONTROL_ERROR_REASON_INTERNAL)
)
const (
    DOMAIN_CRASHED_UNKNOWN  = DomainCrashedReason(C.VIR_DOMAIN_CRASHED_UNKNOWN)
    DOMAIN_CRASHED_PANICKED = DomainCrashedReason(C.VIR_DOMAIN_CRASHED_PANICKED)
)
const (
    DOMAIN_EVENT_PMSUSPENDED_MEMORY = DomainEventPMSuspendedDetailType(C.VIR_DOMAIN_EVENT_PMSUSPENDED_MEMORY)
    DOMAIN_EVENT_PMSUSPENDED_DISK   = DomainEventPMSuspendedDetailType(C.VIR_DOMAIN_EVENT_PMSUSPENDED_DISK)
)
const (
    DOMAIN_SHUTDOWN_UNKNOWN = DomainShutdownReason(C.VIR_DOMAIN_SHUTDOWN_UNKNOWN)
    DOMAIN_SHUTDOWN_USER    = DomainShutdownReason(C.VIR_DOMAIN_SHUTDOWN_USER)
)
const (
    DOMAIN_SHUTOFF_UNKNOWN       = DomainShutoffReason(C.VIR_DOMAIN_SHUTOFF_UNKNOWN)
    DOMAIN_SHUTOFF_SHUTDOWN      = DomainShutoffReason(C.VIR_DOMAIN_SHUTOFF_SHUTDOWN)
    DOMAIN_SHUTOFF_DESTROYED     = DomainShutoffReason(C.VIR_DOMAIN_SHUTOFF_DESTROYED)
    DOMAIN_SHUTOFF_CRASHED       = DomainShutoffReason(C.VIR_DOMAIN_SHUTOFF_CRASHED)
    DOMAIN_SHUTOFF_MIGRATED      = DomainShutoffReason(C.VIR_DOMAIN_SHUTOFF_MIGRATED)
    DOMAIN_SHUTOFF_SAVED         = DomainShutoffReason(C.VIR_DOMAIN_SHUTOFF_SAVED)
    DOMAIN_SHUTOFF_FAILED        = DomainShutoffReason(C.VIR_DOMAIN_SHUTOFF_FAILED)
    DOMAIN_SHUTOFF_FROM_SNAPSHOT = DomainShutoffReason(C.VIR_DOMAIN_SHUTOFF_FROM_SNAPSHOT)
)
const (
    DOMAIN_BLOCK_COMMIT_SHALLOW         = DomainBlockCommitFlags(C.VIR_DOMAIN_BLOCK_COMMIT_SHALLOW)
    DOMAIN_BLOCK_COMMIT_DELETE          = DomainBlockCommitFlags(C.VIR_DOMAIN_BLOCK_COMMIT_DELETE)
    DOMAIN_BLOCK_COMMIT_ACTIVE          = DomainBlockCommitFlags(C.VIR_DOMAIN_BLOCK_COMMIT_ACTIVE)
    DOMAIN_BLOCK_COMMIT_RELATIVE        = DomainBlockCommitFlags(C.VIR_DOMAIN_BLOCK_COMMIT_RELATIVE)
    DOMAIN_BLOCK_COMMIT_BANDWIDTH_BYTES = DomainBlockCommitFlags(C.VIR_DOMAIN_BLOCK_COMMIT_BANDWIDTH_BYTES)
)
const (
    DOMAIN_BLOCK_COPY_SHALLOW   = DomainBlockCopyFlags(C.VIR_DOMAIN_BLOCK_COPY_SHALLOW)
    DOMAIN_BLOCK_COPY_REUSE_EXT = DomainBlockCopyFlags(C.VIR_DOMAIN_BLOCK_COPY_REUSE_EXT)
)
const (
    DOMAIN_BLOCK_REBASE_SHALLOW         = DomainBlockRebaseFlags(C.VIR_DOMAIN_BLOCK_REBASE_SHALLOW)
    DOMAIN_BLOCK_REBASE_REUSE_EXT       = DomainBlockRebaseFlags(C.VIR_DOMAIN_BLOCK_REBASE_REUSE_EXT)
    DOMAIN_BLOCK_REBASE_COPY_RAW        = DomainBlockRebaseFlags(C.VIR_DOMAIN_BLOCK_REBASE_COPY_RAW)
    DOMAIN_BLOCK_REBASE_COPY            = DomainBlockRebaseFlags(C.VIR_DOMAIN_BLOCK_REBASE_COPY)
    DOMAIN_BLOCK_REBASE_RELATIVE        = DomainBlockRebaseFlags(C.VIR_DOMAIN_BLOCK_REBASE_RELATIVE)
    DOMAIN_BLOCK_REBASE_COPY_DEV        = DomainBlockRebaseFlags(C.VIR_DOMAIN_BLOCK_REBASE_COPY_DEV)
    DOMAIN_BLOCK_REBASE_BANDWIDTH_BYTES = DomainBlockRebaseFlags(C.VIR_DOMAIN_BLOCK_REBASE_BANDWIDTH_BYTES)
)
const (
    DOMAIN_BLOCK_JOB_ABORT_ASYNC = DomainBlockJobAbortFlags(C.VIR_DOMAIN_BLOCK_JOB_ABORT_ASYNC)
    DOMAIN_BLOCK_JOB_ABORT_PIVOT = DomainBlockJobAbortFlags(C.VIR_DOMAIN_BLOCK_JOB_ABORT_PIVOT)
)
const (
    DOMAIN_CONSOLE_FORCE = DomainConsoleFlags(C.VIR_DOMAIN_CONSOLE_FORCE)
    DOMAIN_CONSOLE_SAFE  = DomainConsoleFlags(C.VIR_DOMAIN_CONSOLE_SAFE)
)
const (
    DOMAIN_CORE_DUMP_FORMAT_RAW          = DomainCoreDumpFormat(C.VIR_DOMAIN_CORE_DUMP_FORMAT_RAW)
    DOMAIN_CORE_DUMP_FORMAT_KDUMP_ZLIB   = DomainCoreDumpFormat(C.VIR_DOMAIN_CORE_DUMP_FORMAT_KDUMP_ZLIB)
    DOMAIN_CORE_DUMP_FORMAT_KDUMP_LZO    = DomainCoreDumpFormat(C.VIR_DOMAIN_CORE_DUMP_FORMAT_KDUMP_LZO)
    DOMAIN_CORE_DUMP_FORMAT_KDUMP_SNAPPY = DomainCoreDumpFormat(C.VIR_DOMAIN_CORE_DUMP_FORMAT_KDUMP_SNAPPY)
)
const (
    DOMAIN_JOB_NONE      = DomainJobType(C.VIR_DOMAIN_JOB_NONE)
    DOMAIN_JOB_BOUNDED   = DomainJobType(C.VIR_DOMAIN_JOB_BOUNDED)
    DOMAIN_JOB_UNBOUNDED = DomainJobType(C.VIR_DOMAIN_JOB_UNBOUNDED)
    DOMAIN_JOB_COMPLETED = DomainJobType(C.VIR_DOMAIN_JOB_COMPLETED)
    DOMAIN_JOB_FAILED    = DomainJobType(C.VIR_DOMAIN_JOB_FAILED)
    DOMAIN_JOB_CANCELLED = DomainJobType(C.VIR_DOMAIN_JOB_CANCELLED)
)
const (
    DOMAIN_NUMATUNE_MEM_STRICT     = DomainNumatuneMemMode(C.VIR_DOMAIN_NUMATUNE_MEM_STRICT)
    DOMAIN_NUMATUNE_MEM_PREFERRED  = DomainNumatuneMemMode(C.VIR_DOMAIN_NUMATUNE_MEM_PREFERRED)
    DOMAIN_NUMATUNE_MEM_INTERLEAVE = DomainNumatuneMemMode(C.VIR_DOMAIN_NUMATUNE_MEM_INTERLEAVE)
)
const (
    DOMAIN_REBOOT_DEFAULT        = DomainRebootFlagValues(C.VIR_DOMAIN_REBOOT_DEFAULT)
    DOMAIN_REBOOT_ACPI_POWER_BTN = DomainRebootFlagValues(C.VIR_DOMAIN_REBOOT_ACPI_POWER_BTN)
    DOMAIN_REBOOT_GUEST_AGENT    = DomainRebootFlagValues(C.VIR_DOMAIN_REBOOT_GUEST_AGENT)
    DOMAIN_REBOOT_INITCTL        = DomainRebootFlagValues(C.VIR_DOMAIN_REBOOT_INITCTL)
    DOMAIN_REBOOT_SIGNAL         = DomainRebootFlagValues(C.VIR_DOMAIN_REBOOT_SIGNAL)
    DOMAIN_REBOOT_PARAVIRT       = DomainRebootFlagValues(C.VIR_DOMAIN_REBOOT_PARAVIRT)
)
const (
    DOMAIN_SAVE_BYPASS_CACHE = DomainSaveRestoreFlags(C.VIR_DOMAIN_SAVE_BYPASS_CACHE)
    DOMAIN_SAVE_RUNNING      = DomainSaveRestoreFlags(C.VIR_DOMAIN_SAVE_RUNNING)
    DOMAIN_SAVE_PAUSED       = DomainSaveRestoreFlags(C.VIR_DOMAIN_SAVE_PAUSED)
)
const (
    DOMAIN_DISK_ERROR_NONE     = DomainDiskErrorCode(C.VIR_DOMAIN_DISK_ERROR_NONE)
    DOMAIN_DISK_ERROR_UNSPEC   = DomainDiskErrorCode(C.VIR_DOMAIN_DISK_ERROR_UNSPEC)
    DOMAIN_DISK_ERROR_NO_SPACE = DomainDiskErrorCode(C.VIR_DOMAIN_DISK_ERROR_NO_SPACE)
)
const (
    DOMAIN_STATS_STATE     = DomainStatsTypes(C.VIR_DOMAIN_STATS_STATE)
    DOMAIN_STATS_CPU_TOTAL = DomainStatsTypes(C.VIR_DOMAIN_STATS_CPU_TOTAL)
    DOMAIN_STATS_BALLOON   = DomainStatsTypes(C.VIR_DOMAIN_STATS_BALLOON)
    DOMAIN_STATS_VCPU      = DomainStatsTypes(C.VIR_DOMAIN_STATS_VCPU)
    DOMAIN_STATS_INTERFACE = DomainStatsTypes(C.VIR_DOMAIN_STATS_INTERFACE)
    DOMAIN_STATS_BLOCK     = DomainStatsTypes(C.VIR_DOMAIN_STATS_BLOCK)
    DOMAIN_STATS_PERF      = DomainStatsTypes(C.VIR_DOMAIN_STATS_PERF)
)
const (
    DUMP_CRASH        = DomainCoreDumpFlags(C.VIR_DUMP_CRASH)
    DUMP_LIVE         = DomainCoreDumpFlags(C.VIR_DUMP_LIVE)
    DUMP_BYPASS_CACHE = DomainCoreDumpFlags(C.VIR_DUMP_BYPASS_CACHE)
    DUMP_RESET        = DomainCoreDumpFlags(C.VIR_DUMP_RESET)
    DUMP_MEMORY_ONLY  = DomainCoreDumpFlags(C.VIR_DUMP_MEMORY_ONLY)
)
const (
    MEMORY_VIRTUAL  = DomainMemoryFlags(C.VIR_MEMORY_VIRTUAL)
    MEMORY_PHYSICAL = DomainMemoryFlags(C.VIR_MEMORY_PHYSICAL)
)
const (
    MIGRATE_LIVE              = DomainMigrateFlags(C.VIR_MIGRATE_LIVE)
    MIGRATE_PEER2PEER         = DomainMigrateFlags(C.VIR_MIGRATE_PEER2PEER)
    MIGRATE_TUNNELLED         = DomainMigrateFlags(C.VIR_MIGRATE_TUNNELLED)
    MIGRATE_PERSIST_DEST      = DomainMigrateFlags(C.VIR_MIGRATE_PERSIST_DEST)
    MIGRATE_UNDEFINE_SOURCE   = DomainMigrateFlags(C.VIR_MIGRATE_UNDEFINE_SOURCE)
    MIGRATE_PAUSED            = DomainMigrateFlags(C.VIR_MIGRATE_PAUSED)
    MIGRATE_NON_SHARED_DISK   = DomainMigrateFlags(C.VIR_MIGRATE_NON_SHARED_DISK)
    MIGRATE_NON_SHARED_INC    = DomainMigrateFlags(C.VIR_MIGRATE_NON_SHARED_INC)
    MIGRATE_CHANGE_PROTECTION = DomainMigrateFlags(C.VIR_MIGRATE_CHANGE_PROTECTION)
    MIGRATE_UNSAFE            = DomainMigrateFlags(C.VIR_MIGRATE_UNSAFE)
    MIGRATE_OFFLINE           = DomainMigrateFlags(C.VIR_MIGRATE_OFFLINE)
    MIGRATE_COMPRESSED        = DomainMigrateFlags(C.VIR_MIGRATE_COMPRESSED)
    MIGRATE_ABORT_ON_ERROR    = DomainMigrateFlags(C.VIR_MIGRATE_ABORT_ON_ERROR)
    MIGRATE_AUTO_CONVERGE     = DomainMigrateFlags(C.VIR_MIGRATE_AUTO_CONVERGE)
    MIGRATE_RDMA_PIN_ALL      = DomainMigrateFlags(C.VIR_MIGRATE_RDMA_PIN_ALL)
    MIGRATE_POSTCOPY          = DomainMigrateFlags(C.VIR_MIGRATE_POSTCOPY)
)
const (
    VCPU_OFFLINE = VcpuState(C.VIR_VCPU_OFFLINE)
    VCPU_RUNNING = VcpuState(C.VIR_VCPU_RUNNING)
    VCPU_BLOCKED = VcpuState(C.VIR_VCPU_BLOCKED)
)
const (
    DOMAIN_SNAPSHOT_CREATE_REDEFINE    = DomainSnapshotCreateFlags(C.VIR_DOMAIN_SNAPSHOT_CREATE_REDEFINE)
    DOMAIN_SNAPSHOT_CREATE_CURRENT     = DomainSnapshotCreateFlags(C.VIR_DOMAIN_SNAPSHOT_CREATE_CURRENT)
    DOMAIN_SNAPSHOT_CREATE_NO_METADATA = DomainSnapshotCreateFlags(C.VIR_DOMAIN_SNAPSHOT_CREATE_NO_METADATA)
    DOMAIN_SNAPSHOT_CREATE_HALT        = DomainSnapshotCreateFlags(C.VIR_DOMAIN_SNAPSHOT_CREATE_HALT)
    DOMAIN_SNAPSHOT_CREATE_DISK_ONLY   = DomainSnapshotCreateFlags(C.VIR_DOMAIN_SNAPSHOT_CREATE_DISK_ONLY)
    DOMAIN_SNAPSHOT_CREATE_REUSE_EXT   = DomainSnapshotCreateFlags(C.VIR_DOMAIN_SNAPSHOT_CREATE_REUSE_EXT)
    DOMAIN_SNAPSHOT_CREATE_QUIESCE     = DomainSnapshotCreateFlags(C.VIR_DOMAIN_SNAPSHOT_CREATE_QUIESCE)
    DOMAIN_SNAPSHOT_CREATE_ATOMIC      = DomainSnapshotCreateFlags(C.VIR_DOMAIN_SNAPSHOT_CREATE_ATOMIC)
    DOMAIN_SNAPSHOT_CREATE_LIVE        = DomainSnapshotCreateFlags(C.VIR_DOMAIN_SNAPSHOT_CREATE_LIVE)
)
const (
    DOMAIN_SNAPSHOT_LIST_ROOTS       = DomainSnapshotListFlags(C.VIR_DOMAIN_SNAPSHOT_LIST_ROOTS)
    DOMAIN_SNAPSHOT_LIST_DESCENDANTS = DomainSnapshotListFlags(C.VIR_DOMAIN_SNAPSHOT_LIST_DESCENDANTS)
    DOMAIN_SNAPSHOT_LIST_LEAVES      = DomainSnapshotListFlags(C.VIR_DOMAIN_SNAPSHOT_LIST_LEAVES)
    DOMAIN_SNAPSHOT_LIST_NO_LEAVES   = DomainSnapshotListFlags(C.VIR_DOMAIN_SNAPSHOT_LIST_NO_LEAVES)
    DOMAIN_SNAPSHOT_LIST_METADATA    = DomainSnapshotListFlags(C.VIR_DOMAIN_SNAPSHOT_LIST_METADATA)
    DOMAIN_SNAPSHOT_LIST_NO_METADATA = DomainSnapshotListFlags(C.VIR_DOMAIN_SNAPSHOT_LIST_NO_METADATA)
    DOMAIN_SNAPSHOT_LIST_INACTIVE    = DomainSnapshotListFlags(C.VIR_DOMAIN_SNAPSHOT_LIST_INACTIVE)
    DOMAIN_SNAPSHOT_LIST_ACTIVE      = DomainSnapshotListFlags(C.VIR_DOMAIN_SNAPSHOT_LIST_ACTIVE)
    DOMAIN_SNAPSHOT_LIST_DISK_ONLY   = DomainSnapshotListFlags(C.VIR_DOMAIN_SNAPSHOT_LIST_DISK_ONLY)
    DOMAIN_SNAPSHOT_LIST_INTERNAL    = DomainSnapshotListFlags(C.VIR_DOMAIN_SNAPSHOT_LIST_INTERNAL)
    DOMAIN_SNAPSHOT_LIST_EXTERNAL    = DomainSnapshotListFlags(C.VIR_DOMAIN_SNAPSHOT_LIST_EXTERNAL)
)
const (
    DOMAIN_SNAPSHOT_REVERT_RUNNING = DomainSnapshotRevertFlags(C.VIR_DOMAIN_SNAPSHOT_REVERT_RUNNING)
    DOMAIN_SNAPSHOT_REVERT_PAUSED  = DomainSnapshotRevertFlags(C.VIR_DOMAIN_SNAPSHOT_REVERT_PAUSED)
    DOMAIN_SNAPSHOT_REVERT_FORCE   = DomainSnapshotRevertFlags(C.VIR_DOMAIN_SNAPSHOT_REVERT_FORCE)
)
const (
    DOMAIN_SNAPSHOT_DELETE_CHILDREN      = DomainSnapshotDeleteFlags(C.VIR_DOMAIN_SNAPSHOT_DELETE_CHILDREN)
    DOMAIN_SNAPSHOT_DELETE_METADATA_ONLY = DomainSnapshotDeleteFlags(C.VIR_DOMAIN_SNAPSHOT_DELETE_METADATA_ONLY)
    DOMAIN_SNAPSHOT_DELETE_CHILDREN_ONLY = DomainSnapshotDeleteFlags(C.VIR_DOMAIN_SNAPSHOT_DELETE_CHILDREN_ONLY)
)
const (
    ERR_NONE    = ErrorLevel(C.VIR_ERR_NONE)
    ERR_WARNING = ErrorLevel(C.VIR_ERR_WARNING)
    ERR_ERROR   = ErrorLevel(C.VIR_ERR_ERROR)
)
const (
    ERR_OK = ErrorNumber(C.VIR_ERR_OK)

    // internal error
    ERR_INTERNAL_ERROR = ErrorNumber(C.VIR_ERR_INTERNAL_ERROR)

    // memory allocation failure
    ERR_NO_MEMORY = ErrorNumber(C.VIR_ERR_NO_MEMORY)

    // no support for this function
    ERR_NO_SUPPORT = ErrorNumber(C.VIR_ERR_NO_SUPPORT)

    // could not resolve hostname
    ERR_UNKNOWN_HOST = ErrorNumber(C.VIR_ERR_UNKNOWN_HOST)

    // can't connect to hypervisor
    ERR_NO_CONNECT = ErrorNumber(C.VIR_ERR_NO_CONNECT)

    // invalid connection object
    ERR_INVALID_CONN = ErrorNumber(C.VIR_ERR_INVALID_CONN)

    // invalid domain object
    ERR_INVALID_DOMAIN = ErrorNumber(C.VIR_ERR_INVALID_DOMAIN)

    // invalid function argument
    ERR_INVALID_ARG = ErrorNumber(C.VIR_ERR_INVALID_ARG)

    // a command to hypervisor failed
    ERR_OPERATION_FAILED = ErrorNumber(C.VIR_ERR_OPERATION_FAILED)

    // a HTTP GET command to failed
    ERR_GET_FAILED = ErrorNumber(C.VIR_ERR_GET_FAILED)

    // a HTTP POST command to failed
    ERR_POST_FAILED = ErrorNumber(C.VIR_ERR_POST_FAILED)

    // unexpected HTTP error code
    ERR_HTTP_ERROR = ErrorNumber(C.VIR_ERR_HTTP_ERROR)

    // failure to serialize an S-Expr
    ERR_SEXPR_SERIAL = ErrorNumber(C.VIR_ERR_SEXPR_SERIAL)

    // could not open Xen hypervisor control
    ERR_NO_XEN = ErrorNumber(C.VIR_ERR_NO_XEN)

    // failure doing an hypervisor call
    ERR_XEN_CALL = ErrorNumber(C.VIR_ERR_XEN_CALL)

    // unknown OS type
    ERR_OS_TYPE = ErrorNumber(C.VIR_ERR_OS_TYPE)

    // missing kernel information
    ERR_NO_KERNEL = ErrorNumber(C.VIR_ERR_NO_KERNEL)

    // missing root device information
    ERR_NO_ROOT = ErrorNumber(C.VIR_ERR_NO_ROOT)

    // missing source device information
    ERR_NO_SOURCE = ErrorNumber(C.VIR_ERR_NO_SOURCE)

    // missing target device information
    ERR_NO_TARGET = ErrorNumber(C.VIR_ERR_NO_TARGET)

    // missing domain name information
    ERR_NO_NAME = ErrorNumber(C.VIR_ERR_NO_NAME)

    // missing domain OS information
    ERR_NO_OS = ErrorNumber(C.VIR_ERR_NO_OS)

    // missing domain devices information
    ERR_NO_DEVICE = ErrorNumber(C.VIR_ERR_NO_DEVICE)

    // could not open Xen Store control
    ERR_NO_XENSTORE = ErrorNumber(C.VIR_ERR_NO_XENSTORE)

    // too many drivers registered
    ERR_DRIVER_FULL = ErrorNumber(C.VIR_ERR_DRIVER_FULL)

    // not supported by the drivers (DEPRECATED)
    ERR_CALL_FAILED = ErrorNumber(C.VIR_ERR_CALL_FAILED)

    // an XML description is not well formed or broken
    ERR_XML_ERROR = ErrorNumber(C.VIR_ERR_XML_ERROR)

    // the domain already exist
    ERR_DOM_EXIST = ErrorNumber(C.VIR_ERR_DOM_EXIST)

    // operation forbidden on read-only connections
    ERR_OPERATION_DENIED = ErrorNumber(C.VIR_ERR_OPERATION_DENIED)

    // failed to open a conf file
    ERR_OPEN_FAILED = ErrorNumber(C.VIR_ERR_OPEN_FAILED)

    // failed to read a conf file
    ERR_READ_FAILED = ErrorNumber(C.VIR_ERR_READ_FAILED)

    // failed to parse a conf file
    ERR_PARSE_FAILED = ErrorNumber(C.VIR_ERR_PARSE_FAILED)

    // failed to parse the syntax of a conf file
    ERR_CONF_SYNTAX = ErrorNumber(C.VIR_ERR_CONF_SYNTAX)

    // failed to write a conf file
    ERR_WRITE_FAILED = ErrorNumber(C.VIR_ERR_WRITE_FAILED)

    // detail of an XML error
    ERR_XML_DETAIL = ErrorNumber(C.VIR_ERR_XML_DETAIL)

    // invalid network object
    ERR_INVALID_NETWORK = ErrorNumber(C.VIR_ERR_INVALID_NETWORK)

    // the network already exist
    ERR_NETWORK_EXIST = ErrorNumber(C.VIR_ERR_NETWORK_EXIST)

    // general system call failure
    ERR_SYSTEM_ERROR = ErrorNumber(C.VIR_ERR_SYSTEM_ERROR)

    // some sort of RPC error
    ERR_RPC = ErrorNumber(C.VIR_ERR_RPC)

    // error from a GNUTLS call
    ERR_GNUTLS_ERROR = ErrorNumber(C.VIR_ERR_GNUTLS_ERROR)

    // failed to start network
    WAR_NO_NETWORK = ErrorNumber(C.VIR_WAR_NO_NETWORK)

    // domain not found or unexpectedly disappeared
    ERR_NO_DOMAIN = ErrorNumber(C.VIR_ERR_NO_DOMAIN)

    // network not found
    ERR_NO_NETWORK = ErrorNumber(C.VIR_ERR_NO_NETWORK)

    // invalid MAC address
    ERR_INVALID_MAC = ErrorNumber(C.VIR_ERR_INVALID_MAC)

    // authentication failed
    ERR_AUTH_FAILED = ErrorNumber(C.VIR_ERR_AUTH_FAILED)

    // invalid storage pool object
    ERR_INVALID_STORAGE_POOL = ErrorNumber(C.VIR_ERR_INVALID_STORAGE_POOL)

    // invalid storage vol object
    ERR_INVALID_STORAGE_VOL = ErrorNumber(C.VIR_ERR_INVALID_STORAGE_VOL)

    // failed to start storage
    WAR_NO_STORAGE = ErrorNumber(C.VIR_WAR_NO_STORAGE)

    // storage pool not found
    ERR_NO_STORAGE_POOL = ErrorNumber(C.VIR_ERR_NO_STORAGE_POOL)

    // storage volume not found
    ERR_NO_STORAGE_VOL = ErrorNumber(C.VIR_ERR_NO_STORAGE_VOL)

    // failed to start node driver
    WAR_NO_NODE = ErrorNumber(C.VIR_WAR_NO_NODE)

    // invalid node device object
    ERR_INVALID_NODE_DEVICE = ErrorNumber(C.VIR_ERR_INVALID_NODE_DEVICE)

    // node device not found
    ERR_NO_NODE_DEVICE = ErrorNumber(C.VIR_ERR_NO_NODE_DEVICE)

    // security model not found
    ERR_NO_SECURITY_MODEL = ErrorNumber(C.VIR_ERR_NO_SECURITY_MODEL)

    // operation is not applicable at this time
    ERR_OPERATION_INVALID = ErrorNumber(C.VIR_ERR_OPERATION_INVALID)

    // failed to start interface driver
    WAR_NO_INTERFACE = ErrorNumber(C.VIR_WAR_NO_INTERFACE)

    // interface driver not running
    ERR_NO_INTERFACE = ErrorNumber(C.VIR_ERR_NO_INTERFACE)

    // invalid interface object
    ERR_INVALID_INTERFACE = ErrorNumber(C.VIR_ERR_INVALID_INTERFACE)

    // more than one matching interface found
    ERR_MULTIPLE_INTERFACES = ErrorNumber(C.VIR_ERR_MULTIPLE_INTERFACES)

    // failed to start nwfilter driver
    WAR_NO_NWFILTER = ErrorNumber(C.VIR_WAR_NO_NWFILTER)

    // invalid nwfilter object
    ERR_INVALID_NWFILTER = ErrorNumber(C.VIR_ERR_INVALID_NWFILTER)

    // nw filter pool not found
    ERR_NO_NWFILTER = ErrorNumber(C.VIR_ERR_NO_NWFILTER)

    // nw filter pool not found
    ERR_BUILD_FIREWALL = ErrorNumber(C.VIR_ERR_BUILD_FIREWALL)

    // failed to start secret storage
    WAR_NO_SECRET = ErrorNumber(C.VIR_WAR_NO_SECRET)

    // invalid secret
    ERR_INVALID_SECRET = ErrorNumber(C.VIR_ERR_INVALID_SECRET)

    // secret not found
    ERR_NO_SECRET = ErrorNumber(C.VIR_ERR_NO_SECRET)

    // unsupported configuration construct
    ERR_CONFIG_UNSUPPORTED = ErrorNumber(C.VIR_ERR_CONFIG_UNSUPPORTED)

    // timeout occurred during operation
    ERR_OPERATION_TIMEOUT = ErrorNumber(C.VIR_ERR_OPERATION_TIMEOUT)

    // a migration worked, but making the VM persist on the dest host failed
    ERR_MIGRATE_PERSIST_FAILED = ErrorNumber(C.VIR_ERR_MIGRATE_PERSIST_FAILED)

    // a synchronous hook script failed
    ERR_HOOK_SCRIPT_FAILED = ErrorNumber(C.VIR_ERR_HOOK_SCRIPT_FAILED)

    // invalid domain snapshot
    ERR_INVALID_DOMAIN_SNAPSHOT = ErrorNumber(C.VIR_ERR_INVALID_DOMAIN_SNAPSHOT)

    // domain snapshot not found
    ERR_NO_DOMAIN_SNAPSHOT = ErrorNumber(C.VIR_ERR_NO_DOMAIN_SNAPSHOT)

    // stream pointer not valid
    ERR_INVALID_STREAM = ErrorNumber(C.VIR_ERR_INVALID_STREAM)

    // valid API use but unsupported by the given driver
    ERR_ARGUMENT_UNSUPPORTED = ErrorNumber(C.VIR_ERR_ARGUMENT_UNSUPPORTED)

    // storage pool probe failed
    ERR_STORAGE_PROBE_FAILED = ErrorNumber(C.VIR_ERR_STORAGE_PROBE_FAILED)

    // storage pool already built
    ERR_STORAGE_POOL_BUILT = ErrorNumber(C.VIR_ERR_STORAGE_POOL_BUILT)

    // force was not requested for a risky domain snapshot revert
    ERR_SNAPSHOT_REVERT_RISKY = ErrorNumber(C.VIR_ERR_SNAPSHOT_REVERT_RISKY)

    // operation on a domain was canceled/aborted by user
    ERR_OPERATION_ABORTED = ErrorNumber(C.VIR_ERR_OPERATION_ABORTED)

    // authentication cancelled
    ERR_AUTH_CANCELLED = ErrorNumber(C.VIR_ERR_AUTH_CANCELLED)

    // The metadata is not present
    ERR_NO_DOMAIN_METADATA = ErrorNumber(C.VIR_ERR_NO_DOMAIN_METADATA)

    // Migration is not safe
    ERR_MIGRATE_UNSAFE = ErrorNumber(C.VIR_ERR_MIGRATE_UNSAFE)

    // integer overflow
    ERR_OVERFLOW = ErrorNumber(C.VIR_ERR_OVERFLOW)

    // action prevented by block copy job
    ERR_BLOCK_COPY_ACTIVE = ErrorNumber(C.VIR_ERR_BLOCK_COPY_ACTIVE)

    // The requested operation is not supported
    ERR_OPERATION_UNSUPPORTED = ErrorNumber(C.VIR_ERR_OPERATION_UNSUPPORTED)

    // error in ssh transport driver
    ERR_SSH = ErrorNumber(C.VIR_ERR_SSH)

    // guest agent is unresponsive, not running or not usable
    ERR_AGENT_UNRESPONSIVE = ErrorNumber(C.VIR_ERR_AGENT_UNRESPONSIVE)

    // resource is already in use
    ERR_RESOURCE_BUSY = ErrorNumber(C.VIR_ERR_RESOURCE_BUSY)

    // operation on the object/resource was denied
    ERR_ACCESS_DENIED = ErrorNumber(C.VIR_ERR_ACCESS_DENIED)

    // error from a dbus service
    ERR_DBUS_SERVICE = ErrorNumber(C.VIR_ERR_DBUS_SERVICE)

    // the storage vol already exists
    ERR_STORAGE_VOL_EXIST = ErrorNumber(C.VIR_ERR_STORAGE_VOL_EXIST)

    // given CPU is incompatible with host CPU
    ERR_CPU_INCOMPATIBLE = ErrorNumber(C.VIR_ERR_CPU_INCOMPATIBLE)

    // XML document doesn't validate against schema
    ERR_XML_INVALID_SCHEMA = ErrorNumber(C.VIR_ERR_XML_INVALID_SCHEMA)

    // Finish API succeeded but it is expected to return NULL */
    ERR_MIGRATE_FINISH_OK = ErrorNumber(C.VIR_ERR_MIGRATE_FINISH_OK)

    // authentication unavailable
    ERR_AUTH_UNAVAILABLE = ErrorNumber(C.VIR_ERR_AUTH_UNAVAILABLE)

    // Server was not found
    ERR_NO_SERVER = ErrorNumber(C.VIR_ERR_NO_SERVER)

    // Client was not found
    ERR_NO_CLIENT = ErrorNumber(C.VIR_ERR_NO_CLIENT)

    // guest agent replies with wrong id to guest sync command
    ERR_AGENT_UNSYNCED = ErrorNumber(C.VIR_ERR_AGENT_UNSYNCED)

    // error in libssh transport driver
    ERR_LIBSSH = ErrorNumber(C.VIR_ERR_LIBSSH)
)
const (
    FROM_NONE = ErrorDomain(C.VIR_FROM_NONE)

    // Error at Xen hypervisor layer
    FROM_XEN = ErrorDomain(C.VIR_FROM_XEN)

    // Error at connection with xend daemon
    FROM_XEND = ErrorDomain(C.VIR_FROM_XEND)

    // Error at connection with xen store
    FROM_XENSTORE = ErrorDomain(C.VIR_FROM_XENSTORE)

    // Error in the S-Expression code
    FROM_SEXPR = ErrorDomain(C.VIR_FROM_SEXPR)

    // Error in the XML code
    FROM_XML = ErrorDomain(C.VIR_FROM_XML)

    // Error when operating on a domain
    FROM_DOM = ErrorDomain(C.VIR_FROM_DOM)

    // Error in the XML-RPC code
    FROM_RPC = ErrorDomain(C.VIR_FROM_RPC)

    // Error in the proxy code; unused since 0.8.6
    FROM_PROXY = ErrorDomain(C.VIR_FROM_PROXY)

    // Error in the configuration file handling
    FROM_CONF = ErrorDomain(C.VIR_FROM_CONF)

    // Error at the QEMU daemon
    FROM_QEMU = ErrorDomain(C.VIR_FROM_QEMU)

    // Error when operating on a network
    FROM_NET = ErrorDomain(C.VIR_FROM_NET)

    // Error from test driver
    FROM_TEST = ErrorDomain(C.VIR_FROM_TEST)

    // Error from remote driver
    FROM_REMOTE = ErrorDomain(C.VIR_FROM_REMOTE)

    // Error from OpenVZ driver
    FROM_OPENVZ = ErrorDomain(C.VIR_FROM_OPENVZ)

    // Error at Xen XM layer
    FROM_XENXM = ErrorDomain(C.VIR_FROM_XENXM)

    // Error in the Linux Stats code
    FROM_STATS_LINUX = ErrorDomain(C.VIR_FROM_STATS_LINUX)

    // Error from Linux Container driver
    FROM_LXC = ErrorDomain(C.VIR_FROM_LXC)

    // Error from storage driver
    FROM_STORAGE = ErrorDomain(C.VIR_FROM_STORAGE)

    // Error from network config
    FROM_NETWORK = ErrorDomain(C.VIR_FROM_NETWORK)

    // Error from domain config
    FROM_DOMAIN = ErrorDomain(C.VIR_FROM_DOMAIN)

    // Error at the UML driver
    FROM_UML = ErrorDomain(C.VIR_FROM_UML)

    // Error from node device monitor
    FROM_NODEDEV = ErrorDomain(C.VIR_FROM_NODEDEV)

    // Error from xen inotify layer
    FROM_XEN_INOTIFY = ErrorDomain(C.VIR_FROM_XEN_INOTIFY)

    // Error from security framework
    FROM_SECURITY = ErrorDomain(C.VIR_FROM_SECURITY)

    // Error from VirtualBox driver
    FROM_VBOX = ErrorDomain(C.VIR_FROM_VBOX)

    // Error when operating on an interface
    FROM_INTERFACE = ErrorDomain(C.VIR_FROM_INTERFACE)

    // The OpenNebula driver no longer exists. Retained for ABI/API compat only
    FROM_ONE = ErrorDomain(C.VIR_FROM_ONE)

    // Error from ESX driver
    FROM_ESX = ErrorDomain(C.VIR_FROM_ESX)

    // Error from IBM power hypervisor
    FROM_PHYP = ErrorDomain(C.VIR_FROM_PHYP)

    // Error from secret storage
    FROM_SECRET = ErrorDomain(C.VIR_FROM_SECRET)

    // Error from CPU driver
    FROM_CPU = ErrorDomain(C.VIR_FROM_CPU)

    // Error from XenAPI
    FROM_XENAPI = ErrorDomain(C.VIR_FROM_XENAPI)

    // Error from network filter driver
    FROM_NWFILTER = ErrorDomain(C.VIR_FROM_NWFILTER)

    // Error from Synchronous hooks
    FROM_HOOK = ErrorDomain(C.VIR_FROM_HOOK)

    // Error from domain snapshot
    FROM_DOMAIN_SNAPSHOT = ErrorDomain(C.VIR_FROM_DOMAIN_SNAPSHOT)

    // Error from auditing subsystem
    FROM_AUDIT = ErrorDomain(C.VIR_FROM_AUDIT)

    // Error from sysinfo/SMBIOS
    FROM_SYSINFO = ErrorDomain(C.VIR_FROM_SYSINFO)

    // Error from I/O streams
    FROM_STREAMS = ErrorDomain(C.VIR_FROM_STREAMS)

    // Error from VMware driver
    FROM_VMWARE = ErrorDomain(C.VIR_FROM_VMWARE)

    // Error from event loop impl
    FROM_EVENT = ErrorDomain(C.VIR_FROM_EVENT)

    // Error from libxenlight driver
    FROM_LIBXL = ErrorDomain(C.VIR_FROM_LIBXL)

    // Error from lock manager
    FROM_LOCKING = ErrorDomain(C.VIR_FROM_LOCKING)

    // Error from Hyper-V driver
    FROM_HYPERV = ErrorDomain(C.VIR_FROM_HYPERV)

    // Error from capabilities
    FROM_CAPABILITIES = ErrorDomain(C.VIR_FROM_CAPABILITIES)

    // Error from URI handling
    FROM_URI = ErrorDomain(C.VIR_FROM_URI)

    // Error from auth handling
    FROM_AUTH = ErrorDomain(C.VIR_FROM_AUTH)

    // Error from DBus
    FROM_DBUS = ErrorDomain(C.VIR_FROM_DBUS)

    // Error from Parallels
    FROM_PARALLELS = ErrorDomain(C.VIR_FROM_PARALLELS)

    // Error from Device
    FROM_DEVICE = ErrorDomain(C.VIR_FROM_DEVICE)

    // Error from libssh2 connection transport
    FROM_SSH = ErrorDomain(C.VIR_FROM_SSH)

    // Error from lockspace
    FROM_LOCKSPACE = ErrorDomain(C.VIR_FROM_LOCKSPACE)

    // Error from initctl device communication
    FROM_INITCTL = ErrorDomain(C.VIR_FROM_INITCTL)

    // Error from identity code
    FROM_IDENTITY = ErrorDomain(C.VIR_FROM_IDENTITY)

    // Error from cgroups
    FROM_CGROUP = ErrorDomain(C.VIR_FROM_CGROUP)

    // Error from access control manager
    FROM_ACCESS = ErrorDomain(C.VIR_FROM_ACCESS)

    // Error from systemd code
    FROM_SYSTEMD = ErrorDomain(C.VIR_FROM_SYSTEMD)

    // Error from bhyve driver
    FROM_BHYVE = ErrorDomain(C.VIR_FROM_BHYVE)

    // Error from crypto code
    FROM_CRYPTO = ErrorDomain(C.VIR_FROM_CRYPTO)

    // Error from firewall
    FROM_FIREWALL = ErrorDomain(C.VIR_FROM_FIREWALL)

    // Erorr from polkit code
    FROM_POLKIT = ErrorDomain(C.VIR_FROM_POLKIT)

    // Error from thread utils
    FROM_THREAD = ErrorDomain(C.VIR_FROM_THREAD)

    // Error from admin backend
    FROM_ADMIN = ErrorDomain(C.VIR_FROM_ADMIN)

    // Error from log manager
    FROM_LOGGING = ErrorDomain(C.VIR_FROM_LOGGING)

    // Error from Xen xl config code
    FROM_XENXL = ErrorDomain(C.VIR_FROM_XENXL)

    // Error from perf
    FROM_PERF = ErrorDomain(C.VIR_FROM_PERF)

    // Error from libssh
    FROM_LIBSSH = ErrorDomain(C.VIR_FROM_LIBSSH)
)
const (
    EVENT_HANDLE_READABLE = EventHandleType(C.VIR_EVENT_HANDLE_READABLE)
    EVENT_HANDLE_WRITABLE = EventHandleType(C.VIR_EVENT_HANDLE_WRITABLE)
    EVENT_HANDLE_ERROR    = EventHandleType(C.VIR_EVENT_HANDLE_ERROR)
    EVENT_HANDLE_HANGUP   = EventHandleType(C.VIR_EVENT_HANDLE_HANGUP)
)
const (
    IP_ADDR_TYPE_IPV4 = IPAddrType(C.VIR_IP_ADDR_TYPE_IPV4)
    IP_ADDR_TYPE_IPV6 = IPAddrType(C.VIR_IP_ADDR_TYPE_IPV6)
)
const (
    NETWORK_UPDATE_COMMAND_NONE      = NetworkUpdateCommand(C.VIR_NETWORK_UPDATE_COMMAND_NONE)
    NETWORK_UPDATE_COMMAND_MODIFY    = NetworkUpdateCommand(C.VIR_NETWORK_UPDATE_COMMAND_MODIFY)
    NETWORK_UPDATE_COMMAND_DELETE    = NetworkUpdateCommand(C.VIR_NETWORK_UPDATE_COMMAND_DELETE)
    NETWORK_UPDATE_COMMAND_ADD_LAST  = NetworkUpdateCommand(C.VIR_NETWORK_UPDATE_COMMAND_ADD_LAST)
    NETWORK_UPDATE_COMMAND_ADD_FIRST = NetworkUpdateCommand(C.VIR_NETWORK_UPDATE_COMMAND_ADD_FIRST)
)
const (
    NETWORK_SECTION_NONE              = NetworkUpdateSection(C.VIR_NETWORK_SECTION_NONE)
    NETWORK_SECTION_BRIDGE            = NetworkUpdateSection(C.VIR_NETWORK_SECTION_BRIDGE)
    NETWORK_SECTION_DOMAIN            = NetworkUpdateSection(C.VIR_NETWORK_SECTION_DOMAIN)
    NETWORK_SECTION_IP                = NetworkUpdateSection(C.VIR_NETWORK_SECTION_IP)
    NETWORK_SECTION_IP_DHCP_HOST      = NetworkUpdateSection(C.VIR_NETWORK_SECTION_IP_DHCP_HOST)
    NETWORK_SECTION_IP_DHCP_RANGE     = NetworkUpdateSection(C.VIR_NETWORK_SECTION_IP_DHCP_RANGE)
    NETWORK_SECTION_FORWARD           = NetworkUpdateSection(C.VIR_NETWORK_SECTION_FORWARD)
    NETWORK_SECTION_FORWARD_INTERFACE = NetworkUpdateSection(C.VIR_NETWORK_SECTION_FORWARD_INTERFACE)
    NETWORK_SECTION_FORWARD_PF        = NetworkUpdateSection(C.VIR_NETWORK_SECTION_FORWARD_PF)
    NETWORK_SECTION_PORTGROUP         = NetworkUpdateSection(C.VIR_NETWORK_SECTION_PORTGROUP)
    NETWORK_SECTION_DNS_HOST          = NetworkUpdateSection(C.VIR_NETWORK_SECTION_DNS_HOST)
    NETWORK_SECTION_DNS_TXT           = NetworkUpdateSection(C.VIR_NETWORK_SECTION_DNS_TXT)
    NETWORK_SECTION_DNS_SRV           = NetworkUpdateSection(C.VIR_NETWORK_SECTION_DNS_SRV)
)
const (
    NETWORK_UPDATE_AFFECT_CURRENT = NetworkUpdateFlags(C.VIR_NETWORK_UPDATE_AFFECT_CURRENT)
    NETWORK_UPDATE_AFFECT_LIVE    = NetworkUpdateFlags(C.VIR_NETWORK_UPDATE_AFFECT_LIVE)
    NETWORK_UPDATE_AFFECT_CONFIG  = NetworkUpdateFlags(C.VIR_NETWORK_UPDATE_AFFECT_CONFIG)
)
const (
    NETWORK_EVENT_DEFINED   = NetworkEventLifecycleType(C.VIR_NETWORK_EVENT_DEFINED)
    NETWORK_EVENT_UNDEFINED = NetworkEventLifecycleType(C.VIR_NETWORK_EVENT_UNDEFINED)
    NETWORK_EVENT_STARTED   = NetworkEventLifecycleType(C.VIR_NETWORK_EVENT_STARTED)
    NETWORK_EVENT_STOPPED   = NetworkEventLifecycleType(C.VIR_NETWORK_EVENT_STOPPED)
)
const (
    NODE_DEVICE_EVENT_ID_LIFECYCLE = NodeDeviceEventID(C.VIR_NODE_DEVICE_EVENT_ID_LIFECYCLE)
    NODE_DEVICE_EVENT_ID_UPDATE    = NodeDeviceEventID(C.VIR_NODE_DEVICE_EVENT_ID_UPDATE)
)
const (
    NODE_DEVICE_EVENT_CREATED = NodeDeviceEventLifecycleType(C.VIR_NODE_DEVICE_EVENT_CREATED)
    NODE_DEVICE_EVENT_DELETED = NodeDeviceEventLifecycleType(C.VIR_NODE_DEVICE_EVENT_DELETED)
)
const (
    SECRET_USAGE_TYPE_NONE   = SecretUsageType(C.VIR_SECRET_USAGE_TYPE_NONE)
    SECRET_USAGE_TYPE_VOLUME = SecretUsageType(C.VIR_SECRET_USAGE_TYPE_VOLUME)
    SECRET_USAGE_TYPE_CEPH   = SecretUsageType(C.VIR_SECRET_USAGE_TYPE_CEPH)
    SECRET_USAGE_TYPE_ISCSI  = SecretUsageType(C.VIR_SECRET_USAGE_TYPE_ISCSI)
    SECRET_USAGE_TYPE_TLS    = SecretUsageType(C.VIR_SECRET_USAGE_TYPE_TLS)
)
const (
    SECRET_EVENT_DEFINED   = SecretEventLifecycleType(C.VIR_SECRET_EVENT_DEFINED)
    SECRET_EVENT_UNDEFINED = SecretEventLifecycleType(C.VIR_SECRET_EVENT_UNDEFINED)
)
const (
    SECRET_EVENT_ID_LIFECYCLE     = SecretEventID(C.VIR_SECRET_EVENT_ID_LIFECYCLE)
    SECRET_EVENT_ID_VALUE_CHANGED = SecretEventID(C.VIR_SECRET_EVENT_ID_VALUE_CHANGED)
)
const (
    STORAGE_POOL_INACTIVE     = StoragePoolState(C.VIR_STORAGE_POOL_INACTIVE)     // Not running
    STORAGE_POOL_BUILDING     = StoragePoolState(C.VIR_STORAGE_POOL_BUILDING)     // Initializing pool,not available
    STORAGE_POOL_RUNNING      = StoragePoolState(C.VIR_STORAGE_POOL_RUNNING)      // Running normally
    STORAGE_POOL_DEGRADED     = StoragePoolState(C.VIR_STORAGE_POOL_DEGRADED)     // Running degraded
    STORAGE_POOL_INACCESSIBLE = StoragePoolState(C.VIR_STORAGE_POOL_INACCESSIBLE) // Running,but not accessible
)
const (
    STORAGE_POOL_BUILD_NEW          = StoragePoolBuildFlags(C.VIR_STORAGE_POOL_BUILD_NEW)          // Regular build from scratch
    STORAGE_POOL_BUILD_REPAIR       = StoragePoolBuildFlags(C.VIR_STORAGE_POOL_BUILD_REPAIR)       // Repair / reinitialize
    STORAGE_POOL_BUILD_RESIZE       = StoragePoolBuildFlags(C.VIR_STORAGE_POOL_BUILD_RESIZE)       // Extend existing pool
    STORAGE_POOL_BUILD_NO_OVERWRITE = StoragePoolBuildFlags(C.VIR_STORAGE_POOL_BUILD_NO_OVERWRITE) // Do not overwrite existing pool
    STORAGE_POOL_BUILD_OVERWRITE    = StoragePoolBuildFlags(C.VIR_STORAGE_POOL_BUILD_OVERWRITE)    // Overwrite data
)
const (
    STORAGE_POOL_CREATE_NORMAL                  = StoragePoolCreateFlags(C.VIR_STORAGE_POOL_CREATE_NORMAL)
    STORAGE_POOL_CREATE_WITH_BUILD              = StoragePoolCreateFlags(C.VIR_STORAGE_POOL_CREATE_WITH_BUILD)
    STORAGE_POOL_CREATE_WITH_BUILD_OVERWRITE    = StoragePoolCreateFlags(C.VIR_STORAGE_POOL_CREATE_WITH_BUILD_OVERWRITE)
    STORAGE_POOL_CREATE_WITH_BUILD_NO_OVERWRITE = StoragePoolCreateFlags(C.VIR_STORAGE_POOL_CREATE_WITH_BUILD_NO_OVERWRITE)
)
const (
    STORAGE_POOL_DELETE_NORMAL = StoragePoolDeleteFlags(C.VIR_STORAGE_POOL_DELETE_NORMAL)
    STORAGE_POOL_DELETE_ZEROED = StoragePoolDeleteFlags(C.VIR_STORAGE_POOL_DELETE_ZEROED)
)
const (
    STORAGE_POOL_EVENT_ID_LIFECYCLE = StoragePoolEventID(C.VIR_STORAGE_POOL_EVENT_ID_LIFECYCLE)
    STORAGE_POOL_EVENT_ID_REFRESH   = StoragePoolEventID(C.VIR_STORAGE_POOL_EVENT_ID_REFRESH)
)
const (
    STORAGE_POOL_EVENT_DEFINED   = StoragePoolEventLifecycleType(C.VIR_STORAGE_POOL_EVENT_DEFINED)
    STORAGE_POOL_EVENT_UNDEFINED = StoragePoolEventLifecycleType(C.VIR_STORAGE_POOL_EVENT_UNDEFINED)
    STORAGE_POOL_EVENT_STARTED   = StoragePoolEventLifecycleType(C.VIR_STORAGE_POOL_EVENT_STARTED)
    STORAGE_POOL_EVENT_STOPPED   = StoragePoolEventLifecycleType(C.VIR_STORAGE_POOL_EVENT_STOPPED)
)
const (
    STORAGE_VOL_CREATE_PREALLOC_METADATA = StorageVolCreateFlags(C.VIR_STORAGE_VOL_CREATE_PREALLOC_METADATA)
    STORAGE_VOL_CREATE_REFLINK           = StorageVolCreateFlags(C.VIR_STORAGE_VOL_CREATE_REFLINK)
)
const (
    STORAGE_VOL_DELETE_NORMAL         = StorageVolDeleteFlags(C.VIR_STORAGE_VOL_DELETE_NORMAL)         // Delete metadata only (fast)
    STORAGE_VOL_DELETE_ZEROED         = StorageVolDeleteFlags(C.VIR_STORAGE_VOL_DELETE_ZEROED)         // Clear all data to zeros (slow)
    STORAGE_VOL_DELETE_WITH_SNAPSHOTS = StorageVolDeleteFlags(C.VIR_STORAGE_VOL_DELETE_WITH_SNAPSHOTS) // Force removal of volume, even if in use
)
const (
    STORAGE_VOL_RESIZE_ALLOCATE = StorageVolResizeFlags(C.VIR_STORAGE_VOL_RESIZE_ALLOCATE) // force allocation of new size
    STORAGE_VOL_RESIZE_DELTA    = StorageVolResizeFlags(C.VIR_STORAGE_VOL_RESIZE_DELTA)    // size is relative to current
    STORAGE_VOL_RESIZE_SHRINK   = StorageVolResizeFlags(C.VIR_STORAGE_VOL_RESIZE_SHRINK)   // allow decrease in capacity
)
const (
    STORAGE_VOL_FILE    = StorageVolType(C.VIR_STORAGE_VOL_FILE)    // Regular file based volumes
    STORAGE_VOL_BLOCK   = StorageVolType(C.VIR_STORAGE_VOL_BLOCK)   // Block based volumes
    STORAGE_VOL_DIR     = StorageVolType(C.VIR_STORAGE_VOL_DIR)     // Directory-passthrough based volume
    STORAGE_VOL_NETWORK = StorageVolType(C.VIR_STORAGE_VOL_NETWORK) //Network volumes like RBD (RADOS Block Device)
    STORAGE_VOL_NETDIR  = StorageVolType(C.VIR_STORAGE_VOL_NETDIR)  // Network accessible directory that can contain other network volumes
    STORAGE_VOL_PLOOP   = StorageVolType(C.VIR_STORAGE_VOL_PLOOP)   // Ploop directory based volumes
)
const (
    STORAGE_VOL_WIPE_ALG_ZERO       = StorageVolWipeAlgorithm(C.VIR_STORAGE_VOL_WIPE_ALG_ZERO)       // 1-pass, all zeroes
    STORAGE_VOL_WIPE_ALG_NNSA       = StorageVolWipeAlgorithm(C.VIR_STORAGE_VOL_WIPE_ALG_NNSA)       // 4-pass NNSA Policy Letter NAP-14.1-C (XVI-8)
    STORAGE_VOL_WIPE_ALG_DOD        = StorageVolWipeAlgorithm(C.VIR_STORAGE_VOL_WIPE_ALG_DOD)        // 4-pass DoD 5220.22-M section 8-306 procedure
    STORAGE_VOL_WIPE_ALG_BSI        = StorageVolWipeAlgorithm(C.VIR_STORAGE_VOL_WIPE_ALG_BSI)        // 9-pass method recommended by the German Center of Security in Information Technologies
    STORAGE_VOL_WIPE_ALG_GUTMANN    = StorageVolWipeAlgorithm(C.VIR_STORAGE_VOL_WIPE_ALG_GUTMANN)    // The canonical 35-pass sequence
    STORAGE_VOL_WIPE_ALG_SCHNEIER   = StorageVolWipeAlgorithm(C.VIR_STORAGE_VOL_WIPE_ALG_SCHNEIER)   // 7-pass method described by Bruce Schneier in "Applied Cryptography" (1996)
    STORAGE_VOL_WIPE_ALG_PFITZNER7  = StorageVolWipeAlgorithm(C.VIR_STORAGE_VOL_WIPE_ALG_PFITZNER7)  // 7-pass random
    STORAGE_VOL_WIPE_ALG_PFITZNER33 = StorageVolWipeAlgorithm(C.VIR_STORAGE_VOL_WIPE_ALG_PFITZNER33) // 33-pass random
    STORAGE_VOL_WIPE_ALG_RANDOM     = StorageVolWipeAlgorithm(C.VIR_STORAGE_VOL_WIPE_ALG_RANDOM)     // 1-pass random
    STORAGE_VOL_WIPE_ALG_TRIM       = StorageVolWipeAlgorithm(C.VIR_STORAGE_VOL_WIPE_ALG_TRIM)       // Trim the underlying storage
)
const (
    STORAGE_VOL_USE_ALLOCATION = StorageVolInfoFlags(C.VIR_STORAGE_VOL_USE_ALLOCATION)
    STORAGE_VOL_GET_PHYSICAL   = StorageVolInfoFlags(C.VIR_STORAGE_VOL_GET_PHYSICAL)
)
const (
    STREAM_EVENT_READABLE = StreamEventType(C.VIR_STREAM_EVENT_READABLE)
    STREAM_EVENT_WRITABLE = StreamEventType(C.VIR_STREAM_EVENT_WRITABLE)
    STREAM_EVENT_ERROR    = StreamEventType(C.VIR_STREAM_EVENT_ERROR)
    STREAM_EVENT_HANGUP   = StreamEventType(C.VIR_STREAM_EVENT_HANGUP)
)
const (
    CONNECT_COMPARE_CPU_FAIL_INCOMPATIBLE = ConnectCompareCPUFlags(C.VIR_CONNECT_COMPARE_CPU_FAIL_INCOMPATIBLE)
)
const (
    DOMAIN_BLOCKED_UNKNOWN = DomainBlockedReason(C.VIR_DOMAIN_BLOCKED_UNKNOWN)
)
const (
    DOMAIN_BLOCK_JOB_INFO_BANDWIDTH_BYTES = DomainBlockJobInfoFlags(C.VIR_DOMAIN_BLOCK_JOB_INFO_BANDWIDTH_BYTES)
)
const (
    DOMAIN_BLOCK_JOB_SPEED_BANDWIDTH_BYTES = DomainBlockJobSetSpeedFlags(C.VIR_DOMAIN_BLOCK_JOB_SPEED_BANDWIDTH_BYTES)
)
const (
    DOMAIN_BLOCK_PULL_BANDWIDTH_BYTES = DomainBlockPullFlags(C.VIR_DOMAIN_BLOCK_PULL_BANDWIDTH_BYTES)
)
const (
    DOMAIN_BLOCK_RESIZE_BYTES = DomainBlockResizeFlags(C.VIR_DOMAIN_BLOCK_RESIZE_BYTES)
)
const (
    DOMAIN_CHANNEL_FORCE = DomainChannelFlags(C.VIR_DOMAIN_CHANNEL_FORCE)
)
const (
    DOMAIN_DEFINE_VALIDATE = DomainDefineFlags(C.VIR_DOMAIN_DEFINE_VALIDATE)
)
const (
    DOMAIN_EVENT_CRASHED_PANICKED = DomainEventCrashedDetailType(C.VIR_DOMAIN_EVENT_CRASHED_PANICKED)
)
const (
    DOMAIN_EVENT_SHUTDOWN_FINISHED = DomainEventShutdownDetailType(C.VIR_DOMAIN_EVENT_SHUTDOWN_FINISHED)
)
const (
    DOMAIN_JOB_STATS_COMPLETED = DomainGetJobStatsFlags(C.VIR_DOMAIN_JOB_STATS_COMPLETED)
)
const DOMAIN_MEMORY_PARAM_UNLIMITED = C.VIR_DOMAIN_MEMORY_PARAM_UNLIMITED
const (
    DOMAIN_NOSTATE_UNKNOWN = DomainNostateReason(C.VIR_DOMAIN_NOSTATE_UNKNOWN)
)
const (
    DOMAIN_OPEN_GRAPHICS_SKIPAUTH = DomainOpenGraphicsFlags(C.VIR_DOMAIN_OPEN_GRAPHICS_SKIPAUTH)
)
const (
    DOMAIN_PASSWORD_ENCRYPTED = DomainSetUserPasswordFlags(C.VIR_DOMAIN_PASSWORD_ENCRYPTED)
)
const (
    DOMAIN_PMSUSPENDED_DISK_UNKNOWN = DomainPMSuspendedDiskReason(C.VIR_DOMAIN_PMSUSPENDED_DISK_UNKNOWN)
)
const (
    DOMAIN_PMSUSPENDED_UNKNOWN = DomainPMSuspendedReason(C.VIR_DOMAIN_PMSUSPENDED_UNKNOWN)
)
const (
    DOMAIN_SEND_KEY_MAX_KEYS = uint32(C.VIR_DOMAIN_SEND_KEY_MAX_KEYS)
)
const (
    DOMAIN_TIME_SYNC = DomainSetTimeFlags(C.VIR_DOMAIN_TIME_SYNC)
)
const (
    INTERFACE_XML_INACTIVE = InterfaceXMLFlags(C.VIR_INTERFACE_XML_INACTIVE)
)
const (
    NETWORK_EVENT_ID_LIFECYCLE = NetworkEventID(C.VIR_NETWORK_EVENT_ID_LIFECYCLE)
)
const (
    NETWORK_XML_INACTIVE = NetworkXMLFlags(C.VIR_NETWORK_XML_INACTIVE)
)
const (
    NODE_CPU_STATS_ALL_CPUS = NodeGetCPUStatsAllCPUs(C.VIR_NODE_CPU_STATS_ALL_CPUS)
)
const (
    NODE_MEMORY_STATS_ALL_CELLS = int(C.VIR_NODE_MEMORY_STATS_ALL_CELLS)
)
const (
    STORAGE_XML_INACTIVE = StorageXMLFlags(C.VIR_STORAGE_XML_INACTIVE)
)
const (
    STREAM_NONBLOCK = StreamFlags(C.VIR_STREAM_NONBLOCK)
)
const (
    VERSION_NUMBER = uint32(C.LIBVIR_VERSION_NUMBER)
)

func EventAddHandle Uses

func EventAddHandle(fd int, events EventHandleType, callback EventHandleCallback) (int, error)

func EventAddTimeout Uses

func EventAddTimeout(freq int, callback EventTimeoutCallback) (int, error)

func EventRegisterDefaultImpl Uses

func EventRegisterDefaultImpl() error

func EventRegisterImpl Uses

func EventRegisterImpl(impl EventLoop)

func EventRemoveHandle Uses

func EventRemoveHandle(watch int)

func EventRemoveTimeout Uses

func EventRemoveTimeout(timer int)

func EventRunDefaultImpl Uses

func EventRunDefaultImpl() error

func EventUpdateHandle Uses

func EventUpdateHandle(watch int, events EventHandleType)

func EventUpdateTimeout Uses

func EventUpdateTimeout(timer int, freq int)

func GetVersion Uses

func GetVersion() (uint32, error)

type CPUCompareResult Uses

type CPUCompareResult int

type CloseCallback Uses

type CloseCallback func(conn *Connect, reason ConnectCloseReason)

type Connect Uses

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

func NewConnect Uses

func NewConnect(uri string) (*Connect, error)

func NewConnectReadOnly Uses

func NewConnectReadOnly(uri string) (*Connect, error)

func NewConnectWithAuth Uses

func NewConnectWithAuth(uri string, auth *ConnectAuth, flags ConnectFlags) (*Connect, error)

func (*Connect) AllocPages Uses

func (c *Connect) AllocPages(pageSizes map[int]int64, startCell int, cellCount uint, flags NodeAllocPagesFlags) (int, error)

func (*Connect) BaselineCPU Uses

func (c *Connect) BaselineCPU(xmlCPUs []string, flags ConnectBaselineCPUFlags) (string, error)

func (*Connect) Close Uses

func (c *Connect) Close() (int, error)

func (*Connect) CompareCPU Uses

func (c *Connect) CompareCPU(xmlDesc string, flags ConnectCompareCPUFlags) (CPUCompareResult, error)

func (*Connect) DeviceCreateXML Uses

func (c *Connect) DeviceCreateXML(xmlConfig string, flags uint32) (*NodeDevice, error)

func (*Connect) DomainCreateXML Uses

func (c *Connect) DomainCreateXML(xmlConfig string, flags DomainCreateFlags) (*Domain, error)

func (*Connect) DomainCreateXMLWithFiles Uses

func (c *Connect) DomainCreateXMLWithFiles(xmlConfig string, files []os.File, flags DomainCreateFlags) (*Domain, error)

func (*Connect) DomainDefineXML Uses

func (c *Connect) DomainDefineXML(xmlConfig string) (*Domain, error)

func (*Connect) DomainDefineXMLFlags Uses

func (c *Connect) DomainDefineXMLFlags(xmlConfig string, flags DomainDefineFlags) (*Domain, error)

func (*Connect) DomainEventAgentLifecycleRegister Uses

func (c *Connect) DomainEventAgentLifecycleRegister(dom *Domain, callback DomainEventAgentLifecycleCallback) (int, error)

func (*Connect) DomainEventBalloonChangeRegister Uses

func (c *Connect) DomainEventBalloonChangeRegister(dom *Domain, callback DomainEventBalloonChangeCallback) (int, error)

func (*Connect) DomainEventBlockJob2Register Uses

func (c *Connect) DomainEventBlockJob2Register(dom *Domain, callback DomainEventBlockJobCallback) (int, error)

func (*Connect) DomainEventBlockJobRegister Uses

func (c *Connect) DomainEventBlockJobRegister(dom *Domain, callback DomainEventBlockJobCallback) (int, error)

func (*Connect) DomainEventControlErrorRegister Uses

func (c *Connect) DomainEventControlErrorRegister(dom *Domain, callback DomainEventGenericCallback) (int, error)

func (*Connect) DomainEventDeregister Uses

func (c *Connect) DomainEventDeregister(callbackId int) error

func (*Connect) DomainEventDeviceAddedRegister Uses

func (c *Connect) DomainEventDeviceAddedRegister(dom *Domain, callback DomainEventDeviceAddedCallback) (int, error)

func (*Connect) DomainEventDeviceRemovalFailedRegister Uses

func (c *Connect) DomainEventDeviceRemovalFailedRegister(dom *Domain, callback DomainEventDeviceRemovalFailedCallback) (int, error)

func (*Connect) DomainEventDeviceRemovedRegister Uses

func (c *Connect) DomainEventDeviceRemovedRegister(dom *Domain, callback DomainEventDeviceRemovedCallback) (int, error)

func (*Connect) DomainEventDiskChangeRegister Uses

func (c *Connect) DomainEventDiskChangeRegister(dom *Domain, callback DomainEventDiskChangeCallback) (int, error)

func (*Connect) DomainEventGraphicsRegister Uses

func (c *Connect) DomainEventGraphicsRegister(dom *Domain, callback DomainEventGraphicsCallback) (int, error)

func (*Connect) DomainEventIOErrorReasonRegister Uses

func (c *Connect) DomainEventIOErrorReasonRegister(dom *Domain, callback DomainEventIOErrorReasonCallback) (int, error)

func (*Connect) DomainEventIOErrorRegister Uses

func (c *Connect) DomainEventIOErrorRegister(dom *Domain, callback DomainEventIOErrorCallback) (int, error)

func (*Connect) DomainEventJobCompletedRegister Uses

func (c *Connect) DomainEventJobCompletedRegister(dom *Domain, callback DomainEventJobCompletedCallback) (int, error)

func (*Connect) DomainEventLifecycleRegister Uses

func (c *Connect) DomainEventLifecycleRegister(dom *Domain, callback DomainEventLifecycleCallback) (int, error)

func (*Connect) DomainEventMetadataChangeRegister Uses

func (c *Connect) DomainEventMetadataChangeRegister(dom *Domain, callback DomainEventMetadataChangeCallback) (int, error)

func (*Connect) DomainEventMigrationIterationRegister Uses

func (c *Connect) DomainEventMigrationIterationRegister(dom *Domain, callback DomainEventMigrationIterationCallback) (int, error)

func (*Connect) DomainEventPMSuspendDiskRegister Uses

func (c *Connect) DomainEventPMSuspendDiskRegister(dom *Domain, callback DomainEventPMSuspendDiskCallback) (int, error)

func (*Connect) DomainEventPMSuspendRegister Uses

func (c *Connect) DomainEventPMSuspendRegister(dom *Domain, callback DomainEventPMSuspendCallback) (int, error)

func (*Connect) DomainEventPMWakeupRegister Uses

func (c *Connect) DomainEventPMWakeupRegister(dom *Domain, callback DomainEventPMWakeupCallback) (int, error)

func (*Connect) DomainEventRTCChangeRegister Uses

func (c *Connect) DomainEventRTCChangeRegister(dom *Domain, callback DomainEventRTCChangeCallback) (int, error)

func (*Connect) DomainEventRebootRegister Uses

func (c *Connect) DomainEventRebootRegister(dom *Domain, callback DomainEventGenericCallback) (int, error)

func (*Connect) DomainEventTrayChangeRegister Uses

func (c *Connect) DomainEventTrayChangeRegister(dom *Domain, callback DomainEventTrayChangeCallback) (int, error)

func (*Connect) DomainEventTunableRegister Uses

func (c *Connect) DomainEventTunableRegister(dom *Domain, callback DomainEventTunableCallback) (int, error)

func (*Connect) DomainEventWatchdogRegister Uses

func (c *Connect) DomainEventWatchdogRegister(dom *Domain, callback DomainEventWatchdogCallback) (int, error)

func (*Connect) DomainRestore Uses

func (c *Connect) DomainRestore(srcFile string) error

func (*Connect) DomainRestoreFlags Uses

func (c *Connect) DomainRestoreFlags(srcFile, xmlConf string, flags DomainSaveRestoreFlags) error

func (*Connect) DomainSaveImageDefineXML Uses

func (c *Connect) DomainSaveImageDefineXML(file string, xml string, flags DomainSaveRestoreFlags) error

func (*Connect) DomainSaveImageGetXMLDesc Uses

func (c *Connect) DomainSaveImageGetXMLDesc(file string, flags DomainXMLFlags) (string, error)

func (*Connect) DomainXMLFromNative Uses

func (c *Connect) DomainXMLFromNative(nativeFormat string, nativeConfig string, flags uint32) (string, error)

func (*Connect) DomainXMLToNative Uses

func (c *Connect) DomainXMLToNative(nativeFormat string, domainXml string, flags uint32) (string, error)

func (*Connect) FindStoragePoolSources Uses

func (c *Connect) FindStoragePoolSources(pooltype string, srcSpec string, flags uint32) (string, error)

func (*Connect) GetAllDomainStats Uses

func (c *Connect) GetAllDomainStats(doms []*Domain, statsTypes DomainStatsTypes, flags ConnectGetAllDomainStatsFlags) ([]DomainStats, error)

func (*Connect) GetCPUMap Uses

func (c *Connect) GetCPUMap(flags uint32) (map[int]bool, uint, error)

func (*Connect) GetCPUModelNames Uses

func (c *Connect) GetCPUModelNames(arch string, flags uint32) ([]string, error)

func (*Connect) GetCPUStats Uses

func (c *Connect) GetCPUStats(cpuNum int, flags uint32) (*NodeCPUStats, error)

func (*Connect) GetCapabilities Uses

func (c *Connect) GetCapabilities() (string, error)

func (*Connect) GetCellsFreeMemory Uses

func (c *Connect) GetCellsFreeMemory(startCell int, maxCells int) ([]uint64, error)

func (*Connect) GetDomainCapabilities Uses

func (c *Connect) GetDomainCapabilities(emulatorbin string, arch string, machine string, virttype string, flags uint32) (string, error)

func (*Connect) GetFreeMemory Uses

func (c *Connect) GetFreeMemory() (uint64, error)

func (*Connect) GetFreePages Uses

func (c *Connect) GetFreePages(pageSizes []uint64, startCell int, maxCells uint, flags uint32) ([]uint64, error)

func (*Connect) GetHostname Uses

func (c *Connect) GetHostname() (string, error)

func (*Connect) GetLibVersion Uses

func (c *Connect) GetLibVersion() (uint32, error)

func (*Connect) GetMaxVcpus Uses

func (c *Connect) GetMaxVcpus(typeAttr string) (int, error)

func (*Connect) GetMemoryParameters Uses

func (c *Connect) GetMemoryParameters(flags uint32) (*NodeMemoryParameters, error)

func (*Connect) GetMemoryStats Uses

func (c *Connect) GetMemoryStats(cellNum int, flags uint32) (*NodeMemoryStats, error)

func (*Connect) GetNodeInfo Uses

func (c *Connect) GetNodeInfo() (*NodeInfo, error)

func (*Connect) GetSecurityModel Uses

func (c *Connect) GetSecurityModel() (*NodeSecurityModel, error)

func (*Connect) GetSysinfo Uses

func (c *Connect) GetSysinfo(flags uint32) (string, error)

func (*Connect) GetType Uses

func (c *Connect) GetType() (string, error)

func (*Connect) GetURI Uses

func (c *Connect) GetURI() (string, error)

func (*Connect) GetVersion Uses

func (c *Connect) GetVersion() (uint32, error)

func (*Connect) InterfaceChangeBegin Uses

func (c *Connect) InterfaceChangeBegin(flags uint32) error

func (*Connect) InterfaceChangeCommit Uses

func (c *Connect) InterfaceChangeCommit(flags uint32) error

func (*Connect) InterfaceChangeRollback Uses

func (c *Connect) InterfaceChangeRollback(flags uint32) error

func (*Connect) InterfaceDefineXML Uses

func (c *Connect) InterfaceDefineXML(xmlConfig string, flags uint32) (*Interface, error)

func (*Connect) IsAlive Uses

func (c *Connect) IsAlive() (bool, error)

func (*Connect) IsEncrypted Uses

func (c *Connect) IsEncrypted() (bool, error)

func (*Connect) IsSecure Uses

func (c *Connect) IsSecure() (bool, error)

func (*Connect) ListAllDomains Uses

func (c *Connect) ListAllDomains(flags ConnectListAllDomainsFlags) ([]Domain, error)

func (*Connect) ListAllInterfaces Uses

func (c *Connect) ListAllInterfaces(flags ConnectListAllInterfacesFlags) ([]Interface, error)

func (*Connect) ListAllNWFilters Uses

func (c *Connect) ListAllNWFilters(flags uint32) ([]NWFilter, error)

func (*Connect) ListAllNetworks Uses

func (c *Connect) ListAllNetworks(flags ConnectListAllNetworksFlags) ([]Network, error)

func (*Connect) ListAllNodeDevices Uses

func (c *Connect) ListAllNodeDevices(flags ConnectListAllNodeDeviceFlags) ([]NodeDevice, error)

func (*Connect) ListAllSecrets Uses

func (c *Connect) ListAllSecrets(flags ConnectListAllSecretsFlags) ([]Secret, error)

func (*Connect) ListAllStoragePools Uses

func (c *Connect) ListAllStoragePools(flags ConnectListAllStoragePoolsFlags) ([]StoragePool, error)

func (*Connect) ListDefinedDomains Uses

func (c *Connect) ListDefinedDomains() ([]string, error)

func (*Connect) ListDefinedInterfaces Uses

func (c *Connect) ListDefinedInterfaces() ([]string, error)

func (*Connect) ListDefinedNetworks Uses

func (c *Connect) ListDefinedNetworks() ([]string, error)

func (*Connect) ListDefinedStoragePools Uses

func (c *Connect) ListDefinedStoragePools() ([]string, error)

func (*Connect) ListDevices Uses

func (c *Connect) ListDevices(cap string, flags uint32) ([]string, error)

func (*Connect) ListDomains Uses

func (c *Connect) ListDomains() ([]uint32, error)

func (*Connect) ListInterfaces Uses

func (c *Connect) ListInterfaces() ([]string, error)

func (*Connect) ListNWFilters Uses

func (c *Connect) ListNWFilters() ([]string, error)

func (*Connect) ListNetworks Uses

func (c *Connect) ListNetworks() ([]string, error)

func (*Connect) ListSecrets Uses

func (c *Connect) ListSecrets() ([]string, error)

func (*Connect) ListStoragePools Uses

func (c *Connect) ListStoragePools() ([]string, error)

func (*Connect) LookupDeviceByName Uses

func (c *Connect) LookupDeviceByName(id string) (*NodeDevice, error)

func (*Connect) LookupDeviceSCSIHostByWWN Uses

func (c *Connect) LookupDeviceSCSIHostByWWN(wwnn, wwpn string, flags uint32) (*NodeDevice, error)

func (*Connect) LookupDomainById Uses

func (c *Connect) LookupDomainById(id uint32) (*Domain, error)

func (*Connect) LookupDomainByName Uses

func (c *Connect) LookupDomainByName(id string) (*Domain, error)

func (*Connect) LookupDomainByUUID Uses

func (c *Connect) LookupDomainByUUID(uuid []byte) (*Domain, error)

func (*Connect) LookupDomainByUUIDString Uses

func (c *Connect) LookupDomainByUUIDString(uuid string) (*Domain, error)

func (*Connect) LookupInterfaceByMACString Uses

func (c *Connect) LookupInterfaceByMACString(mac string) (*Interface, error)

func (*Connect) LookupInterfaceByName Uses

func (c *Connect) LookupInterfaceByName(name string) (*Interface, error)

func (*Connect) LookupNWFilterByName Uses

func (c *Connect) LookupNWFilterByName(name string) (*NWFilter, error)

func (*Connect) LookupNWFilterByUUID Uses

func (c *Connect) LookupNWFilterByUUID(uuid []byte) (*NWFilter, error)

func (*Connect) LookupNWFilterByUUIDString Uses

func (c *Connect) LookupNWFilterByUUIDString(uuid string) (*NWFilter, error)

func (*Connect) LookupNetworkByName Uses

func (c *Connect) LookupNetworkByName(name string) (*Network, error)

func (*Connect) LookupNetworkByUUID Uses

func (c *Connect) LookupNetworkByUUID(uuid []byte) (*Network, error)

func (*Connect) LookupNetworkByUUIDString Uses

func (c *Connect) LookupNetworkByUUIDString(uuid string) (*Network, error)

func (*Connect) LookupSecretByUUID Uses

func (c *Connect) LookupSecretByUUID(uuid []byte) (*Secret, error)

func (*Connect) LookupSecretByUUIDString Uses

func (c *Connect) LookupSecretByUUIDString(uuid string) (*Secret, error)

func (*Connect) LookupSecretByUsage Uses

func (c *Connect) LookupSecretByUsage(usageType SecretUsageType, usageID string) (*Secret, error)

func (*Connect) LookupStoragePoolByName Uses

func (c *Connect) LookupStoragePoolByName(name string) (*StoragePool, error)

func (*Connect) LookupStoragePoolByUUID Uses

func (c *Connect) LookupStoragePoolByUUID(uuid []byte) (*StoragePool, error)

func (*Connect) LookupStoragePoolByUUIDString Uses

func (c *Connect) LookupStoragePoolByUUIDString(uuid string) (*StoragePool, error)

func (*Connect) LookupStorageVolByKey Uses

func (c *Connect) LookupStorageVolByKey(key string) (*StorageVol, error)

func (*Connect) LookupStorageVolByPath Uses

func (c *Connect) LookupStorageVolByPath(path string) (*StorageVol, error)

func (*Connect) NWFilterDefineXML Uses

func (c *Connect) NWFilterDefineXML(xmlConfig string) (*NWFilter, error)

func (*Connect) NetworkCreateXML Uses

func (c *Connect) NetworkCreateXML(xmlConfig string) (*Network, error)

func (*Connect) NetworkDefineXML Uses

func (c *Connect) NetworkDefineXML(xmlConfig string) (*Network, error)

func (*Connect) NetworkEventDeregister Uses

func (c *Connect) NetworkEventDeregister(callbackId int) error

func (*Connect) NetworkEventLifecycleRegister Uses

func (c *Connect) NetworkEventLifecycleRegister(net *Network, callback NetworkEventLifecycleCallback) (int, error)

func (*Connect) NewStream Uses

func (c *Connect) NewStream(flags StreamFlags) (*Stream, error)

func (*Connect) NodeDeviceEventDeregister Uses

func (c *Connect) NodeDeviceEventDeregister(callbackId int) error

func (*Connect) NodeDeviceEventLifecycleRegister Uses

func (c *Connect) NodeDeviceEventLifecycleRegister(device *NodeDevice, callback NodeDeviceEventLifecycleCallback) (int, error)

func (*Connect) NodeDeviceEventUpdateRegister Uses

func (c *Connect) NodeDeviceEventUpdateRegister(device *NodeDevice, callback NodeDeviceEventGenericCallback) (int, error)

func (*Connect) NumOfDefinedDomains Uses

func (c *Connect) NumOfDefinedDomains() (int, error)

func (*Connect) NumOfDefinedInterfaces Uses

func (c *Connect) NumOfDefinedInterfaces() (int, error)

func (*Connect) NumOfDefinedNetworks Uses

func (c *Connect) NumOfDefinedNetworks() (int, error)

func (*Connect) NumOfDefinedStoragePools Uses

func (c *Connect) NumOfDefinedStoragePools() (int, error)

func (*Connect) NumOfDevices Uses

func (c *Connect) NumOfDevices(cap string, flags uint32) (int, error)

func (*Connect) NumOfDomains Uses

func (c *Connect) NumOfDomains() (int, error)

func (*Connect) NumOfInterfaces Uses

func (c *Connect) NumOfInterfaces() (int, error)

func (*Connect) NumOfNWFilters Uses

func (c *Connect) NumOfNWFilters() (int, error)

func (*Connect) NumOfNetworks Uses

func (c *Connect) NumOfNetworks() (int, error)

func (*Connect) NumOfSecrets Uses

func (c *Connect) NumOfSecrets() (int, error)

func (*Connect) NumOfStoragePools Uses

func (c *Connect) NumOfStoragePools() (int, error)

func (*Connect) Ref Uses

func (c *Connect) Ref() error

func (*Connect) RegisterCloseCallback Uses

func (c *Connect) RegisterCloseCallback(callback CloseCallback) error

Register a close callback for the given destination. Only one callback per connection is allowed. Setting a callback will remove the previous one.

func (*Connect) SecretDefineXML Uses

func (c *Connect) SecretDefineXML(xmlConfig string, flags uint32) (*Secret, error)

func (*Connect) SecretEventDeregister Uses

func (c *Connect) SecretEventDeregister(callbackId int) error

func (*Connect) SecretEventLifecycleRegister Uses

func (c *Connect) SecretEventLifecycleRegister(secret *Secret, callback SecretEventLifecycleCallback) (int, error)

func (*Connect) SecretEventValueChangedRegister Uses

func (c *Connect) SecretEventValueChangedRegister(secret *Secret, callback SecretEventGenericCallback) (int, error)

func (*Connect) SetKeepAlive Uses

func (c *Connect) SetKeepAlive(interval int, count uint) error

func (*Connect) SetMemoryParameters Uses

func (c *Connect) SetMemoryParameters(params *NodeMemoryParameters, flags uint32) error

func (*Connect) StoragePoolCreateXML Uses

func (c *Connect) StoragePoolCreateXML(xmlConfig string, flags StoragePoolCreateFlags) (*StoragePool, error)

func (*Connect) StoragePoolDefineXML Uses

func (c *Connect) StoragePoolDefineXML(xmlConfig string, flags uint32) (*StoragePool, error)

func (*Connect) StoragePoolEventDeregister Uses

func (c *Connect) StoragePoolEventDeregister(callbackId int) error

func (*Connect) StoragePoolEventLifecycleRegister Uses

func (c *Connect) StoragePoolEventLifecycleRegister(pool *StoragePool, callback StoragePoolEventLifecycleCallback) (int, error)

func (*Connect) StoragePoolEventRefreshRegister Uses

func (c *Connect) StoragePoolEventRefreshRegister(pool *StoragePool, callback StoragePoolEventGenericCallback) (int, error)

func (*Connect) SuspendForDuration Uses

func (c *Connect) SuspendForDuration(target NodeSuspendTarget, duration uint64, flags uint32) error

func (*Connect) UnregisterCloseCallback Uses

func (c *Connect) UnregisterCloseCallback() error

type ConnectAuth Uses

type ConnectAuth struct {
    CredType []ConnectCredentialType
    Callback ConnectAuthCallback
}

type ConnectAuthCallback Uses

type ConnectAuthCallback func(creds []*ConnectCredential)

type ConnectBaselineCPUFlags Uses

type ConnectBaselineCPUFlags int

type ConnectCloseReason Uses

type ConnectCloseReason int

type ConnectCompareCPUFlags Uses

type ConnectCompareCPUFlags int

type ConnectCredential Uses

type ConnectCredential struct {
    Type      ConnectCredentialType
    Prompt    string
    Challenge string
    DefResult string
    Result    string
    ResultLen int
}

type ConnectCredentialType Uses

type ConnectCredentialType int

type ConnectDomainEventAgentLifecycleReason Uses

type ConnectDomainEventAgentLifecycleReason int

type ConnectDomainEventAgentLifecycleState Uses

type ConnectDomainEventAgentLifecycleState int

type ConnectDomainEventBlockJobStatus Uses

type ConnectDomainEventBlockJobStatus int

type ConnectDomainEventDiskChangeReason Uses

type ConnectDomainEventDiskChangeReason int

type ConnectDomainEventTrayChangeReason Uses

type ConnectDomainEventTrayChangeReason int

type ConnectFlags Uses

type ConnectFlags int

type ConnectGetAllDomainStatsFlags Uses

type ConnectGetAllDomainStatsFlags int

type ConnectListAllDomainsFlags Uses

type ConnectListAllDomainsFlags int

type ConnectListAllInterfacesFlags Uses

type ConnectListAllInterfacesFlags int

type ConnectListAllNetworksFlags Uses

type ConnectListAllNetworksFlags int

type ConnectListAllNodeDeviceFlags Uses

type ConnectListAllNodeDeviceFlags int

type ConnectListAllSecretsFlags Uses

type ConnectListAllSecretsFlags int

type ConnectListAllStoragePoolsFlags Uses

type ConnectListAllStoragePoolsFlags int

type Domain Uses

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

func (*Domain) AbortJob Uses

func (d *Domain) AbortJob() error

func (*Domain) AddIOThread Uses

func (d *Domain) AddIOThread(id uint, flags DomainModificationImpact) error

func (*Domain) AttachDevice Uses

func (d *Domain) AttachDevice(xml string) error

func (*Domain) AttachDeviceFlags Uses

func (d *Domain) AttachDeviceFlags(xml string, flags DomainDeviceModifyFlags) error

func (*Domain) BlockCommit Uses

func (d *Domain) BlockCommit(disk string, base string, top string, bandwidth uint64, flags DomainBlockCommitFlags) error

func (*Domain) BlockCopy Uses

func (d *Domain) BlockCopy(disk string, destxml string, params *DomainBlockCopyParameters, flags DomainBlockCopyFlags) error

func (*Domain) BlockJobAbort Uses

func (d *Domain) BlockJobAbort(disk string, flags DomainBlockJobAbortFlags) error

func (*Domain) BlockJobSetSpeed Uses

func (d *Domain) BlockJobSetSpeed(disk string, bandwidth uint64, flags DomainBlockJobSetSpeedFlags) error

func (*Domain) BlockPeek Uses

func (d *Domain) BlockPeek(disk string, offset uint64, size uint64, flags uint32) ([]byte, error)

func (*Domain) BlockPull Uses

func (d *Domain) BlockPull(disk string, bandwidth uint64, flags DomainBlockPullFlags) error

func (*Domain) BlockRebase Uses

func (d *Domain) BlockRebase(disk string, base string, bandwidth uint64, flags DomainBlockRebaseFlags) error

func (*Domain) BlockResize Uses

func (d *Domain) BlockResize(disk string, size uint64, flags DomainBlockResizeFlags) error

func (*Domain) BlockStats Uses

func (d *Domain) BlockStats(path string) (*DomainBlockStats, error)

func (*Domain) BlockStatsFlags Uses

func (d *Domain) BlockStatsFlags(disk string, flags uint32) (*DomainBlockStats, error)

func (*Domain) CoreDump Uses

func (d *Domain) CoreDump(to string, flags DomainCoreDumpFlags) error

func (*Domain) CoreDumpWithFormat Uses

func (d *Domain) CoreDumpWithFormat(to string, format DomainCoreDumpFormat, flags DomainCoreDumpFlags) error

func (*Domain) Create Uses

func (d *Domain) Create() error

func (*Domain) CreateSnapshotXML Uses

func (d *Domain) CreateSnapshotXML(xml string, flags DomainSnapshotCreateFlags) (*DomainSnapshot, error)

func (*Domain) CreateWithFiles Uses

func (d *Domain) CreateWithFiles(files []os.File, flags DomainCreateFlags) error

func (*Domain) CreateWithFlags Uses

func (d *Domain) CreateWithFlags(flags DomainCreateFlags) error

func (*Domain) DelIOThread Uses

func (d *Domain) DelIOThread(id uint, flags DomainModificationImpact) error

func (*Domain) Destroy Uses

func (d *Domain) Destroy() error

func (*Domain) DestroyFlags Uses

func (d *Domain) DestroyFlags(flags DomainDestroyFlags) error

func (*Domain) DetachDevice Uses

func (d *Domain) DetachDevice(xml string) error

func (*Domain) DetachDeviceFlags Uses

func (d *Domain) DetachDeviceFlags(xml string, flags DomainDeviceModifyFlags) error

func (*Domain) FSFreeze Uses

func (d *Domain) FSFreeze(mounts []string, flags uint32) error

func (*Domain) FSThaw Uses

func (d *Domain) FSThaw(mounts []string, flags uint32) error

func (*Domain) FSTrim Uses

func (d *Domain) FSTrim(mount string, minimum uint64, flags uint32) error

func (*Domain) Free Uses

func (d *Domain) Free() error

func (*Domain) GetAutostart Uses

func (d *Domain) GetAutostart() (bool, error)

func (*Domain) GetBlkioParameters Uses

func (d *Domain) GetBlkioParameters(flags DomainModificationImpact) (*DomainBlkioParameters, error)

func (*Domain) GetBlockInfo Uses

func (d *Domain) GetBlockInfo(disk string, flag uint) (*DomainBlockInfo, error)

func (*Domain) GetBlockIoTune Uses

func (d *Domain) GetBlockIoTune(disk string, flags DomainModificationImpact) (*DomainBlockIoTuneParameters, error)

func (*Domain) GetBlockJobInfo Uses

func (d *Domain) GetBlockJobInfo(disk string, flags DomainBlockJobInfoFlags) (*DomainBlockJobInfo, error)

func (*Domain) GetCPUStats Uses

func (d *Domain) GetCPUStats(startCpu int, nCpus uint, flags uint32) ([]DomainCPUStats, error)

func (*Domain) GetControlInfo Uses

func (d *Domain) GetControlInfo(flags uint32) (*DomainControlInfo, error)

func (*Domain) GetDiskErrors Uses

func (d *Domain) GetDiskErrors(flags uint32) ([]DomainDiskError, error)

func (*Domain) GetEmulatorPinInfo Uses

func (d *Domain) GetEmulatorPinInfo(flags DomainModificationImpact) ([]bool, error)

func (*Domain) GetFSInfo Uses

func (d *Domain) GetFSInfo(flags uint32) ([]DomainFSInfo, error)

func (*Domain) GetGuestVcpus Uses

func (d *Domain) GetGuestVcpus(flags uint32) (*DomainGuestVcpus, error)

func (*Domain) GetHostname Uses

func (d *Domain) GetHostname(flags uint32) (string, error)

func (*Domain) GetID Uses

func (d *Domain) GetID() (uint, error)

func (*Domain) GetIOThreadInfo Uses

func (d *Domain) GetIOThreadInfo(flags DomainModificationImpact) ([]DomainIOThreadInfo, error)

func (*Domain) GetInfo Uses

func (d *Domain) GetInfo() (*DomainInfo, error)

func (*Domain) GetInterfaceParameters Uses

func (d *Domain) GetInterfaceParameters(device string, flags DomainModificationImpact) (*DomainInterfaceParameters, error)

func (*Domain) GetJobInfo Uses

func (d *Domain) GetJobInfo() (*DomainJobInfo, error)

func (*Domain) GetJobStats Uses

func (d *Domain) GetJobStats(flags DomainGetJobStatsFlags) (*DomainJobInfo, error)

func (*Domain) GetMaxMemory Uses

func (d *Domain) GetMaxMemory() (uint64, error)

func (*Domain) GetMaxVcpus Uses

func (d *Domain) GetMaxVcpus() (uint, error)

func (*Domain) GetMemoryParameters Uses

func (d *Domain) GetMemoryParameters(flags DomainModificationImpact) (*DomainMemoryParameters, error)

func (*Domain) GetMetadata Uses

func (d *Domain) GetMetadata(tipus DomainMetadataType, uri string, flags DomainModificationImpact) (string, error)

func (*Domain) GetName Uses

func (d *Domain) GetName() (string, error)

func (*Domain) GetNumaParameters Uses

func (d *Domain) GetNumaParameters(flags DomainModificationImpact) (*DomainNumaParameters, error)

func (*Domain) GetOSType Uses

func (d *Domain) GetOSType() (string, error)

func (*Domain) GetPerfEvents Uses

func (d *Domain) GetPerfEvents(flags DomainModificationImpact) (*DomainPerfEvents, error)

func (*Domain) GetSchedulerParameters Uses

func (d *Domain) GetSchedulerParameters() (*DomainSchedulerParameters, error)

func (*Domain) GetSchedulerParametersFlags Uses

func (d *Domain) GetSchedulerParametersFlags(flags DomainModificationImpact) (*DomainSchedulerParameters, error)

func (*Domain) GetSecurityLabel Uses

func (d *Domain) GetSecurityLabel() (*SecurityLabel, error)

func (*Domain) GetSecurityLabelList Uses

func (d *Domain) GetSecurityLabelList() ([]SecurityLabel, error)

func (*Domain) GetState Uses

func (d *Domain) GetState() (DomainState, int, error)

func (*Domain) GetTime Uses

func (d *Domain) GetTime(flags uint32) (int64, uint, error)

func (*Domain) GetUUID Uses

func (d *Domain) GetUUID() ([]byte, error)

func (*Domain) GetUUIDString Uses

func (d *Domain) GetUUIDString() (string, error)

func (*Domain) GetVcpuPinInfo Uses

func (d *Domain) GetVcpuPinInfo(flags DomainModificationImpact) ([][]bool, error)

func (*Domain) GetVcpus Uses

func (d *Domain) GetVcpus() ([]DomainVcpuInfo, error)

func (*Domain) GetVcpusFlags Uses

func (d *Domain) GetVcpusFlags(flags DomainVcpuFlags) (int32, error)

func (*Domain) GetXMLDesc Uses

func (d *Domain) GetXMLDesc(flags DomainXMLFlags) (string, error)

func (*Domain) HasCurrentSnapshot Uses

func (d *Domain) HasCurrentSnapshot(flags uint32) (bool, error)

func (*Domain) HasManagedSaveImage Uses

func (d *Domain) HasManagedSaveImage(flags uint32) (bool, error)

func (*Domain) InjectNMI Uses

func (d *Domain) InjectNMI(flags uint32) error

func (*Domain) InterfaceStats Uses

func (d *Domain) InterfaceStats(path string) (*DomainInterfaceStats, error)

func (*Domain) IsActive Uses

func (d *Domain) IsActive() (bool, error)

func (*Domain) IsPersistent Uses

func (d *Domain) IsPersistent() (bool, error)

func (*Domain) IsUpdated Uses

func (d *Domain) IsUpdated() (bool, error)

func (*Domain) ListAllInterfaceAddresses Uses

func (d *Domain) ListAllInterfaceAddresses(src uint) ([]DomainInterface, error)

func (*Domain) ListAllSnapshots Uses

func (d *Domain) ListAllSnapshots(flags DomainSnapshotListFlags) ([]DomainSnapshot, error)

func (*Domain) ManagedSave Uses

func (d *Domain) ManagedSave(flags DomainSaveRestoreFlags) error

func (*Domain) ManagedSaveRemove Uses

func (d *Domain) ManagedSaveRemove(flags uint32) error

func (*Domain) MemoryPeek Uses

func (d *Domain) MemoryPeek(start uint64, size uint64, flags DomainMemoryFlags) ([]byte, error)

func (*Domain) MemoryStats Uses

func (d *Domain) MemoryStats(nrStats uint32, flags uint32) ([]DomainMemoryStat, error)

func (*Domain) Migrate Uses

func (d *Domain) Migrate(dconn *Connect, flags DomainMigrateFlags, dname string, uri string, bandwidth uint64) (*Domain, error)

func (*Domain) Migrate2 Uses

func (d *Domain) Migrate2(dconn *Connect, dxml string, flags DomainMigrateFlags, dname string, uri string, bandwidth uint64) (*Domain, error)

func (*Domain) Migrate3 Uses

func (d *Domain) Migrate3(dconn *Connect, params *DomainMigrateParameters, flags DomainMigrateFlags) (*Domain, error)

func (*Domain) MigrateGetCompressionCache Uses

func (d *Domain) MigrateGetCompressionCache(flags uint32) (uint64, error)

func (*Domain) MigrateGetMaxSpeed Uses

func (d *Domain) MigrateGetMaxSpeed(flags uint32) (uint64, error)

func (*Domain) MigrateSetCompressionCache Uses

func (d *Domain) MigrateSetCompressionCache(size uint64, flags uint32) error

func (*Domain) MigrateSetMaxDowntime Uses

func (d *Domain) MigrateSetMaxDowntime(downtime uint64, flags uint32) error

func (*Domain) MigrateSetMaxSpeed Uses

func (d *Domain) MigrateSetMaxSpeed(speed uint64, flags uint32) error

func (*Domain) MigrateStartPostCopy Uses

func (d *Domain) MigrateStartPostCopy(flags uint32) error

func (*Domain) MigrateToURI Uses

func (d *Domain) MigrateToURI(duri string, flags DomainMigrateFlags, dname string, bandwidth uint64) error

func (*Domain) MigrateToURI2 Uses

func (d *Domain) MigrateToURI2(dconnuri string, miguri string, dxml string, flags DomainMigrateFlags, dname string, bandwidth uint64) error

func (*Domain) MigrateToURI3 Uses

func (d *Domain) MigrateToURI3(dconnuri string, params *DomainMigrateParameters, flags DomainMigrateFlags) error

func (*Domain) OpenChannel Uses

func (d *Domain) OpenChannel(name string, stream *Stream, flags DomainChannelFlags) error

func (*Domain) OpenConsole Uses

func (d *Domain) OpenConsole(devname string, stream *Stream, flags DomainConsoleFlags) error

func (*Domain) OpenGraphics Uses

func (d *Domain) OpenGraphics(idx uint, file os.File, flags DomainOpenGraphicsFlags) error

func (*Domain) OpenGraphicsFD Uses

func (d *Domain) OpenGraphicsFD(idx uint, flags DomainOpenGraphicsFlags) (*os.File, error)

func (*Domain) PMSuspendForDuration Uses

func (d *Domain) PMSuspendForDuration(target NodeSuspendTarget, duration uint64, flags uint32) error

func (*Domain) PMWakeup Uses

func (d *Domain) PMWakeup(flags uint32) error

func (*Domain) PinEmulator Uses

func (d *Domain) PinEmulator(cpumap []bool, flags DomainModificationImpact) error

func (*Domain) PinIOThread Uses

func (d *Domain) PinIOThread(iothreadid uint, cpumap []bool, flags DomainModificationImpact) error

func (*Domain) PinVcpu Uses

func (d *Domain) PinVcpu(vcpu uint, cpuMap []bool) error

func (*Domain) PinVcpuFlags Uses

func (d *Domain) PinVcpuFlags(vcpu uint, cpuMap []bool, flags DomainModificationImpact) error

func (*Domain) QemuMonitorCommand Uses

func (d *Domain) QemuMonitorCommand(command string, flags DomainQemuMonitorCommandFlags) (string, error)

func (*Domain) Reboot Uses

func (d *Domain) Reboot(flags DomainRebootFlagValues) error

func (*Domain) Ref Uses

func (c *Domain) Ref() error

func (*Domain) Rename Uses

func (d *Domain) Rename(name string, flags uint32) error

func (*Domain) Reset Uses

func (d *Domain) Reset(flags uint32) error

func (*Domain) Resume Uses

func (d *Domain) Resume() error

func (*Domain) Save Uses

func (d *Domain) Save(destFile string) error

func (*Domain) SaveFlags Uses

func (d *Domain) SaveFlags(destFile string, destXml string, flags DomainSaveRestoreFlags) error

func (*Domain) Screenshot Uses

func (d *Domain) Screenshot(stream *Stream, screen, flags uint32) (string, error)

func (*Domain) SendKey Uses

func (d *Domain) SendKey(codeset, holdtime uint, keycodes []uint, flags uint32) error

func (*Domain) SendProcessSignal Uses

func (d *Domain) SendProcessSignal(pid int64, signum DomainProcessSignal, flags uint32) error

func (*Domain) SetAutostart Uses

func (d *Domain) SetAutostart(autostart bool) error

func (*Domain) SetBlkioParameters Uses

func (d *Domain) SetBlkioParameters(params *DomainBlkioParameters, flags DomainModificationImpact) error

func (*Domain) SetBlockIoTune Uses

func (d *Domain) SetBlockIoTune(disk string, params *DomainBlockIoTuneParameters, flags DomainModificationImpact) error

func (*Domain) SetGuestVcpus Uses

func (d *Domain) SetGuestVcpus(cpus []bool, state bool, flags uint32) error

func (*Domain) SetInterfaceParameters Uses

func (d *Domain) SetInterfaceParameters(device string, params *DomainInterfaceParameters, flags DomainModificationImpact) error

func (*Domain) SetMaxMemory Uses

func (d *Domain) SetMaxMemory(memory uint) error

func (*Domain) SetMemory Uses

func (d *Domain) SetMemory(memory uint64) error

func (*Domain) SetMemoryFlags Uses

func (d *Domain) SetMemoryFlags(memory uint64, flags DomainMemoryModFlags) error

func (*Domain) SetMemoryParameters Uses

func (d *Domain) SetMemoryParameters(params *DomainMemoryParameters, flags DomainModificationImpact) error

func (*Domain) SetMemoryStatsPeriod Uses

func (d *Domain) SetMemoryStatsPeriod(period int, flags DomainMemoryModFlags) error

func (*Domain) SetMetadata Uses

func (d *Domain) SetMetadata(metaDataType DomainMetadataType, metaDataCont, uriKey, uri string, flags DomainModificationImpact) error

func (*Domain) SetNumaParameters Uses

func (d *Domain) SetNumaParameters(params *DomainNumaParameters, flags DomainModificationImpact) error

func (*Domain) SetPerfEvents Uses

func (d *Domain) SetPerfEvents(params *DomainPerfEvents, flags DomainModificationImpact) error

func (*Domain) SetSchedulerParameters Uses

func (d *Domain) SetSchedulerParameters(params *DomainSchedulerParameters) error

func (*Domain) SetSchedulerParametersFlags Uses

func (d *Domain) SetSchedulerParametersFlags(params *DomainSchedulerParameters, flags DomainModificationImpact) error

func (*Domain) SetTime Uses

func (d *Domain) SetTime(secs int64, nsecs uint, flags DomainSetTimeFlags) error

func (*Domain) SetUserPassword Uses

func (d *Domain) SetUserPassword(user string, password string, flags DomainSetUserPasswordFlags) error

func (*Domain) SetVcpu Uses

func (d *Domain) SetVcpu(cpus []bool, state bool, flags uint32) error

func (*Domain) SetVcpus Uses

func (d *Domain) SetVcpus(vcpu uint) error

func (*Domain) SetVcpusFlags Uses

func (d *Domain) SetVcpusFlags(vcpu uint, flags DomainVcpuFlags) error

func (*Domain) Shutdown Uses

func (d *Domain) Shutdown() error

func (*Domain) ShutdownFlags Uses

func (d *Domain) ShutdownFlags(flags DomainShutdownFlags) error

func (*Domain) SnapshotCurrent Uses

func (d *Domain) SnapshotCurrent(flags uint32) (*DomainSnapshot, error)

func (*Domain) SnapshotListNames Uses

func (d *Domain) SnapshotListNames(flags DomainSnapshotListFlags) ([]string, error)

func (*Domain) SnapshotLookupByName Uses

func (d *Domain) SnapshotLookupByName(name string, flags uint32) (*DomainSnapshot, error)

func (*Domain) SnapshotNum Uses

func (d *Domain) SnapshotNum(flags DomainSnapshotListFlags) (int, error)

func (*Domain) Suspend Uses

func (d *Domain) Suspend() error

func (*Domain) Undefine Uses

func (d *Domain) Undefine() error

func (*Domain) UndefineFlags Uses

func (d *Domain) UndefineFlags(flags DomainUndefineFlagsValues) error

func (*Domain) UpdateDeviceFlags Uses

func (d *Domain) UpdateDeviceFlags(xml string, flags DomainDeviceModifyFlags) error

type DomainBlkioParameters Uses

type DomainBlkioParameters struct {
    WeightSet          bool
    Weight             uint
    DeviceWeightSet    bool
    DeviceWeight       string
    DeviceReadIopsSet  bool
    DeviceReadIops     string
    DeviceWriteIopsSet bool
    DeviceWriteIops    string
    DeviceReadBpsSet   bool
    DeviceReadBps      string
    DeviceWriteBpsSet  bool
    DeviceWriteBps     string
}

type DomainBlockCommitFlags Uses

type DomainBlockCommitFlags int

type DomainBlockCopyFlags Uses

type DomainBlockCopyFlags int

type DomainBlockCopyParameters Uses

type DomainBlockCopyParameters struct {
    BandwidthSet   bool
    Bandwidth      uint64
    GranularitySet bool
    Granularity    uint
    BufSizeSet     bool
    BufSize        uint64
}

type DomainBlockInfo Uses

type DomainBlockInfo struct {
    Capacity   uint64
    Allocation uint64
    Physical   uint64
}

type DomainBlockIoTuneParameters Uses

type DomainBlockIoTuneParameters struct {
    TotalBytesSecSet          bool
    TotalBytesSec             uint64
    ReadBytesSecSet           bool
    ReadBytesSec              uint64
    WriteBytesSecSet          bool
    WriteBytesSec             uint64
    TotalIopsSecSet           bool
    TotalIopsSec              uint64
    ReadIopsSecSet            bool
    ReadIopsSec               uint64
    WriteIopsSecSet           bool
    WriteIopsSec              uint64
    TotalBytesSecMaxSet       bool
    TotalBytesSecMax          uint64
    ReadBytesSecMaxSet        bool
    ReadBytesSecMax           uint64
    WriteBytesSecMaxSet       bool
    WriteBytesSecMax          uint64
    TotalIopsSecMaxSet        bool
    TotalIopsSecMax           uint64
    ReadIopsSecMaxSet         bool
    ReadIopsSecMax            uint64
    WriteIopsSecMaxSet        bool
    WriteIopsSecMax           uint64
    TotalBytesSecMaxLengthSet bool
    TotalBytesSecMaxLength    uint64
    ReadBytesSecMaxLengthSet  bool
    ReadBytesSecMaxLength     uint64
    WriteBytesSecMaxLengthSet bool
    WriteBytesSecMaxLength    uint64
    TotalIopsSecMaxLengthSet  bool
    TotalIopsSecMaxLength     uint64
    ReadIopsSecMaxLengthSet   bool
    ReadIopsSecMaxLength      uint64
    WriteIopsSecMaxLengthSet  bool
    WriteIopsSecMaxLength     uint64
    SizeIopsSecSet            bool
    SizeIopsSec               uint64
    GroupNameSet              bool
    GroupName                 string
}

type DomainBlockJobAbortFlags Uses

type DomainBlockJobAbortFlags int

type DomainBlockJobInfo Uses

type DomainBlockJobInfo struct {
    Type      DomainBlockJobType
    Bandwidth uint64
    Cur       uint64
    End       uint64
}

type DomainBlockJobInfoFlags Uses

type DomainBlockJobInfoFlags int

type DomainBlockJobSetSpeedFlags Uses

type DomainBlockJobSetSpeedFlags int

type DomainBlockJobType Uses

type DomainBlockJobType int

type DomainBlockPullFlags Uses

type DomainBlockPullFlags int

type DomainBlockRebaseFlags Uses

type DomainBlockRebaseFlags int

type DomainBlockResizeFlags Uses

type DomainBlockResizeFlags int

type DomainBlockStats Uses

type DomainBlockStats struct {
    RdBytesSet         bool
    RdBytes            int64
    RdReqSet           bool
    RdReq              int64
    RdTotalTimesSet    bool
    RdTotalTimes       int64
    WrBytesSet         bool
    WrBytes            int64
    WrReqSet           bool
    WrReq              int64
    WrTotalTimesSet    bool
    WrTotalTimes       int64
    FlushReqSet        bool
    FlushReq           int64
    FlushTotalTimesSet bool
    FlushTotalTimes    int64
    ErrsSet            bool
    Errs               int64
}

type DomainBlockedReason Uses

type DomainBlockedReason int

type DomainCPUStats Uses

type DomainCPUStats struct {
    CpuTimeSet    bool
    CpuTime       uint64
    UserTimeSet   bool
    UserTime      uint64
    SystemTimeSet bool
    SystemTime    uint64
    VcpuTimeSet   bool
    VcpuTime      uint64
}

type DomainCPUStatsTags Uses

type DomainCPUStatsTags string

type DomainChannelFlags Uses

type DomainChannelFlags int

type DomainConsoleFlags Uses

type DomainConsoleFlags int

type DomainControlErrorReason Uses

type DomainControlErrorReason int

type DomainControlInfo Uses

type DomainControlInfo struct {
    State     DomainControlState
    Details   int
    StateTime uint64
}

type DomainControlState Uses

type DomainControlState int

type DomainCoreDumpFlags Uses

type DomainCoreDumpFlags int

type DomainCoreDumpFormat Uses

type DomainCoreDumpFormat int

type DomainCrashedReason Uses

type DomainCrashedReason int

type DomainCreateFlags Uses

type DomainCreateFlags int

type DomainDefineFlags Uses

type DomainDefineFlags int

type DomainDestroyFlags Uses

type DomainDestroyFlags int

type DomainDeviceModifyFlags Uses

type DomainDeviceModifyFlags int

type DomainDiskError Uses

type DomainDiskError struct {
    Disk  string
    Error DomainDiskErrorCode
}

type DomainDiskErrorCode Uses

type DomainDiskErrorCode int

type DomainEventAgentLifecycle Uses

type DomainEventAgentLifecycle struct {
    State  ConnectDomainEventAgentLifecycleState
    Reason ConnectDomainEventAgentLifecycleReason
}

type DomainEventAgentLifecycleCallback Uses

type DomainEventAgentLifecycleCallback func(c *Connect, d *Domain, event *DomainEventAgentLifecycle)

type DomainEventBalloonChange Uses

type DomainEventBalloonChange struct {
    Actual uint64
}

func (DomainEventBalloonChange) String Uses

func (e DomainEventBalloonChange) String() string

type DomainEventBalloonChangeCallback Uses

type DomainEventBalloonChangeCallback func(c *Connect, d *Domain, event *DomainEventBalloonChange)

type DomainEventBlockJob Uses

type DomainEventBlockJob struct {
    Disk   string
    Type   DomainBlockJobType
    Status ConnectDomainEventBlockJobStatus
}

func (DomainEventBlockJob) String Uses

func (e DomainEventBlockJob) String() string

type DomainEventBlockJobCallback Uses

type DomainEventBlockJobCallback func(c *Connect, d *Domain, event *DomainEventBlockJob)

type DomainEventCrashedDetailType Uses

type DomainEventCrashedDetailType int

type DomainEventDefinedDetailType Uses

type DomainEventDefinedDetailType int

type DomainEventDeviceAdded Uses

type DomainEventDeviceAdded struct {
    DevAlias string
}

type DomainEventDeviceAddedCallback Uses

type DomainEventDeviceAddedCallback func(c *Connect, d *Domain, event *DomainEventDeviceAdded)

type DomainEventDeviceRemovalFailed Uses

type DomainEventDeviceRemovalFailed struct {
    DevAlias string
}

type DomainEventDeviceRemovalFailedCallback Uses

type DomainEventDeviceRemovalFailedCallback func(c *Connect, d *Domain, event *DomainEventDeviceRemovalFailed)

type DomainEventDeviceRemoved Uses

type DomainEventDeviceRemoved struct {
    DevAlias string
}

func (DomainEventDeviceRemoved) String Uses

func (e DomainEventDeviceRemoved) String() string

type DomainEventDeviceRemovedCallback Uses

type DomainEventDeviceRemovedCallback func(c *Connect, d *Domain, event *DomainEventDeviceRemoved)

type DomainEventDiskChange Uses

type DomainEventDiskChange struct {
    OldSrcPath string
    NewSrcPath string
    DevAlias   string
    Reason     ConnectDomainEventDiskChangeReason
}

func (DomainEventDiskChange) String Uses

func (e DomainEventDiskChange) String() string

type DomainEventDiskChangeCallback Uses

type DomainEventDiskChangeCallback func(c *Connect, d *Domain, event *DomainEventDiskChange)

type DomainEventGenericCallback Uses

type DomainEventGenericCallback func(c *Connect, d *Domain)

type DomainEventGraphics Uses

type DomainEventGraphics struct {
    Phase      DomainEventGraphicsPhase
    Local      DomainEventGraphicsAddress
    Remote     DomainEventGraphicsAddress
    AuthScheme string
    Subject    []DomainEventGraphicsSubjectIdentity
}

func (DomainEventGraphics) String Uses

func (e DomainEventGraphics) String() string

type DomainEventGraphicsAddress Uses

type DomainEventGraphicsAddress struct {
    Family  DomainEventGraphicsAddressType
    Node    string
    Service string
}

type DomainEventGraphicsAddressType Uses

type DomainEventGraphicsAddressType int

type DomainEventGraphicsCallback Uses

type DomainEventGraphicsCallback func(c *Connect, d *Domain, event *DomainEventGraphics)

type DomainEventGraphicsPhase Uses

type DomainEventGraphicsPhase int

type DomainEventGraphicsSubjectIdentity Uses

type DomainEventGraphicsSubjectIdentity struct {
    Type string
    Name string
}

type DomainEventIOError Uses

type DomainEventIOError struct {
    SrcPath  string
    DevAlias string
    Action   DomainEventIOErrorAction
}

func (DomainEventIOError) String Uses

func (e DomainEventIOError) String() string

type DomainEventIOErrorAction Uses

type DomainEventIOErrorAction int

type DomainEventIOErrorCallback Uses

type DomainEventIOErrorCallback func(c *Connect, d *Domain, event *DomainEventIOError)

type DomainEventIOErrorReason Uses

type DomainEventIOErrorReason struct {
    SrcPath  string
    DevAlias string
    Action   DomainEventIOErrorAction
    Reason   string
}

func (DomainEventIOErrorReason) String Uses

func (e DomainEventIOErrorReason) String() string

type DomainEventIOErrorReasonCallback Uses

type DomainEventIOErrorReasonCallback func(c *Connect, d *Domain, event *DomainEventIOErrorReason)

type DomainEventJobCompleted Uses

type DomainEventJobCompleted struct {
    Info DomainJobInfo
}

type DomainEventJobCompletedCallback Uses

type DomainEventJobCompletedCallback func(c *Connect, d *Domain, event *DomainEventJobCompleted)

type DomainEventLifecycle Uses

type DomainEventLifecycle struct {
    Event DomainEventType
    // TODO: we can make Detail typesafe somehow ?
    Detail int
}

func (DomainEventLifecycle) String Uses

func (e DomainEventLifecycle) String() string

type DomainEventLifecycleCallback Uses

type DomainEventLifecycleCallback func(c *Connect, d *Domain, event *DomainEventLifecycle)

type DomainEventMetadataChange Uses

type DomainEventMetadataChange struct {
    Type  int
    NSURI string
}

type DomainEventMetadataChangeCallback Uses

type DomainEventMetadataChangeCallback func(c *Connect, d *Domain, event *DomainEventMetadataChange)

type DomainEventMigrationIteration Uses

type DomainEventMigrationIteration struct {
    Iteration int
}

type DomainEventMigrationIterationCallback Uses

type DomainEventMigrationIterationCallback func(c *Connect, d *Domain, event *DomainEventMigrationIteration)

type DomainEventPMSuspend Uses

type DomainEventPMSuspend struct {
    Reason int
}

type DomainEventPMSuspendCallback Uses

type DomainEventPMSuspendCallback func(c *Connect, d *Domain, event *DomainEventPMSuspend)

type DomainEventPMSuspendDisk Uses

type DomainEventPMSuspendDisk struct {
    Reason int
}

type DomainEventPMSuspendDiskCallback Uses

type DomainEventPMSuspendDiskCallback func(c *Connect, d *Domain, event *DomainEventPMSuspendDisk)

type DomainEventPMSuspendedDetailType Uses

type DomainEventPMSuspendedDetailType int

type DomainEventPMWakeup Uses

type DomainEventPMWakeup struct {
    Reason int
}

type DomainEventPMWakeupCallback Uses

type DomainEventPMWakeupCallback func(c *Connect, d *Domain, event *DomainEventPMWakeup)

type DomainEventRTCChange Uses

type DomainEventRTCChange struct {
    Utcoffset int64
}

func (DomainEventRTCChange) String Uses

func (e DomainEventRTCChange) String() string

type DomainEventRTCChangeCallback Uses

type DomainEventRTCChangeCallback func(c *Connect, d *Domain, event *DomainEventRTCChange)

type DomainEventResumedDetailType Uses

type DomainEventResumedDetailType int

type DomainEventShutdownDetailType Uses

type DomainEventShutdownDetailType int

type DomainEventStartedDetailType Uses

type DomainEventStartedDetailType int

type DomainEventStoppedDetailType Uses

type DomainEventStoppedDetailType int

type DomainEventSuspendedDetailType Uses

type DomainEventSuspendedDetailType int

type DomainEventTrayChange Uses

type DomainEventTrayChange struct {
    DevAlias string
    Reason   ConnectDomainEventTrayChangeReason
}

func (DomainEventTrayChange) String Uses

func (e DomainEventTrayChange) String() string

type DomainEventTrayChangeCallback Uses

type DomainEventTrayChangeCallback func(c *Connect, d *Domain, event *DomainEventTrayChange)

type DomainEventTunable Uses

type DomainEventTunable struct {
    CpuSched      *DomainSchedulerParameters
    CpuPin        *DomainEventTunableCpuPin
    BlkdevDiskSet bool
    BlkdevDisk    string
    BlkdevTune    *DomainBlockIoTuneParameters
}

type DomainEventTunableCallback Uses

type DomainEventTunableCallback func(c *Connect, d *Domain, event *DomainEventTunable)

type DomainEventTunableCpuPin Uses

type DomainEventTunableCpuPin struct {
    VcpuPinSet     bool
    VcpuPin        [][]bool
    EmulatorPinSet bool
    EmulatorPin    []bool
    IOThreadPinSet bool
    IOThreadPin    [][]bool
}

type DomainEventType Uses

type DomainEventType int

type DomainEventUndefinedDetailType Uses

type DomainEventUndefinedDetailType int

type DomainEventWatchdog Uses

type DomainEventWatchdog struct {
    Action DomainEventWatchdogAction
}

func (DomainEventWatchdog) String Uses

func (e DomainEventWatchdog) String() string

type DomainEventWatchdogAction Uses

type DomainEventWatchdogAction int

type DomainEventWatchdogCallback Uses

type DomainEventWatchdogCallback func(c *Connect, d *Domain, event *DomainEventWatchdog)

type DomainFSInfo Uses

type DomainFSInfo struct {
    MountPoint string
    Name       string
    FSType     string
    DevAlias   []string
}

type DomainGetJobStatsFlags Uses

type DomainGetJobStatsFlags int

type DomainGuestVcpus Uses

type DomainGuestVcpus struct {
    Vcpus      []bool
    Online     []bool
    Offlinable []bool
}

type DomainIOThreadInfo Uses

type DomainIOThreadInfo struct {
    IOThreadID uint
    CpuMap     []bool
}

type DomainIPAddress Uses

type DomainIPAddress struct {
    Type   int
    Addr   string
    Prefix uint
}

type DomainInfo Uses

type DomainInfo struct {
    State     DomainState
    MaxMem    uint64
    Memory    uint64
    NrVirtCpu uint
    CpuTime   uint64
}

type DomainInterface Uses

type DomainInterface struct {
    Name   string
    Hwaddr string
    Addrs  []DomainIPAddress
}

type DomainInterfaceAddressesSource Uses

type DomainInterfaceAddressesSource int

type DomainInterfaceParameters Uses

type DomainInterfaceParameters struct {
    BandwidthInAverageSet  bool
    BandwidthInAverage     uint
    BandwidthInPeakSet     bool
    BandwidthInPeak        uint
    BandwidthInBurstSet    bool
    BandwidthInBurst       uint
    BandwidthInFloorSet    bool
    BandwidthInFloor       uint
    BandwidthOutAverageSet bool
    BandwidthOutAverage    uint
    BandwidthOutPeakSet    bool
    BandwidthOutPeak       uint
    BandwidthOutBurstSet   bool
    BandwidthOutBurst      uint
}

type DomainInterfaceStats Uses

type DomainInterfaceStats struct {
    RxBytesSet   bool
    RxBytes      int64
    RxPacketsSet bool
    RxPackets    int64
    RxErrsSet    bool
    RxErrs       int64
    RxDropSet    bool
    RxDrop       int64
    TxBytesSet   bool
    TxBytes      int64
    TxPacketsSet bool
    TxPackets    int64
    TxErrsSet    bool
    TxErrs       int64
    TxDropSet    bool
    TxDrop       int64
}

type DomainJobInfo Uses

type DomainJobInfo struct {
    Type                      DomainJobType
    TimeElapsedSet            bool
    TimeElapsed               uint64
    TimeElapsedNetSet         bool
    TimeElapsedNet            uint64
    TimeRemainingSet          bool
    TimeRemaining             uint64
    DowntimeSet               bool
    Downtime                  uint64
    DowntimeNetSet            bool
    DowntimeNet               uint64
    SetupTimeSet              bool
    SetupTime                 uint64
    DataTotalSet              bool
    DataTotal                 uint64
    DataProcessedSet          bool
    DataProcessed             uint64
    DataRemainingSet          bool
    DataRemaining             uint64
    MemTotalSet               bool
    MemTotal                  uint64
    MemProcessedSet           bool
    MemProcessed              uint64
    MemRemainingSet           bool
    MemRemaining              uint64
    MemConstantSet            bool
    MemConstant               uint64
    MemNormalSet              bool
    MemNormal                 uint64
    MemNormalBytesSet         bool
    MemNormalBytes            uint64
    MemBpsSet                 bool
    MemBps                    uint64
    MemDirtyRateSet           bool
    MemDirtyRate              uint64
    MemIterationSet           bool
    MemIteration              uint64
    DiskTotalSet              bool
    DiskTotal                 uint64
    DiskProcessedSet          bool
    DiskProcessed             uint64
    DiskRemainingSet          bool
    DiskRemaining             uint64
    DiskBpsSet                bool
    DiskBps                   uint64
    CompressionCacheSet       bool
    CompressionCache          uint64
    CompressionBytesSet       bool
    CompressionBytes          uint64
    CompressionPagesSet       bool
    CompressionPages          uint64
    CompressionCacheMissesSet bool
    CompressionCacheMisses    uint64
    CompressionOverflowSet    bool
    CompressionOverflow       uint64
    AutoConvergeThrottleSet   bool
    AutoConvergeThrottle      int
}

type DomainJobType Uses

type DomainJobType int

type DomainMemoryFlags Uses

type DomainMemoryFlags int

type DomainMemoryModFlags Uses

type DomainMemoryModFlags int

type DomainMemoryParameters Uses

type DomainMemoryParameters struct {
    HardLimitSet     bool
    HardLimit        uint64
    SoftLimitSet     bool
    SoftLimit        uint64
    MinGuaranteeSet  bool
    MinGuarantee     uint64
    SwapHardLimitSet bool
    SwapHardLimit    uint64
}

type DomainMemoryStat Uses

type DomainMemoryStat struct {
    Tag int32
    Val uint64
}

type DomainMemoryStatTags Uses

type DomainMemoryStatTags int

type DomainMetadataType Uses

type DomainMetadataType int

type DomainMigrateFlags Uses

type DomainMigrateFlags int

type DomainMigrateParameters Uses

type DomainMigrateParameters struct {
    URISet                    bool
    URI                       string
    DestNameSet               bool
    DestName                  string
    DestXMLSet                bool
    DestXML                   string
    PersistXMLSet             bool
    PersistXML                string
    BandwidthSet              bool
    Bandwidth                 uint64
    GraphicsURISet            bool
    GraphicsURI               string
    ListenAddressSet          bool
    ListenAddress             string
    MigrateDisksSet           bool
    MigrateDisks              []string
    DisksPortSet              bool
    DisksPort                 int
    CompressionSet            bool
    Compression               string
    CompressionMTLevelSet     bool
    CompressionMTLevel        int
    CompressionMTThreadsSet   bool
    CompressionMTThreads      int
    CompressionMTDThreadsSet  bool
    CompressionMTDThreads     int
    CompressionXBZRLECacheSet bool
    CompressionXBZRLECache    uint64
    AutoConvergeInitialSet    bool
    AutoConvergeInitial       int
    AutoConvergeIncrementSet  bool
    AutoConvergeIncrement     int
}

type DomainModificationImpact Uses

type DomainModificationImpact int

type DomainNostateReason Uses

type DomainNostateReason int

type DomainNumaParameters Uses

type DomainNumaParameters struct {
    NodesetSet bool
    Nodeset    string
    ModeSet    bool
    Mode       DomainNumatuneMemMode
}

type DomainNumatuneMemMode Uses

type DomainNumatuneMemMode int

type DomainOpenGraphicsFlags Uses

type DomainOpenGraphicsFlags int

type DomainPMSuspendedDiskReason Uses

type DomainPMSuspendedDiskReason int

type DomainPMSuspendedReason Uses

type DomainPMSuspendedReason int

type DomainPausedReason Uses

type DomainPausedReason int

type DomainPerfEvents Uses

type DomainPerfEvents struct {
    CmtSet                   bool
    Cmt                      bool
    MbmtSet                  bool
    Mbmt                     bool
    MbmlSet                  bool
    Mbml                     bool
    CacheMissesSet           bool
    CacheMisses              bool
    CacheReferencesSet       bool
    CacheReferences          bool
    InstructionsSet          bool
    Instructions             bool
    CpuCyclesSet             bool
    CpuCycles                bool
    BranchInstructionsSet    bool
    BranchInstructions       bool
    BranchMissesSet          bool
    BranchMisses             bool
    BusCyclesSet             bool
    BusCycles                bool
    StalledCyclesFrontendSet bool
    StalledCyclesFrontend    bool
    StalledCyclesBackendSet  bool
    StalledCyclesBackend     bool
    RefCpuCyclesSet          bool
    RefCpuCycles             bool
}

type DomainProcessSignal Uses

type DomainProcessSignal int

type DomainQemuMonitorCommandFlags Uses

type DomainQemuMonitorCommandFlags int

type DomainRebootFlagValues Uses

type DomainRebootFlagValues int

type DomainRunningReason Uses

type DomainRunningReason int

type DomainSaveRestoreFlags Uses

type DomainSaveRestoreFlags int

type DomainSchedulerParameters Uses

type DomainSchedulerParameters struct {
    Type              string
    CpuSharesSet      bool
    CpuShares         uint64
    GlobalPeriodSet   bool
    GlobalPeriod      uint64
    GlobalQuotaSet    bool
    GlobalQuota       uint64
    VcpuPeriodSet     bool
    VcpuPeriod        uint64
    VcpuQuotaSet      bool
    VcpuQuota         uint64
    EmulatorPeriodSet bool
    EmulatorPeriod    uint64
    EmulatorQuotaSet  bool
    EmulatorQuota     uint64
    IothreadPeriodSet bool
    IothreadPeriod    uint64
    IothreadQuotaSet  bool
    IothreadQuota     uint64
    WeightSet         bool
    Weight            uint
    CapSet            bool
    Cap               uint
    ReservationSet    bool
    Reservation       int64
    LimitSet          bool
    Limit             int64
    SharesSet         bool
    Shares            int
}

type DomainSetTimeFlags Uses

type DomainSetTimeFlags int

type DomainSetUserPasswordFlags Uses

type DomainSetUserPasswordFlags int

type DomainShutdownFlags Uses

type DomainShutdownFlags int

type DomainShutdownReason Uses

type DomainShutdownReason int

type DomainShutoffReason Uses

type DomainShutoffReason int

type DomainSnapshot Uses

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

func (*DomainSnapshot) Delete Uses

func (s *DomainSnapshot) Delete(flags DomainSnapshotDeleteFlags) error

func (*DomainSnapshot) Free Uses

func (s *DomainSnapshot) Free() error

func (*DomainSnapshot) GetName Uses

func (s *DomainSnapshot) GetName() (string, error)

func (*DomainSnapshot) GetParent Uses

func (s *DomainSnapshot) GetParent(flags uint32) (*DomainSnapshot, error)

func (*DomainSnapshot) GetXMLDesc Uses

func (s *DomainSnapshot) GetXMLDesc(flags DomainXMLFlags) (string, error)

func (*DomainSnapshot) HasMetadata Uses

func (s *DomainSnapshot) HasMetadata(flags uint32) (bool, error)

func (*DomainSnapshot) IsCurrent Uses

func (s *DomainSnapshot) IsCurrent(flags uint32) (bool, error)

func (*DomainSnapshot) ListAllChildren Uses

func (d *DomainSnapshot) ListAllChildren(flags DomainSnapshotListFlags) ([]DomainSnapshot, error)

func (*DomainSnapshot) ListChildrenNames Uses

func (s *DomainSnapshot) ListChildrenNames(flags DomainSnapshotListFlags) ([]string, error)

func (*DomainSnapshot) NumChildren Uses

func (s *DomainSnapshot) NumChildren(flags DomainSnapshotListFlags) (int, error)

func (*DomainSnapshot) Ref Uses

func (c *DomainSnapshot) Ref() error

func (*DomainSnapshot) RevertToSnapshot Uses

func (s *DomainSnapshot) RevertToSnapshot(flags DomainSnapshotRevertFlags) error

type DomainSnapshotCreateFlags Uses

type DomainSnapshotCreateFlags int

type DomainSnapshotDeleteFlags Uses

type DomainSnapshotDeleteFlags int

type DomainSnapshotListFlags Uses

type DomainSnapshotListFlags int

type DomainSnapshotRevertFlags Uses

type DomainSnapshotRevertFlags int

type DomainState Uses

type DomainState int

type DomainStats Uses

type DomainStats struct {
    Domain  *Domain
    State   *DomainStatsState
    Cpu     *DomainStatsCPU
    Balloon *DomainStatsBalloon
    Vcpu    []DomainStatsVcpu
    Net     []DomainStatsNet
    Block   []DomainStatsBlock
    Perf    *DomainStatsPerf
}

type DomainStatsBalloon Uses

type DomainStatsBalloon struct {
    CurrentSet bool
    Current    uint64
    MaximumSet bool
    Maximum    uint64
}

type DomainStatsBlock Uses

type DomainStatsBlock struct {
    NameSet         bool
    Name            string
    BackingIndexSet bool
    BackingIndex    uint
    PathSet         bool
    Path            string
    RdReqsSet       bool
    RdReqs          uint64
    RdBytesSet      bool
    RdBytes         uint64
    RdTimesSet      bool
    RdTimes         uint64
    WrReqsSet       bool
    WrReqs          uint64
    WrBytesSet      bool
    WrBytes         uint64
    WrTimesSet      bool
    WrTimes         uint64
    FlReqsSet       bool
    FlReqs          uint64
    FlTimesSet      bool
    FlTimes         uint64
    ErrorsSet       bool
    Errors          uint64
    AllocationSet   bool
    Allocation      uint64
    CapacitySet     bool
    Capacity        uint64
    PhysicalSet     bool
    Physical        uint64
}

type DomainStatsCPU Uses

type DomainStatsCPU struct {
    TimeSet   bool
    Time      uint64
    UserSet   bool
    User      uint64
    SystemSet bool
    System    uint64
}

type DomainStatsNet Uses

type DomainStatsNet struct {
    NameSet    bool
    Name       string
    RxBytesSet bool
    RxBytes    uint64
    RxPktsSet  bool
    RxPkts     uint64
    RxErrsSet  bool
    RxErrs     uint64
    RxDropSet  bool
    RxDrop     uint64
    TxBytesSet bool
    TxBytes    uint64
    TxPktsSet  bool
    TxPkts     uint64
    TxErrsSet  bool
    TxErrs     uint64
    TxDropSet  bool
    TxDrop     uint64
}

type DomainStatsPerf Uses

type DomainStatsPerf struct {
    CmtSet                   bool
    Cmt                      uint64
    MbmtSet                  bool
    Mbmt                     uint64
    MbmlSet                  bool
    Mbml                     uint64
    CacheMissesSet           bool
    CacheMisses              uint64
    CacheReferencesSet       bool
    CacheReferences          uint64
    InstructionsSet          bool
    Instructions             uint64
    CpuCyclesSet             bool
    CpuCycles                uint64
    BranchInstructionsSet    bool
    BranchInstructions       uint64
    BranchMissesSet          bool
    BranchMisses             uint64
    BusCyclesSet             bool
    BusCycles                uint64
    StalledCyclesFrontendSet bool
    StalledCyclesFrontend    uint64
    StalledCyclesBackendSet  bool
    StalledCyclesBackend     uint64
    RefCpuCyclesSet          bool
    RefCpuCycles             uint64
}

type DomainStatsState Uses

type DomainStatsState struct {
    StateSet  bool
    State     DomainState
    ReasonSet bool
    Reason    int
}

type DomainStatsTypes Uses

type DomainStatsTypes int

type DomainStatsVcpu Uses

type DomainStatsVcpu struct {
    StateSet bool
    State    VcpuState
    TimeSet  bool
    Time     uint64
}

type DomainUndefineFlagsValues Uses

type DomainUndefineFlagsValues int

type DomainVcpuFlags Uses

type DomainVcpuFlags int

type DomainVcpuInfo Uses

type DomainVcpuInfo struct {
    Number  uint32
    State   int32
    CpuTime uint64
    Cpu     int32
    CpuMap  []bool
}

type DomainXMLFlags Uses

type DomainXMLFlags int

type Error Uses

type Error struct {
    Code    ErrorNumber
    Domain  ErrorDomain
    Message string
    Level   ErrorLevel
}

func GetLastError Uses

func GetLastError() Error

func GetNotImplementedError Uses

func GetNotImplementedError() Error

func (Error) Error Uses

func (err Error) Error() string

type ErrorDomain Uses

type ErrorDomain int

type ErrorLevel Uses

type ErrorLevel int

type ErrorNumber Uses

type ErrorNumber int

type EventHandleCallback Uses

type EventHandleCallback func(watch int, file int, events EventHandleType)

type EventHandleCallbackInfo Uses

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

func (*EventHandleCallbackInfo) Free Uses

func (i *EventHandleCallbackInfo) Free()

func (*EventHandleCallbackInfo) Invoke Uses

func (i *EventHandleCallbackInfo) Invoke(watch int, fd int, event EventHandleType)

type EventHandleType Uses

type EventHandleType int

type EventLoop Uses

type EventLoop interface {
    AddHandleFunc(fd int, event EventHandleType, callback *EventHandleCallbackInfo) int
    UpdateHandleFunc(watch int, event EventHandleType)
    RemoveHandleFunc(watch int) int
    AddTimeoutFunc(freq int, callback *EventTimeoutCallbackInfo) int
    UpdateTimeoutFunc(timer int, freq int)
    RemoveTimeoutFunc(timer int) int
}

type EventTimeoutCallback Uses

type EventTimeoutCallback func(timer int)

type EventTimeoutCallbackInfo Uses

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

func (*EventTimeoutCallbackInfo) Free Uses

func (i *EventTimeoutCallbackInfo) Free()

func (*EventTimeoutCallbackInfo) Invoke Uses

func (i *EventTimeoutCallbackInfo) Invoke(timer int)

type IPAddrType Uses

type IPAddrType int

type Interface Uses

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

func (*Interface) Create Uses

func (n *Interface) Create(flags uint32) error

func (*Interface) Destroy Uses

func (n *Interface) Destroy(flags uint32) error

func (*Interface) Free Uses

func (n *Interface) Free() error

func (*Interface) GetMACString Uses

func (n *Interface) GetMACString() (string, error)

func (*Interface) GetName Uses

func (n *Interface) GetName() (string, error)

func (*Interface) GetXMLDesc Uses

func (n *Interface) GetXMLDesc(flags InterfaceXMLFlags) (string, error)

func (*Interface) IsActive Uses

func (n *Interface) IsActive() (bool, error)

func (*Interface) Ref Uses

func (c *Interface) Ref() error

func (*Interface) Undefine Uses

func (n *Interface) Undefine() error

type InterfaceXMLFlags Uses

type InterfaceXMLFlags int

type KeycodeSet Uses

type KeycodeSet int

type NWFilter Uses

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

func (*NWFilter) Free Uses

func (f *NWFilter) Free() error

func (*NWFilter) GetName Uses

func (f *NWFilter) GetName() (string, error)

func (*NWFilter) GetUUID Uses

func (f *NWFilter) GetUUID() ([]byte, error)

func (*NWFilter) GetUUIDString Uses

func (f *NWFilter) GetUUIDString() (string, error)

func (*NWFilter) GetXMLDesc Uses

func (f *NWFilter) GetXMLDesc(flags uint32) (string, error)

func (*NWFilter) Ref Uses

func (c *NWFilter) Ref() error

func (*NWFilter) Undefine Uses

func (f *NWFilter) Undefine() error

type Network Uses

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

func (*Network) Create Uses

func (n *Network) Create() error

func (*Network) Destroy Uses

func (n *Network) Destroy() error

func (*Network) Free Uses

func (n *Network) Free() error

func (*Network) GetAutostart Uses

func (n *Network) GetAutostart() (bool, error)

func (*Network) GetBridgeName Uses

func (n *Network) GetBridgeName() (string, error)

func (*Network) GetDHCPLeases Uses

func (n *Network) GetDHCPLeases() ([]NetworkDHCPLease, error)

func (*Network) GetName Uses

func (n *Network) GetName() (string, error)

func (*Network) GetUUID Uses

func (n *Network) GetUUID() ([]byte, error)

func (*Network) GetUUIDString Uses

func (n *Network) GetUUIDString() (string, error)

func (*Network) GetXMLDesc Uses

func (n *Network) GetXMLDesc(flags NetworkXMLFlags) (string, error)

func (*Network) IsActive Uses

func (n *Network) IsActive() (bool, error)

func (*Network) IsPersistent Uses

func (n *Network) IsPersistent() (bool, error)

func (*Network) Ref Uses

func (c *Network) Ref() error

func (*Network) SetAutostart Uses

func (n *Network) SetAutostart(autostart bool) error

func (*Network) Undefine Uses

func (n *Network) Undefine() error

func (*Network) Update Uses

func (n *Network) Update(cmd NetworkUpdateCommand, section NetworkUpdateSection, parentIndex int, xml string, flags NetworkUpdateFlags) error

type NetworkDHCPLease Uses

type NetworkDHCPLease struct {
    Iface      string
    ExpiryTime time.Time
    Type       IPAddrType
    Mac        string
    Iaid       string
    IPaddr     string
    Prefix     uint
    Hostname   string
    Clientid   string
}

type NetworkEventID Uses

type NetworkEventID int

type NetworkEventLifecycle Uses

type NetworkEventLifecycle struct {
    Event NetworkEventLifecycleType
    // TODO: we can make Detail typesafe somehow ?
    Detail int
}

func (NetworkEventLifecycle) String Uses

func (e NetworkEventLifecycle) String() string

type NetworkEventLifecycleCallback Uses

type NetworkEventLifecycleCallback func(c *Connect, n *Network, event *NetworkEventLifecycle)

type NetworkEventLifecycleType Uses

type NetworkEventLifecycleType int

type NetworkUpdateCommand Uses

type NetworkUpdateCommand int

type NetworkUpdateFlags Uses

type NetworkUpdateFlags int

type NetworkUpdateSection Uses

type NetworkUpdateSection int

type NetworkXMLFlags Uses

type NetworkXMLFlags int

type NodeAllocPagesFlags Uses

type NodeAllocPagesFlags int

type NodeCPUStats Uses

type NodeCPUStats struct {
    KernelSet      bool
    Kernel         uint64
    UserSet        bool
    User           uint64
    IdleSet        bool
    Idle           uint64
    IowaitSet      bool
    Iowait         uint64
    IntrSet        bool
    Intr           uint64
    UtilizationSet bool
    Utilization    uint64
}

type NodeDevice Uses

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

func (*NodeDevice) Destroy Uses

func (n *NodeDevice) Destroy() error

func (*NodeDevice) Detach Uses

func (n *NodeDevice) Detach() error

func (*NodeDevice) DetachFlags Uses

func (n *NodeDevice) DetachFlags(driverName string, flags uint32) error

func (*NodeDevice) Free Uses

func (n *NodeDevice) Free() error

func (*NodeDevice) GetName Uses

func (n *NodeDevice) GetName() (string, error)

func (*NodeDevice) GetParent Uses

func (n *NodeDevice) GetParent() (string, error)

func (*NodeDevice) GetXMLDesc Uses

func (n *NodeDevice) GetXMLDesc(flags uint32) (string, error)

func (*NodeDevice) ListStorageCaps Uses

func (p *NodeDevice) ListStorageCaps() ([]string, error)

func (*NodeDevice) NumOfStorageCaps Uses

func (p *NodeDevice) NumOfStorageCaps() (int, error)

func (*NodeDevice) ReAttach Uses

func (n *NodeDevice) ReAttach() error

func (*NodeDevice) Ref Uses

func (c *NodeDevice) Ref() error

func (*NodeDevice) Reset Uses

func (n *NodeDevice) Reset() error

type NodeDeviceEventGenericCallback Uses

type NodeDeviceEventGenericCallback func(c *Connect, d *NodeDevice)

type NodeDeviceEventID Uses

type NodeDeviceEventID int

type NodeDeviceEventLifecycle Uses

type NodeDeviceEventLifecycle struct {
    Event NodeDeviceEventLifecycleType
    // TODO: we can make Detail typesafe somehow ?
    Detail int
}

func (NodeDeviceEventLifecycle) String Uses

func (e NodeDeviceEventLifecycle) String() string

type NodeDeviceEventLifecycleCallback Uses

type NodeDeviceEventLifecycleCallback func(c *Connect, n *NodeDevice, event *NodeDeviceEventLifecycle)

type NodeDeviceEventLifecycleType Uses

type NodeDeviceEventLifecycleType int

type NodeGetCPUStatsAllCPUs Uses

type NodeGetCPUStatsAllCPUs int

type NodeInfo Uses

type NodeInfo struct {
    Model   string
    Memory  uint64
    Cpus    uint
    MHz     uint
    Nodes   uint32
    Sockets uint32
    Cores   uint32
    Threads uint32
}

func (*NodeInfo) GetMaxCPUs Uses

func (ni *NodeInfo) GetMaxCPUs() uint32

type NodeMemoryParameters Uses

type NodeMemoryParameters struct {
    ShmPagesToScanSet      bool
    ShmPagesToScan         uint
    ShmSleepMillisecsSet   bool
    ShmSleepMillisecs      uint
    ShmPagesSharedSet      bool
    ShmPagesShared         uint64
    ShmPagesSharingSet     bool
    ShmPagesSharing        uint64
    ShmPagesUnsharedSet    bool
    ShmPagesUnshared       uint64
    ShmPagesVolatileSet    bool
    ShmPagesVolatile       uint64
    ShmFullScansSet        bool
    ShmFullScans           uint64
    ShmMergeAcrossNodesSet bool
    ShmMergeAcrossNodes    uint
}

type NodeMemoryStats Uses

type NodeMemoryStats struct {
    TotalSet   bool
    Total      uint64
    FreeSet    bool
    Free       uint64
    BuffersSet bool
    Buffers    uint64
    CachedSet  bool
    Cached     uint64
}

type NodeSecurityModel Uses

type NodeSecurityModel struct {
    Model string
    Doi   string
}

type NodeSuspendTarget Uses

type NodeSuspendTarget int

type Secret Uses

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

func (*Secret) Free Uses

func (s *Secret) Free() error

func (*Secret) GetUUID Uses

func (s *Secret) GetUUID() ([]byte, error)

func (*Secret) GetUUIDString Uses

func (s *Secret) GetUUIDString() (string, error)

func (*Secret) GetUsageID Uses

func (s *Secret) GetUsageID() (string, error)

func (*Secret) GetUsageType Uses

func (s *Secret) GetUsageType() (SecretUsageType, error)

func (*Secret) GetValue Uses

func (s *Secret) GetValue(flags uint32) ([]byte, error)

func (*Secret) GetXMLDesc Uses

func (s *Secret) GetXMLDesc(flags uint32) (string, error)

func (*Secret) Ref Uses

func (c *Secret) Ref() error

func (*Secret) SetValue Uses

func (s *Secret) SetValue(value []byte, flags uint32) error

func (*Secret) Undefine Uses

func (s *Secret) Undefine() error

type SecretEventGenericCallback Uses

type SecretEventGenericCallback func(c *Connect, n *Secret)

type SecretEventID Uses

type SecretEventID int

type SecretEventLifecycle Uses

type SecretEventLifecycle struct {
    Event SecretEventLifecycleType
    // TODO: we can make Detail typesafe somehow ?
    Detail int
}

func (SecretEventLifecycle) String Uses

func (e SecretEventLifecycle) String() string

type SecretEventLifecycleCallback Uses

type SecretEventLifecycleCallback func(c *Connect, n *Secret, event *SecretEventLifecycle)

type SecretEventLifecycleType Uses

type SecretEventLifecycleType int

type SecretUsageType Uses

type SecretUsageType int

type SecurityLabel Uses

type SecurityLabel struct {
    Label     string
    Enforcing bool
}

type StoragePool Uses

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

func (*StoragePool) Build Uses

func (p *StoragePool) Build(flags StoragePoolBuildFlags) error

func (*StoragePool) Create Uses

func (p *StoragePool) Create(flags StoragePoolCreateFlags) error

func (*StoragePool) Delete Uses

func (p *StoragePool) Delete(flags StoragePoolDeleteFlags) error

func (*StoragePool) Destroy Uses

func (p *StoragePool) Destroy() error

func (*StoragePool) Free Uses

func (p *StoragePool) Free() error

func (*StoragePool) GetAutostart Uses

func (p *StoragePool) GetAutostart() (bool, error)

func (*StoragePool) GetInfo Uses

func (p *StoragePool) GetInfo() (*StoragePoolInfo, error)

func (*StoragePool) GetName Uses

func (p *StoragePool) GetName() (string, error)

func (*StoragePool) GetUUID Uses

func (p *StoragePool) GetUUID() ([]byte, error)

func (*StoragePool) GetUUIDString Uses

func (p *StoragePool) GetUUIDString() (string, error)

func (*StoragePool) GetXMLDesc Uses

func (p *StoragePool) GetXMLDesc(flags StorageXMLFlags) (string, error)

func (*StoragePool) IsActive Uses

func (p *StoragePool) IsActive() (bool, error)

func (*StoragePool) IsPersistent Uses

func (p *StoragePool) IsPersistent() (bool, error)

func (*StoragePool) ListAllStorageVolumes Uses

func (p *StoragePool) ListAllStorageVolumes(flags uint32) ([]StorageVol, error)

func (*StoragePool) ListStorageVolumes Uses

func (p *StoragePool) ListStorageVolumes() ([]string, error)

func (*StoragePool) LookupStorageVolByName Uses

func (p *StoragePool) LookupStorageVolByName(name string) (*StorageVol, error)

func (*StoragePool) NumOfStorageVolumes Uses

func (p *StoragePool) NumOfStorageVolumes() (int, error)

func (*StoragePool) Ref Uses

func (c *StoragePool) Ref() error

func (*StoragePool) Refresh Uses

func (p *StoragePool) Refresh(flags uint32) error

func (*StoragePool) SetAutostart Uses

func (p *StoragePool) SetAutostart(autostart bool) error

func (*StoragePool) StorageVolCreateXML Uses

func (p *StoragePool) StorageVolCreateXML(xmlConfig string, flags StorageVolCreateFlags) (*StorageVol, error)

func (*StoragePool) StorageVolCreateXMLFrom Uses

func (p *StoragePool) StorageVolCreateXMLFrom(xmlConfig string, clonevol *StorageVol, flags StorageVolCreateFlags) (*StorageVol, error)

func (*StoragePool) Undefine Uses

func (p *StoragePool) Undefine() error

type StoragePoolBuildFlags Uses

type StoragePoolBuildFlags int

type StoragePoolCreateFlags Uses

type StoragePoolCreateFlags int

type StoragePoolDeleteFlags Uses

type StoragePoolDeleteFlags int

type StoragePoolEventGenericCallback Uses

type StoragePoolEventGenericCallback func(c *Connect, n *StoragePool)

type StoragePoolEventID Uses

type StoragePoolEventID int

type StoragePoolEventLifecycle Uses

type StoragePoolEventLifecycle struct {
    Event StoragePoolEventLifecycleType
    // TODO: we can make Detail typesafe somehow ?
    Detail int
}

func (StoragePoolEventLifecycle) String Uses

func (e StoragePoolEventLifecycle) String() string

type StoragePoolEventLifecycleCallback Uses

type StoragePoolEventLifecycleCallback func(c *Connect, n *StoragePool, event *StoragePoolEventLifecycle)

type StoragePoolEventLifecycleType Uses

type StoragePoolEventLifecycleType int

type StoragePoolInfo Uses

type StoragePoolInfo struct {
    State      StoragePoolState
    Capacity   uint64
    Allocation uint64
    Available  uint64
}

type StoragePoolState Uses

type StoragePoolState int

type StorageVol Uses

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

func (*StorageVol) Delete Uses

func (v *StorageVol) Delete(flags StorageVolDeleteFlags) error

func (*StorageVol) Download Uses

func (v *StorageVol) Download(stream *Stream, offset, length uint64, flags uint32) error

func (*StorageVol) Free Uses

func (v *StorageVol) Free() error

func (*StorageVol) GetInfo Uses

func (v *StorageVol) GetInfo() (*StorageVolInfo, error)

func (*StorageVol) GetInfoFlags Uses

func (v *StorageVol) GetInfoFlags(flags StorageVolInfoFlags) (*StorageVolInfo, error)

func (*StorageVol) GetKey Uses

func (v *StorageVol) GetKey() (string, error)

func (*StorageVol) GetName Uses

func (v *StorageVol) GetName() (string, error)

func (*StorageVol) GetPath Uses

func (v *StorageVol) GetPath() (string, error)

func (*StorageVol) GetXMLDesc Uses

func (v *StorageVol) GetXMLDesc(flags uint32) (string, error)

func (*StorageVol) LookupPoolByVolume Uses

func (v *StorageVol) LookupPoolByVolume() (*StoragePool, error)

func (*StorageVol) Ref Uses

func (c *StorageVol) Ref() error

func (*StorageVol) Resize Uses

func (v *StorageVol) Resize(capacity uint64, flags StorageVolResizeFlags) error

func (*StorageVol) Upload Uses

func (v *StorageVol) Upload(stream *Stream, offset, length uint64, flags uint32) error

func (*StorageVol) Wipe Uses

func (v *StorageVol) Wipe(flags uint32) error

func (*StorageVol) WipePattern Uses

func (v *StorageVol) WipePattern(algorithm StorageVolWipeAlgorithm, flags uint32) error

type StorageVolCreateFlags Uses

type StorageVolCreateFlags int

type StorageVolDeleteFlags Uses

type StorageVolDeleteFlags int

type StorageVolInfo Uses

type StorageVolInfo struct {
    Type       StorageVolType
    Capacity   uint64
    Allocation uint64
}

type StorageVolInfoFlags Uses

type StorageVolInfoFlags int

type StorageVolResizeFlags Uses

type StorageVolResizeFlags int

type StorageVolType Uses

type StorageVolType int

type StorageVolWipeAlgorithm Uses

type StorageVolWipeAlgorithm int

type StorageXMLFlags Uses

type StorageXMLFlags int

type Stream Uses

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

func (*Stream) Abort Uses

func (v *Stream) Abort() error

func (*Stream) EventAddCallback Uses

func (v *Stream) EventAddCallback(events StreamEventType, callback StreamEventCallback) error

func (*Stream) EventRemoveCallback Uses

func (v *Stream) EventRemoveCallback() error

func (*Stream) EventUpdateCallback Uses

func (v *Stream) EventUpdateCallback(events StreamEventType) error

func (*Stream) Finish Uses

func (v *Stream) Finish() error

func (*Stream) Free Uses

func (v *Stream) Free() error

func (*Stream) Recv Uses

func (v *Stream) Recv(p []byte) (int, error)

func (*Stream) RecvAll Uses

func (v *Stream) RecvAll(handler StreamSinkFunc) error

func (*Stream) Ref Uses

func (c *Stream) Ref() error

func (*Stream) Send Uses

func (v *Stream) Send(p []byte) (int, error)

func (*Stream) SendAll Uses

func (v *Stream) SendAll(handler StreamSourceFunc) error

type StreamEventCallback Uses

type StreamEventCallback func(*Stream, StreamEventType)

type StreamEventType Uses

type StreamEventType int

type StreamFlags Uses

type StreamFlags int

type StreamSinkFunc Uses

type StreamSinkFunc func(*Stream, []byte) (int, error)

type StreamSourceFunc Uses

type StreamSourceFunc func(*Stream, int) ([]byte, error)

type VcpuState Uses

type VcpuState int

Package libvirt imports 10 packages (graph) and is imported by 3 packages. Updated 2017-02-23. Refresh now. Tools for package owners.