Back to godoc.org
libvirt.org/libvirt-go

package libvirt

v6.5.0+incompatible
Latest Go to latest
Published: Jul 1, 2020 | License: MIT | Module: libvirt.org/libvirt-go

Overview

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 "libvirt.org/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

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)
	CONNECT_LIST_DOMAINS_HAS_CHECKPOINT = ConnectListAllDomainsFlags(C.VIR_CONNECT_LIST_DOMAINS_HAS_CHECKPOINT)
	CONNECT_LIST_DOMAINS_NO_CHECKPOINT  = ConnectListAllDomainsFlags(C.VIR_CONNECT_LIST_DOMAINS_NO_CHECKPOINT)
)
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)
	CONNECT_LIST_STORAGE_POOLS_ISCSI_DIRECT = ConnectListAllStoragePoolsFlags(C.VIR_CONNECT_LIST_STORAGE_POOLS_ISCSI_DIRECT)
)
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)
	CONNECT_LIST_NODE_DEVICES_CAP_MDEV          = ConnectListAllNodeDeviceFlags(C.VIR_CONNECT_LIST_NODE_DEVICES_CAP_MDEV)
	CONNECT_LIST_NODE_DEVICES_CAP_MDEV_TYPES    = ConnectListAllNodeDeviceFlags(C.VIR_CONNECT_LIST_NODE_DEVICES_CAP_MDEV_TYPES)
	CONNECT_LIST_NODE_DEVICES_CAP_CCW_DEV       = ConnectListAllNodeDeviceFlags(C.VIR_CONNECT_LIST_NODE_DEVICES_CAP_CCW_DEV)
)
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_NOWAIT        = ConnectGetAllDomainStatsFlags(C.VIR_CONNECT_GET_ALL_DOMAINS_STATS_NOWAIT)
	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
	DOMAIN_UNDEFINE_CHECKPOINTS_METADATA = DomainUndefineFlagsValues(C.VIR_DOMAIN_UNDEFINE_CHECKPOINTS_METADATA) // If last use of domain, then also remove any checkpoint metadata
)
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)

	// Live disk backup job
	DOMAIN_BLOCK_JOB_TYPE_BACKUP = DomainBlockJobType(C.VIR_DOMAIN_BLOCK_JOB_TYPE_BACKUP)
)
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_EVENT_SHUTDOWN_FINISHED = DomainEventShutdownDetailType(C.VIR_DOMAIN_EVENT_SHUTDOWN_FINISHED)
	DOMAIN_EVENT_SHUTDOWN_GUEST    = DomainEventShutdownDetailType(C.VIR_DOMAIN_EVENT_SHUTDOWN_GUEST)
	DOMAIN_EVENT_SHUTDOWN_HOST     = DomainEventShutdownDetailType(C.VIR_DOMAIN_EVENT_SHUTDOWN_HOST)
)
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_DISK_CACHES     = DomainMemoryStatTags(C.VIR_DOMAIN_MEMORY_STAT_DISK_CACHES)
	DOMAIN_MEMORY_STAT_HUGETLB_PGALLOC = DomainMemoryStatTags(C.VIR_DOMAIN_MEMORY_STAT_HUGETLB_PGALLOC)
	DOMAIN_MEMORY_STAT_HUGETLB_PGFAIL  = DomainMemoryStatTags(C.VIR_DOMAIN_MEMORY_STAT_HUGETLB_PGFAIL)
	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)
	DOMAIN_INTERFACE_ADDRESSES_SRC_ARP   = DomainInterfaceAddressesSource(C.VIR_DOMAIN_INTERFACE_ADDRESSES_SRC_ARP)
)
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)
	KEYCODE_SET_QNUM   = KeycodeSet(C.VIR_KEYCODE_SET_QNUM)
)
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_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_CRASHED_PANICKED    = DomainEventCrashedDetailType(C.VIR_DOMAIN_EVENT_CRASHED_PANICKED)
	DOMAIN_EVENT_CRASHED_CRASHLOADED = DomainEventCrashedDetailType(C.VIR_DOMAIN_EVENT_CRASHED_CRASHLOADED)
)
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)
	DOMAIN_SHUTOFF_DAEMON        = DomainShutoffReason(C.VIR_DOMAIN_SHUTOFF_DAEMON)
)
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)
	DOMAIN_BLOCK_COPY_TRANSIENT_JOB = DomainBlockCopyFlags(C.VIR_DOMAIN_BLOCK_COPY_TRANSIENT_JOB)
)
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_JOB_STATS_COMPLETED      = DomainGetJobStatsFlags(C.VIR_DOMAIN_JOB_STATS_COMPLETED)
	DOMAIN_JOB_STATS_KEEP_COMPLETED = DomainGetJobStatsFlags(C.VIR_DOMAIN_JOB_STATS_KEEP_COMPLETED)
)
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)
	DOMAIN_STATS_IOTHREAD  = DomainStatsTypes(C.VIR_DOMAIN_STATS_IOTHREAD)
	DOMAIN_STATS_MEMORY    = DomainStatsTypes(C.VIR_DOMAIN_STATS_MEMORY)
)
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)
	MIGRATE_TLS               = DomainMigrateFlags(C.VIR_MIGRATE_TLS)
	MIGRATE_PARALLEL          = DomainMigrateFlags(C.VIR_MIGRATE_PARALLEL)
)
const (
	VCPU_OFFLINE = VcpuState(C.VIR_VCPU_OFFLINE)
	VCPU_RUNNING = VcpuState(C.VIR_VCPU_RUNNING)
	VCPU_BLOCKED = VcpuState(C.VIR_VCPU_BLOCKED)
)
const (
	DOMAIN_JOB_OPERATION_UNKNOWN         = DomainJobOperationType(C.VIR_DOMAIN_JOB_OPERATION_UNKNOWN)
	DOMAIN_JOB_OPERATION_START           = DomainJobOperationType(C.VIR_DOMAIN_JOB_OPERATION_START)
	DOMAIN_JOB_OPERATION_SAVE            = DomainJobOperationType(C.VIR_DOMAIN_JOB_OPERATION_SAVE)
	DOMAIN_JOB_OPERATION_RESTORE         = DomainJobOperationType(C.VIR_DOMAIN_JOB_OPERATION_RESTORE)
	DOMAIN_JOB_OPERATION_MIGRATION_IN    = DomainJobOperationType(C.VIR_DOMAIN_JOB_OPERATION_MIGRATION_IN)
	DOMAIN_JOB_OPERATION_MIGRATION_OUT   = DomainJobOperationType(C.VIR_DOMAIN_JOB_OPERATION_MIGRATION_OUT)
	DOMAIN_JOB_OPERATION_SNAPSHOT        = DomainJobOperationType(C.VIR_DOMAIN_JOB_OPERATION_SNAPSHOT)
	DOMAIN_JOB_OPERATION_SNAPSHOT_REVERT = DomainJobOperationType(C.VIR_DOMAIN_JOB_OPERATION_SNAPSHOT_REVERT)
	DOMAIN_JOB_OPERATION_DUMP            = DomainJobOperationType(C.VIR_DOMAIN_JOB_OPERATION_DUMP)
	DOMAIN_JOB_OPERATION_BACKUP          = DomainJobOperationType(C.VIR_DOMAIN_JOB_OPERATION_BACKUP)
)
const (
	DOMAIN_GUEST_INFO_USERS      = DomainGuestInfoTypes(C.VIR_DOMAIN_GUEST_INFO_USERS)
	DOMAIN_GUEST_INFO_OS         = DomainGuestInfoTypes(C.VIR_DOMAIN_GUEST_INFO_OS)
	DOMAIN_GUEST_INFO_TIMEZONE   = DomainGuestInfoTypes(C.VIR_DOMAIN_GUEST_INFO_TIMEZONE)
	DOMAIN_GUEST_INFO_HOSTNAME   = DomainGuestInfoTypes(C.VIR_DOMAIN_GUEST_INFO_HOSTNAME)
	DOMAIN_GUEST_INFO_FILESYSTEM = DomainGuestInfoTypes(C.VIR_DOMAIN_GUEST_INFO_FILESYSTEM)
)
const (
	DOMAIN_AGENT_RESPONSE_TIMEOUT_BLOCK   = DomainAgentSetResponseTimeoutValues(C.VIR_DOMAIN_AGENT_RESPONSE_TIMEOUT_BLOCK)
	DOMAIN_AGENT_RESPONSE_TIMEOUT_DEFAULT = DomainAgentSetResponseTimeoutValues(C.VIR_DOMAIN_AGENT_RESPONSE_TIMEOUT_DEFAULT)
	DOMAIN_AGENT_RESPONSE_TIMEOUT_NOWAIT  = DomainAgentSetResponseTimeoutValues(C.VIR_DOMAIN_AGENT_RESPONSE_TIMEOUT_NOWAIT)
)
const (
	DOMAIN_GET_HOSTNAME_AGENT = DomainGetHostnameFlags(C.VIR_DOMAIN_GET_HOSTNAME_AGENT)
	DOMAIN_GET_HOSTNAME_LEASE = DomainGetHostnameFlags(C.VIR_DOMAIN_GET_HOSTNAME_LEASE)
)
const (
	DOMAIN_LIFECYCLE_POWEROFF = DomainLifecycle(C.VIR_DOMAIN_LIFECYCLE_POWEROFF)
	DOMAIN_LIFECYCLE_REBOOT   = DomainLifecycle(C.VIR_DOMAIN_LIFECYCLE_REBOOT)
	DOMAIN_LIFECYCLE_CRASH    = DomainLifecycle(C.VIR_DOMAIN_LIFECYCLE_CRASH)
)
const (
	DOMAIN_LIFECYCLE_ACTION_DESTROY          = DomainLifecycleAction(C.VIR_DOMAIN_LIFECYCLE_ACTION_DESTROY)
	DOMAIN_LIFECYCLE_ACTION_RESTART          = DomainLifecycleAction(C.VIR_DOMAIN_LIFECYCLE_ACTION_RESTART)
	DOMAIN_LIFECYCLE_ACTION_RESTART_RENAME   = DomainLifecycleAction(C.VIR_DOMAIN_LIFECYCLE_ACTION_RESTART_RENAME)
	DOMAIN_LIFECYCLE_ACTION_PRESERVE         = DomainLifecycleAction(C.VIR_DOMAIN_LIFECYCLE_ACTION_PRESERVE)
	DOMAIN_LIFECYCLE_ACTION_COREDUMP_DESTROY = DomainLifecycleAction(C.VIR_DOMAIN_LIFECYCLE_ACTION_COREDUMP_DESTROY)
	DOMAIN_LIFECYCLE_ACTION_COREDUMP_RESTART = DomainLifecycleAction(C.VIR_DOMAIN_LIFECYCLE_ACTION_COREDUMP_RESTART)
)
const (
	DOMAIN_CHECKPOINT_CREATE_REDEFINE = DomainCheckpointCreateFlags(C.VIR_DOMAIN_CHECKPOINT_CREATE_REDEFINE)
	DOMAIN_CHECKPOINT_CREATE_QUIESCE  = DomainCheckpointCreateFlags(C.VIR_DOMAIN_CHECKPOINT_CREATE_QUIESCE)
)
const (
	DOMAIN_CHECKPOINT_LIST_ROOTS       = DomainCheckpointListFlags(C.VIR_DOMAIN_CHECKPOINT_LIST_ROOTS)
	DOMAIN_CHECKPOINT_LIST_DESCENDANTS = DomainCheckpointListFlags(C.VIR_DOMAIN_CHECKPOINT_LIST_DESCENDANTS)
	DOMAIN_CHECKPOINT_LIST_LEAVES      = DomainCheckpointListFlags(C.VIR_DOMAIN_CHECKPOINT_LIST_LEAVES)
	DOMAIN_CHECKPOINT_LIST_NO_LEAVES   = DomainCheckpointListFlags(C.VIR_DOMAIN_CHECKPOINT_LIST_NO_LEAVES)
	DOMAIN_CHECKPOINT_LIST_TOPOLOGICAL = DomainCheckpointListFlags(C.VIR_DOMAIN_CHECKPOINT_LIST_TOPOLOGICAL)
)
const (
	DOMAIN_CHECKPOINT_DELETE_CHILDREN      = DomainCheckpointDeleteFlags(C.VIR_DOMAIN_CHECKPOINT_DELETE_CHILDREN)
	DOMAIN_CHECKPOINT_DELETE_METADATA_ONLY = DomainCheckpointDeleteFlags(C.VIR_DOMAIN_CHECKPOINT_DELETE_METADATA_ONLY)
	DOMAIN_CHECKPOINT_DELETE_CHILDREN_ONLY = DomainCheckpointDeleteFlags(C.VIR_DOMAIN_CHECKPOINT_DELETE_CHILDREN_ONLY)
)
const (
	DOMAIN_CHECKPOINT_XML_SECURE    = DomainCheckpointXMLFlags(C.VIR_DOMAIN_CHECKPOINT_XML_SECURE)
	DOMAIN_CHECKPOINT_XML_NO_DOMAIN = DomainCheckpointXMLFlags(C.VIR_DOMAIN_CHECKPOINT_XML_NO_DOMAIN)
	DOMAIN_CHECKPOINT_XML_SIZE      = DomainCheckpointXMLFlags(C.VIR_DOMAIN_CHECKPOINT_XML_SIZE)
)
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)
	DOMAIN_SNAPSHOT_CREATE_VALIDATE    = DomainSnapshotCreateFlags(C.VIR_DOMAIN_SNAPSHOT_CREATE_VALIDATE)
)
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)
	DOMAIN_SNAPSHOT_LIST_TOPOLOGICAL = DomainSnapshotListFlags(C.VIR_DOMAIN_SNAPSHOT_LIST_TOPOLOGICAL)
)
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)

	// libvirt fail to find the desired device
	ERR_DEVICE_MISSING = ErrorNumber(C.VIR_ERR_DEVICE_MISSING)

	// Invalid nwfilter binding object
	ERR_INVALID_NWFILTER_BINDING = ErrorNumber(C.VIR_ERR_INVALID_NWFILTER_BINDING)

	// Requested nwfilter binding does not exist
	ERR_NO_NWFILTER_BINDING = ErrorNumber(C.VIR_ERR_NO_NWFILTER_BINDING)

	// invalid domain checkpoint
	ERR_INVALID_DOMAIN_CHECKPOINT = ErrorNumber(C.VIR_ERR_INVALID_DOMAIN_CHECKPOINT)

	// domain checkpoint not found
	ERR_NO_DOMAIN_CHECKPOINT = ErrorNumber(C.VIR_ERR_NO_DOMAIN_CHECKPOINT)

	// domain backup job id not found *
	ERR_NO_DOMAIN_BACKUP = ErrorNumber(C.VIR_ERR_NO_DOMAIN_BACKUP)

	// invalid network port object
	ERR_INVALID_NETWORK_PORT = ErrorNumber(C.VIR_ERR_INVALID_NETWORK_PORT)

	// network port already exists
	ERR_NETWORK_PORT_EXIST = ErrorNumber(C.VIR_ERR_NETWORK_PORT_EXIST)

	// network port not found
	ERR_NO_NETWORK_PORT = ErrorNumber(C.VIR_ERR_NO_NETWORK_PORT)

	// no domain's hostname found
	ERR_NO_HOSTNAME = ErrorNumber(C.VIR_ERR_NO_HOSTNAME)
)
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)

	// Error from resoruce control
	FROM_RESCTRL = ErrorDomain(C.VIR_FROM_RESCTRL)

	// Error from firewalld
	FROM_FIREWALLD = ErrorDomain(C.VIR_FROM_FIREWALLD)

	// Error from domain checkpoint
	FROM_DOMAIN_CHECKPOINT = ErrorDomain(C.VIR_FROM_DOMAIN_CHECKPOINT)

	// Error from TPM
	FROM_TPM = ErrorDomain(C.VIR_FROM_TPM)

	// Error from BPF
	FROM_BPF = ErrorDomain(C.VIR_FROM_BPF)
)
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 (
	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_QEMU_AGENT_COMMAND_MIN      = DomainQemuAgentCommandTimeout(C.VIR_DOMAIN_QEMU_AGENT_COMMAND_MIN)
	DOMAIN_QEMU_AGENT_COMMAND_BLOCK    = DomainQemuAgentCommandTimeout(C.VIR_DOMAIN_QEMU_AGENT_COMMAND_BLOCK)
	DOMAIN_QEMU_AGENT_COMMAND_DEFAULT  = DomainQemuAgentCommandTimeout(C.VIR_DOMAIN_QEMU_AGENT_COMMAND_DEFAULT)
	DOMAIN_QEMU_AGENT_COMMAND_NOWAIT   = DomainQemuAgentCommandTimeout(C.VIR_DOMAIN_QEMU_AGENT_COMMAND_NOWAIT)
	DOMAIN_QEMU_AGENT_COMMAND_SHUTDOWN = DomainQemuAgentCommandTimeout(C.VIR_DOMAIN_QEMU_AGENT_COMMAND_SHUTDOWN)
)
const (
	CONNECT_DOMAIN_QEMU_MONITOR_EVENT_REGISTER_REGEX  = DomainQemuMonitorEventFlags(C.VIR_CONNECT_DOMAIN_QEMU_MONITOR_EVENT_REGISTER_REGEX)
	CONNECT_DOMAIN_QEMU_MONITOR_EVENT_REGISTER_NOCASE = DomainQemuMonitorEventFlags(C.VIR_CONNECT_DOMAIN_QEMU_MONITOR_EVENT_REGISTER_NOCASE)
)
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)
	SECRET_USAGE_TYPE_VTPM   = SecretUsageType(C.VIR_SECRET_USAGE_TYPE_VTPM)
)
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)
	STORAGE_POOL_EVENT_CREATED   = StoragePoolEventLifecycleType(C.VIR_STORAGE_POOL_EVENT_CREATED)
	STORAGE_POOL_EVENT_DELETED   = StoragePoolEventLifecycleType(C.VIR_STORAGE_POOL_EVENT_DELETED)
)
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_BACKUP_BEGIN_REUSE_EXTERNAL = DomainBackupBeginFlags(C.VIR_DOMAIN_BACKUP_BEGIN_REUSE_EXTERNAL)
)
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_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_SAVE_IMAGE_XML_SECURE = DomainSaveImageXMLFlags(C.VIR_DOMAIN_SAVE_IMAGE_XML_SECURE)
)
const (
	DOMAIN_SEND_KEY_MAX_KEYS = uint32(C.VIR_DOMAIN_SEND_KEY_MAX_KEYS)
)
const (
	DOMAIN_SNAPSHOT_XML_SECURE = DomainSnapshotXMLFlags(C.VIR_DOMAIN_SNAPSHOT_XML_SECURE)
)
const (
	DOMAIN_TIME_SYNC = DomainSetTimeFlags(C.VIR_DOMAIN_TIME_SYNC)
)
const (
	INTERFACE_XML_INACTIVE = InterfaceXMLFlags(C.VIR_INTERFACE_XML_INACTIVE)
)
const (
	MIGRATE_MAX_SPEED_POSTCOPY = DomainMigrateMaxSpeedFlags(C.VIR_DOMAIN_MIGRATE_MAX_SPEED_POSTCOPY)
)
const (
	NETWORK_EVENT_ID_LIFECYCLE = NetworkEventID(C.VIR_NETWORK_EVENT_ID_LIFECYCLE)
)
const (
	NETWORK_PORT_CREATE_RECLAIM = NetworkPortCreateFlags(C.VIR_NETWORK_PORT_CREATE_RECLAIM)
)
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_VOL_DOWNLOAD_SPARSE_STREAM = StorageVolDownloadFlags(C.VIR_STORAGE_VOL_DOWNLOAD_SPARSE_STREAM)
)
const (
	STORAGE_VOL_UPLOAD_SPARSE_STREAM = StorageVolUploadFlags(C.VIR_STORAGE_VOL_UPLOAD_SPARSE_STREAM)
)
const (
	STORAGE_XML_INACTIVE = StorageXMLFlags(C.VIR_STORAGE_XML_INACTIVE)
)
const (
	STREAM_NONBLOCK = StreamFlags(C.VIR_STREAM_NONBLOCK)
)
const (
	STREAM_RECV_STOP_AT_HOLE = StreamRecvFlagsValues(C.VIR_STREAM_RECV_STOP_AT_HOLE)
)
const (
	VERSION_NUMBER = uint32(C.LIBVIR_VERSION_NUMBER)
)

func EventAddHandle

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

See also https://libvirt.org/html/libvirt-libvirt-event.html#virEventAddHandle

func EventAddTimeout

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

See also https://libvirt.org/html/libvirt-libvirt-event.html#virEventAddTimeout

func EventRegisterDefaultImpl

func EventRegisterDefaultImpl() error

See also https://libvirt.org/html/libvirt-libvirt-event.html#virEventRegisterDefaultImpl

func EventRegisterImpl

func EventRegisterImpl(impl EventLoop)

See also https://libvirt.org/html/libvirt-libvirt-event.html#virEventRegisterImpl

func EventRemoveHandle

func EventRemoveHandle(watch int) error

See also https://libvirt.org/html/libvirt-libvirt-event.html#virEventRemoveHandle

func EventRemoveTimeout

func EventRemoveTimeout(timer int) error

See also https://libvirt.org/html/libvirt-libvirt-event.html#virEventRemoveTimeout

func EventRunDefaultImpl

func EventRunDefaultImpl() error

See also https://libvirt.org/html/libvirt-libvirt-event.html#virEventRunDefaultImpl

func EventUpdateHandle

func EventUpdateHandle(watch int, events EventHandleType)

See also https://libvirt.org/html/libvirt-libvirt-event.html#virEventUpdateHandle

func EventUpdateTimeout

func EventUpdateTimeout(timer int, freq int)

See also https://libvirt.org/html/libvirt-libvirt-event.html#virEventUpdateTimeout

type CPUCompareResult

type CPUCompareResult int

type CloseCallback

type CloseCallback func(conn *Connect, reason ConnectCloseReason)

type Connect

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

func NewConnectReadOnly

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

See also https://libvirt.org/html/libvirt-libvirt-host.html#virConnectOpenReadOnly

func NewConnectWithAuth

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

See also https://libvirt.org/html/libvirt-libvirt-host.html#virConnectOpenAuth

func (*Connect) AllocPages

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

See also https://libvirt.org/html/libvirt-libvirt-host.html#virNodeAllocPages

func (*Connect) BaselineCPU

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

See also https://libvirt.org/html/libvirt-libvirt-host.html#virConnectBaselineCPU

func (*Connect) BaselineHypervisorCPU

func (c *Connect) BaselineHypervisorCPU(emulator string, arch string, machine string, virttype string, xmlCPUs []string, flags ConnectBaselineCPUFlags) (string, error)

See also https://libvirt.org/html/libvirt-libvirt-host.html#virConnectBaselineHypervisorCPU

func (*Connect) Close

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

See also https://libvirt.org/html/libvirt-libvirt-host.html#virConnectClose

func (*Connect) CompareHypervisorCPU

func (c *Connect) CompareHypervisorCPU(emulator string, arch string, machine string, virttype string, xmlDesc string, flags ConnectCompareCPUFlags) (CPUCompareResult, error)

See also https://libvirt.org/html/libvirt-libvirt-host.html#virConnectCompareHypervisorCPU

func (*Connect) DeviceCreateXML

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

See also https://libvirt.org/html/libvirt-libvirt-nodedev.html#virNodeDeviceCreateXML

func (*Connect) DomainCreateXML

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainCreateXML

func (*Connect) DomainCreateXMLWithFiles

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainCreateXMLWithFiles

func (*Connect) DomainDefineXML

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainDefineXML

func (*Connect) DomainDefineXMLFlags

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainDefineXMLFlags

func (*Connect) DomainEventAgentLifecycleRegister

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

func (*Connect) DomainEventBalloonChangeRegister

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

func (*Connect) DomainEventBlockJob2Register

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

func (*Connect) DomainEventBlockJobRegister

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

func (*Connect) DomainEventBlockThresholdRegister

func (c *Connect) DomainEventBlockThresholdRegister(dom *Domain, callback DomainEventBlockThresholdCallback) (int, error)

func (*Connect) DomainEventControlErrorRegister

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

func (*Connect) DomainEventDeregister

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

func (*Connect) DomainEventDeviceAddedRegister

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

func (*Connect) DomainEventDeviceRemovalFailedRegister

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

func (*Connect) DomainEventDeviceRemovedRegister

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

func (*Connect) DomainEventDiskChangeRegister

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

func (*Connect) DomainEventGraphicsRegister

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

func (*Connect) DomainEventIOErrorReasonRegister

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

func (*Connect) DomainEventIOErrorRegister

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

func (*Connect) DomainEventJobCompletedRegister

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

func (*Connect) DomainEventLifecycleRegister

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

func (*Connect) DomainEventMetadataChangeRegister

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

func (*Connect) DomainEventMigrationIterationRegister

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

func (*Connect) DomainEventPMSuspendDiskRegister

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

func (*Connect) DomainEventPMSuspendRegister

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

func (*Connect) DomainEventPMWakeupRegister

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

func (*Connect) DomainEventRTCChangeRegister

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

func (*Connect) DomainEventRebootRegister

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

func (*Connect) DomainEventTrayChangeRegister

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

func (*Connect) DomainEventTunableRegister

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

func (*Connect) DomainEventWatchdogRegister

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

func (*Connect) DomainQemuAttach

func (c *Connect) DomainQemuAttach(pid uint32, flags uint32) (*Domain, error)

func (*Connect) DomainQemuEventDeregister

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

func (*Connect) DomainQemuMonitorEventRegister

func (c *Connect) DomainQemuMonitorEventRegister(dom *Domain, event string, callback DomainQemuMonitorEventCallback, flags DomainQemuMonitorEventFlags) (int, error)

func (*Connect) DomainRestore

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainRestore

func (*Connect) DomainRestoreFlags

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainRestoreFlags

func (*Connect) DomainSaveImageDefineXML

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainSaveImageDefineXML

func (*Connect) DomainSaveImageGetXMLDesc

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainSaveImageGetXMLDesc

func (*Connect) DomainXMLFromNative

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virConnectDomainXMLFromNative

func (*Connect) DomainXMLToNative

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virConnectDomainXMLToNative

func (*Connect) FindStoragePoolSources

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

See also https://libvirt.org/html/libvirt-libvirt-storage.html#virConnectFindStoragePoolSources

func (*Connect) GetAllDomainStats

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virConnectGetAllDomainStats

func (*Connect) GetCPUMap

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

See also https://libvirt.org/html/libvirt-libvirt-host.html#virNodeGetCPUMap

func (*Connect) GetCPUModelNames

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

See also https://libvirt.org/html/libvirt-libvirt-host.html#virConnectGetCPUModelNames

func (*Connect) GetCPUStats

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

See also https://libvirt.org/html/libvirt-libvirt-host.html#virNodeGetCPUStats

func (*Connect) GetCapabilities

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

See also https://libvirt.org/html/libvirt-libvirt-host.html#virConnectGetCapabilities

func (*Connect) GetCellsFreeMemory

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

See also https://libvirt.org/html/libvirt-libvirt-host.html#virNodeGetCellsFreeMemory

func (*Connect) GetDomainCapabilities

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virConnectGetDomainCapabilities

func (*Connect) GetFreeMemory

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

See also https://libvirt.org/html/libvirt-libvirt-host.html#virNodeGetFreeMemory

func (*Connect) GetFreePages

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

See also https://libvirt.org/html/libvirt-libvirt-host.html#virNodeGetFreePages

func (*Connect) GetHostname

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

See also https://libvirt.org/html/libvirt-libvirt-host.html#virConnectGetHostname

func (*Connect) GetLibVersion

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

See also https://libvirt.org/html/libvirt-libvirt-host.html#virConnectGetLibVersion

func (*Connect) GetMaxVcpus

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

See also https://libvirt.org/html/libvirt-libvirt-host.html#virConnectGetMaxVcpus

func (*Connect) GetMemoryParameters

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

See also https://libvirt.org/html/libvirt-libvirt-host.html#virNodeGetMemoryParameters

func (*Connect) GetMemoryStats

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

See also https://libvirt.org/html/libvirt-libvirt-host.html#virNodeGetMemoryStats

func (*Connect) GetNodeInfo

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

See also https://libvirt.org/html/libvirt-libvirt-host.html#virNodeGetInfo

func (*Connect) GetSEVInfo

func (c *Connect) GetSEVInfo(flags uint32) (*NodeSEVParameters, error)

See also https://libvirt.org/html/libvirt-libvirt-host.html#virNodeGetSEVInfo

func (*Connect) GetSecurityModel

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

See also https://libvirt.org/html/libvirt-libvirt-host.html#virNodeGetSecurityModel

func (*Connect) GetStoragePoolCapabilities

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

See also https://libvirt.org/html/libvirt-libvirt-storage.html#virConnectGetStoragePoolCapabilities

func (*Connect) GetSysinfo

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

See also https://libvirt.org/html/libvirt-libvirt-host.html#virConnectGetSysinfo

func (*Connect) GetType

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

See also https://libvirt.org/html/libvirt-libvirt-host.html#virConnectGetType

func (*Connect) GetURI

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

See also https://libvirt.org/html/libvirt-libvirt-host.html#virConnectGetURI

func (*Connect) GetVersion

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

See also https://libvirt.org/html/libvirt-libvirt-host.html#virConnectGetVersion

func (*Connect) InterfaceChangeBegin

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

See also https://libvirt.org/html/libvirt-libvirt-interface.html#virInterfaceChangeBegin

func (*Connect) InterfaceChangeCommit

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

See also https://libvirt.org/html/libvirt-libvirt-interface.html#virInterfaceChangeCommit

func (*Connect) InterfaceChangeRollback

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

See also https://libvirt.org/html/libvirt-libvirt-interface.html#virInterfaceChangeRollback

func (*Connect) InterfaceDefineXML

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

See also https://libvirt.org/html/libvirt-libvirt-interface.html#virInterfaceDefineXML

func (*Connect) IsAlive

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

See also https://libvirt.org/html/libvirt-libvirt-host.html#virConnectIsAlive

func (*Connect) IsEncrypted

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

See also https://libvirt.org/html/libvirt-libvirt-host.html#virConnectIsEncrypted

func (*Connect) IsSecure

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

See also https://libvirt.org/html/libvirt-libvirt-host.html#virConnectIsSecure

func (*Connect) ListAllDomains

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virConnectListAllDomains

func (*Connect) ListAllNWFilterBindings

func (c *Connect) ListAllNWFilterBindings(flags uint32) ([]NWFilterBinding, error)

See also https://libvirt.org/html/libvirt-libvirt-nwfilter.html#virConnectListAllNWFilterBindings

func (*Connect) ListAllNWFilters

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

See also https://libvirt.org/html/libvirt-libvirt-nwfilter.html#virConnectListAllNWFilters

func (*Connect) ListAllNetworks

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

See also https://libvirt.org/html/libvirt-libvirt-network.html#virConnectListAllNetworks

func (*Connect) ListAllNodeDevices

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

See also https://libvirt.org/html/libvirt-libvirt-nodedev.html#virConnectListAllNodeDevices

func (*Connect) ListAllSecrets

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

See also https://libvirt.org/html/libvirt-libvirt-secret.html#virConnectListAllSecrets

func (*Connect) ListAllStoragePools

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

See also https://libvirt.org/html/libvirt-libvirt-storage.html#virConnectListAllStoragePools

func (*Connect) ListDefinedDomains

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virConnectListDefinedDomains

func (*Connect) ListDefinedInterfaces

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

See also https://libvirt.org/html/libvirt-libvirt-interface.html#virConnectListDefinedInterfaces

func (*Connect) ListDefinedNetworks

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

See also https://libvirt.org/html/libvirt-libvirt-network.html#virConnectListDefinedNetworks

func (*Connect) ListDefinedStoragePools

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

See also https://libvirt.org/html/libvirt-libvirt-storage.html#virConnectListDefinedStoragePools

func (*Connect) ListDevices

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

See also https://libvirt.org/html/libvirt-libvirt-nodedev.html#virNodeListDevices

func (*Connect) ListDomains

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virConnectListDomains

func (*Connect) ListInterfaces

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

See also https://libvirt.org/html/libvirt-libvirt-interface.html#virConnectListInterfaces

func (*Connect) ListNWFilters

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

See also https://libvirt.org/html/libvirt-libvirt-nwfilter.html#virConnectListNWFilters

func (*Connect) ListNetworks

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

See also https://libvirt.org/html/libvirt-libvirt-network.html#virConnectListNetworks

func (*Connect) ListSecrets

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

See also https://libvirt.org/html/libvirt-libvirt-secret.html#virConnectListSecrets

func (*Connect) ListStoragePools

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

See also https://libvirt.org/html/libvirt-libvirt-storage.html#virConnectListStoragePools

func (*Connect) LookupDeviceByName

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

See also https://libvirt.org/html/libvirt-libvirt-nodedev.html#virNodeDeviceLookupByName

func (*Connect) LookupDeviceSCSIHostByWWN

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

See also https://libvirt.org/html/libvirt-libvirt-nodedev.html#virNodeDeviceLookupSCSIHostByWWN

func (*Connect) LookupDomainById

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainLookupByID

func (*Connect) LookupDomainByName

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainLookupByName

func (*Connect) LookupDomainByUUID

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainLookupByUUID

func (*Connect) LookupDomainByUUIDString

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainLookupByUUIDString

func (*Connect) LookupInterfaceByMACString

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

See also https://libvirt.org/html/libvirt-libvirt-interface.html#virInterfaceLookupByMACString

func (*Connect) LookupInterfaceByName

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

See also https://libvirt.org/html/libvirt-libvirt-interface.html#virInterfaceLookupByName

func (*Connect) LookupNWFilterBindingByPortDev

func (c *Connect) LookupNWFilterBindingByPortDev(name string) (*NWFilterBinding, error)

See also https://libvirt.org/html/libvirt-libvirt-nwfilter.html#virNWFilterBindingLookupByPortDev

func (*Connect) LookupNWFilterByName

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

See also https://libvirt.org/html/libvirt-libvirt-nwfilter.html#virNWFilterLookupByName

func (*Connect) LookupNWFilterByUUID

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

See also https://libvirt.org/html/libvirt-libvirt-nwfilter.html#virNWFilterLookupByUUID

func (*Connect) LookupNWFilterByUUIDString

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

See also https://libvirt.org/html/libvirt-libvirt-nwfilter.html#virNWFilterLookupByUUIDString

func (*Connect) LookupNetworkByName

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

See also https://libvirt.org/html/libvirt-libvirt-network.html#virNetworkLookupByName

func (*Connect) LookupNetworkByUUID

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

See also https://libvirt.org/html/libvirt-libvirt-network.html#virNetworkLookupByUUID

func (*Connect) LookupNetworkByUUIDString

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

See also https://libvirt.org/html/libvirt-libvirt-network.html#virNetworkLookupByUUIDString

func (*Connect) LookupSecretByUUID

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

See also https://libvirt.org/html/libvirt-libvirt-secret.html#virSecretLookupByUUID

func (*Connect) LookupSecretByUUIDString

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

See also https://libvirt.org/html/libvirt-libvirt-secret.html#virSecretLookupByUUIDString

func (*Connect) LookupSecretByUsage

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

See also https://libvirt.org/html/libvirt-libvirt-secret.html#virSecretLookupByUsage

func (*Connect) LookupStoragePoolByName

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

See also https://libvirt.org/html/libvirt-libvirt-storage.html#virStoragePoolLookupByName

func (*Connect) LookupStoragePoolByTargetPath

func (c *Connect) LookupStoragePoolByTargetPath(path string) (*StoragePool, error)

See also https://libvirt.org/html/libvirt-libvirt-storage.html#virStoragePoolLookupByTargetPath

func (*Connect) LookupStoragePoolByUUID

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

See also https://libvirt.org/html/libvirt-libvirt-storage.html#virStoragePoolLookupByUUID

func (*Connect) LookupStoragePoolByUUIDString

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

See also https://libvirt.org/html/libvirt-libvirt-storage.html#virStoragePoolLookupByUUIDString

func (*Connect) LookupStorageVolByKey

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

See also https://libvirt.org/html/libvirt-libvirt-storage.html#virStorageVolLookupByKey

func (*Connect) LookupStorageVolByPath

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

See also https://libvirt.org/html/libvirt-libvirt-storage.html#virStorageVolLookupByPath

func (*Connect) NWFilterBindingCreateXML

func (c *Connect) NWFilterBindingCreateXML(xmlConfig string, flags uint32) (*NWFilterBinding, error)

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virNWFilterBindingCreateXML

func (*Connect) NWFilterDefineXML

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

See also https://libvirt.org/html/libvirt-libvirt-nwfilter.html#virNWFilterDefineXML

func (*Connect) NetworkCreateXML

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

See also https://libvirt.org/html/libvirt-libvirt-network.html#virNetworkCreateXML

func (*Connect) NetworkDefineXML

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

See also https://libvirt.org/html/libvirt-libvirt-network.html#virNetworkDefineXML

func (*Connect) NetworkEventDeregister

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

func (*Connect) NetworkEventLifecycleRegister

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

func (*Connect) NewStream

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

See also https://libvirt.org/html/libvirt-libvirt-stream.html#virStreamNew

func (*Connect) NodeDeviceEventDeregister

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

func (*Connect) NodeDeviceEventLifecycleRegister

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

func (*Connect) NodeDeviceEventUpdateRegister

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

func (*Connect) NumOfDefinedDomains

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virConnectNumOfDefinedDomains

func (*Connect) NumOfDefinedInterfaces

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

See also https://libvirt.org/html/libvirt-libvirt-interface.html#virConnectNumOfDefinedInterfaces

func (*Connect) NumOfDefinedNetworks

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

See also https://libvirt.org/html/libvirt-libvirt-network.html#virConnectNumOfDefinedNetworks

func (*Connect) NumOfDefinedStoragePools

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

See also https://libvirt.org/html/libvirt-libvirt-storage.html#virConnectNumOfDefinedStoragePools

func (*Connect) NumOfDevices

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

See also https://libvirt.org/html/libvirt-libvirt-nodedev.html#virNodeNumOfDevices

func (*Connect) NumOfDomains

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virConnectNumOfDomains

func (*Connect) NumOfInterfaces

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

See also https://libvirt.org/html/libvirt-libvirt-interface.html#virConnectNumOfInterfaces

func (*Connect) NumOfNWFilters

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

See also https://libvirt.org/html/libvirt-libvirt-nwfilter.html#virConnectNumOfNWFilters

func (*Connect) NumOfNetworks

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

See also https://libvirt.org/html/libvirt-libvirt-network.html#virConnectNumOfNetworks

func (*Connect) NumOfSecrets

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

See also https://libvirt.org/html/libvirt-libvirt-secret.html#virConnectNumOfSecrets

func (*Connect) NumOfStoragePools

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

See also https://libvirt.org/html/libvirt-libvirt-storage.html#virConnectNumOfStoragePools

func (*Connect) RegisterCloseCallback

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. See also https://libvirt.org/html/libvirt-libvirt-host.html#virConnectRegisterCloseCallback

func (*Connect) SecretDefineXML

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

See also https://libvirt.org/html/libvirt-libvirt-secret.html#virSecretDefineXML

func (*Connect) SecretEventDeregister

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

func (*Connect) SecretEventLifecycleRegister

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

func (*Connect) SecretEventValueChangedRegister

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

func (*Connect) SetIdentity

func (c *Connect) SetIdentity(ident *ConnectIdentity, flags uint) error

func (*Connect) SetKeepAlive

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

See also https://libvirt.org/html/libvirt-libvirt-host.html#virConnectSetKeepAlive

func (*Connect) SetMemoryParameters

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

See also https://libvirt.org/html/libvirt-libvirt-host.html#virNodeSetMemoryParameters

func (*Connect) StoragePoolCreateXML

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

See also https://libvirt.org/html/libvirt-libvirt-storage.html#virStoragePoolCreateXML

func (*Connect) StoragePoolDefineXML

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

See also https://libvirt.org/html/libvirt-libvirt-storage.html#virStoragePoolDefineXML

func (*Connect) StoragePoolEventDeregister

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

func (*Connect) StoragePoolEventLifecycleRegister

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

func (*Connect) StoragePoolEventRefreshRegister

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

func (*Connect) SuspendForDuration

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

See also https://libvirt.org/html/libvirt-libvirt-host.html#virNodeSuspendForDuration

func (*Connect) UnregisterCloseCallback

func (c *Connect) UnregisterCloseCallback() error

See also https://libvirt.org/html/libvirt-libvirt-host.html#virConnectUnregisterCloseCallback

type ConnectAuth

type ConnectAuth struct {
	CredType []ConnectCredentialType
	Callback ConnectAuthCallback
}

type ConnectAuthCallback

type ConnectAuthCallback func(creds []*ConnectCredential)

type ConnectBaselineCPUFlags

type ConnectBaselineCPUFlags int

type ConnectCloseReason

type ConnectCloseReason int

type ConnectCompareCPUFlags

type ConnectCompareCPUFlags int

type ConnectCredential

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

type ConnectCredentialType

type ConnectCredentialType int

type ConnectDomainEventAgentLifecycleReason

type ConnectDomainEventAgentLifecycleReason int

type ConnectDomainEventAgentLifecycleState

type ConnectDomainEventAgentLifecycleState int

type ConnectDomainEventBlockJobStatus

type ConnectDomainEventBlockJobStatus int

type ConnectDomainEventDiskChangeReason

type ConnectDomainEventDiskChangeReason int

type ConnectDomainEventTrayChangeReason

type ConnectDomainEventTrayChangeReason int

type ConnectFlags

type ConnectFlags int

type ConnectGetAllDomainStatsFlags

type ConnectGetAllDomainStatsFlags int

type ConnectIdentity

type ConnectIdentity struct {
	UserNameSet              bool
	UserName                 string
	UNIXUserIDSet            bool
	UNIXUserID               uint64
	GroupNameSet             bool
	GroupName                string
	UNIXGroupIDSet           bool
	UNIXGroupID              uint64
	ProcessIDSet             bool
	ProcessID                int64
	ProcessTimeSet           bool
	ProcessTime              uint64
	SASLUserNameSet          bool
	SASLUserName             string
	X509DistinguishedNameSet bool
	X509DistinguishedName    string
	SELinuxContextSet        bool
	SELinuxContext           string
}

type ConnectListAllDomainsFlags

type ConnectListAllDomainsFlags int

type ConnectListAllInterfacesFlags

type ConnectListAllInterfacesFlags int

type ConnectListAllNetworksFlags

type ConnectListAllNetworksFlags int

type ConnectListAllNodeDeviceFlags

type ConnectListAllNodeDeviceFlags int

type ConnectListAllSecretsFlags

type ConnectListAllSecretsFlags int

type ConnectListAllStoragePoolsFlags

type ConnectListAllStoragePoolsFlags int

type Domain

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

func (*Domain) AbortJob

func (d *Domain) AbortJob() error

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainAbortJob

func (*Domain) AgentSetResponseTimeout

func (d *Domain) AgentSetResponseTimeout(timeout int, flags uint32) error

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainAgentSetResponseTimeout

func (*Domain) AttachDevice

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainAttachDevice

func (*Domain) AttachDeviceFlags

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainAttachDeviceFlags

func (*Domain) BackupBegin

func (d *Domain) BackupBegin(backupXML string, checkpointXML string, flags DomainBackupBeginFlags) error

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainBackupBegin

func (*Domain) BackupGetXMLDesc

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainBackupGetXMLDesc

func (*Domain) BlockCommit

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainBlockCommit

func (*Domain) BlockJobAbort

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainBlockJobAbort

func (*Domain) BlockJobSetSpeed

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainBlockJobSetSpeed

func (*Domain) BlockPeek

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainBlockPeek

func (*Domain) BlockPull

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainBlockPull

func (*Domain) BlockRebase

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainBlockRebase

func (*Domain) BlockResize

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainBlockResize

func (*Domain) BlockStats

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainBlockStats

func (*Domain) BlockStatsFlags

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainBlockStatsFlags

func (*Domain) CheckpointLookupByName

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

See also https://libvirt.org/html/libvirt-libvirt-domain-checkpoint.html#virDomainCheckpointLookupByName

func (*Domain) CoreDumpWithFormat

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainCoreDumpWithFormat

func (*Domain) Create

func (d *Domain) Create() error

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainCreate

func (*Domain) CreateWithFiles

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainCreateWithFiles

func (*Domain) CreateWithFlags

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainCreateWithFlags

func (*Domain) Destroy

func (d *Domain) Destroy() error

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainDestroy

func (*Domain) DestroyFlags

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainDestroyFlags

func (*Domain) DetachDevice

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainDetachDevice

func (*Domain) DetachDeviceAlias

func (d *Domain) DetachDeviceAlias(alias string, flags DomainDeviceModifyFlags) error

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainDetachDeviceAlias

func (*Domain) DetachDeviceFlags

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainDetachDeviceFlags

func (*Domain) DomainGetConnect

func (d *Domain) DomainGetConnect() (*Connect, error)

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetConnect

Contrary to the native C API behaviour, the Go API will acquire a reference on the returned Connect, which must be released by calling Close()

func (*Domain) DomainLxcEnterCGroup

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

func (*Domain) FSFreeze

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainFSFreeze

func (*Domain) FSThaw

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainFSThaw

func (*Domain) FSTrim

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainFSTrim

func (*Domain) GetAutostart

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetAutostart

func (*Domain) GetBlockInfo

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetBlockInfo

func (*Domain) GetCPUStats

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetCPUStats

func (*Domain) GetControlInfo

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetControlInfo

func (*Domain) GetDiskErrors

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetDiskErrors

func (*Domain) GetEmulatorPinInfo

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetEmulatorPinInfo

func (*Domain) GetFSInfo

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetFSInfo

func (*Domain) GetGuestVcpus

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetGuestVcpus

func (*Domain) GetID

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetID

func (*Domain) GetInterfaceParameters

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetInterfaceParameters

func (*Domain) GetJobInfo

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetJobInfo

func (*Domain) GetLaunchSecurityInfo

func (d *Domain) GetLaunchSecurityInfo(flags uint32) (*DomainLaunchSecurityParameters, error)

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetLaunchSecurityInfo

func (*Domain) GetMaxMemory

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetMaxMemory

func (*Domain) GetMaxVcpus

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetMaxVcpus

func (*Domain) GetName

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetName

func (*Domain) GetOSType

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetOSType

func (*Domain) GetSchedulerParameters

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetSchedulerParameters

func (*Domain) GetSchedulerParametersFlags

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetSchedulerParametersFlags

func (*Domain) GetSecurityLabel

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetSecurityLabel

func (*Domain) GetSecurityLabelList

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetSecurityLabelList

func (*Domain) GetTime

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetTime

func (*Domain) GetUUID

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetUUID

func (*Domain) GetUUIDString

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetUUIDString

func (*Domain) GetVcpuPinInfo

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetVcpuPinInfo

func (*Domain) GetVcpusFlags

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetVcpusFlags

func (*Domain) GetXMLDesc

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetXMLDesc

func (*Domain) HasCurrentSnapshot

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

See also https://libvirt.org/html/libvirt-libvirt-domain-snapshot.html#virDomainHasCurrentSnapshot

func (*Domain) HasManagedSaveImage

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainHasManagedSaveImage

func (*Domain) InjectNMI

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainInjectNMI

func (*Domain) InterfaceStats

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainInterfaceStats

func (*Domain) IsActive

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainIsActive

func (*Domain) IsPersistent

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainIsPersistent

func (*Domain) IsUpdated

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainIsUpdated

func (*Domain) ListAllInterfaceAddresses

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainInterfaceAddresses

func (*Domain) LxcEnterNamespace

func (d *Domain) LxcEnterNamespace(fdlist []os.File, flags uint32) ([]os.File, error)

func (*Domain) LxcOpenNamespace

func (d *Domain) LxcOpenNamespace(flags uint32) ([]os.File, error)

func (*Domain) ManagedSaveDefineXML

func (d *Domain) ManagedSaveDefineXML(xml string, flags uint32) error

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainManagedSaveDefineXML

func (*Domain) ManagedSaveGetXMLDesc

func (d *Domain) ManagedSaveGetXMLDesc(flags DomainSaveImageXMLFlags) (string, error)

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainManagedSaveGetXMLDesc

func (*Domain) ManagedSaveRemove

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainManagedSaveRemove

func (*Domain) MemoryPeek

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainMemoryPeek

func (*Domain) MemoryStats

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainMemoryStats

func (*Domain) Migrate

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainMigrate

func (*Domain) Migrate2

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainMigrate2

func (*Domain) MigrateGetCompressionCache

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainMigrateGetCompressionCache

func (*Domain) MigrateGetMaxDowntime

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainMigrateGetMaxDowntime

func (*Domain) MigrateGetMaxSpeed

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainMigrateGetMaxSpeed

func (*Domain) MigrateSetCompressionCache

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainMigrateSetCompressionCache

func (*Domain) MigrateSetMaxDowntime

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainMigrateSetMaxDowntime

func (*Domain) MigrateSetMaxSpeed

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainMigrateSetMaxSpeed

func (*Domain) MigrateStartPostCopy

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainMigrateStartPostCopy

func (*Domain) MigrateToURI

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainMigrateToURI

func (*Domain) MigrateToURI2

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainMigrateToURI2

func (*Domain) MigrateToURI3

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainMigrateToURI3

func (*Domain) OpenChannel

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainOpenChannel

func (*Domain) OpenConsole

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainOpenConsole

func (*Domain) OpenGraphics

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainOpenGraphics

func (*Domain) OpenGraphicsFD

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainOpenGraphicsFD

func (*Domain) PMSuspendForDuration

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainPMSuspendForDuration

func (*Domain) PMWakeup

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainPMWakeup

func (*Domain) PinEmulator

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainPinEmulator

func (*Domain) PinIOThread

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainPinIOThread

func (*Domain) PinVcpu

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainPinVcpu

func (*Domain) PinVcpuFlags

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainPinVcpuFlags

func (*Domain) QemuAgentCommand

func (d *Domain) QemuAgentCommand(command string, timeout DomainQemuAgentCommandTimeout, flags uint32) (string, error)

func (*Domain) QemuMonitorCommand

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

func (*Domain) Rename

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainRename

func (*Domain) Reset

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainReset

func (*Domain) Resume

func (d *Domain) Resume() error

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainResume

func (*Domain) Save

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainSave

func (*Domain) SaveFlags

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainSaveFlags

func (*Domain) Screenshot

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainScreenshot

func (*Domain) SendKey

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainSendKey

func (*Domain) SendProcessSignal

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainSendProcessSignal

func (*Domain) SetAutostart

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainSetAutostart

func (*Domain) SetBlkioParameters

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainSetBlkioParameters

func (*Domain) SetBlockThreshold

func (d *Domain) SetBlockThreshold(dev string, threshold uint64, flags uint32) error

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainSetBlockThreshold

func (*Domain) SetGuestVcpus

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainSetGuestVcpus

func (*Domain) SetIOThreadParams

func (d *Domain) SetIOThreadParams(iothreadid uint, params *DomainSetIOThreadParams, flags DomainModificationImpact) error

func (*Domain) SetInterfaceParameters

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainSetInterfaceParameters

func (*Domain) SetLifecycleAction

func (d *Domain) SetLifecycleAction(lifecycleType uint32, action uint32, flags uint32) error

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainSetLifecycleAction

func (*Domain) SetMaxMemory

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainSetMaxMemory

func (*Domain) SetMemory

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainSetMemory

func (*Domain) SetMemoryFlags

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainSetMemoryFlags

func (*Domain) SetMemoryParameters

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainSetMemoryParameters

func (*Domain) SetMemoryStatsPeriod

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainSetMemoryStatsPeriod

func (*Domain) SetMetadata

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainSetMetadata

func (*Domain) SetNumaParameters

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainSetNumaParameters

func (*Domain) SetSchedulerParameters

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainSetSchedulerParameters

func (*Domain) SetSchedulerParametersFlags

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainSetSchedulerParametersFlags

func (*Domain) SetTime

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainSetTime

func (*Domain) SetUserPassword

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainSetUserPassword

func (*Domain) SetVcpu

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainSetVcpu

func (*Domain) SetVcpus

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainSetVcpus

func (*Domain) SetVcpusFlags

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainSetVcpusFlags

func (*Domain) Shutdown

func (d *Domain) Shutdown() error

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainShutdown

func (*Domain) ShutdownFlags

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainShutdownFlags

func (*Domain) SnapshotCurrent

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

See also https://libvirt.org/html/libvirt-libvirt-domain-snapshot.html#virDomainSnapshotCurrent

func (*Domain) SnapshotListNames

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

See also https://libvirt.org/html/libvirt-libvirt-domain-snapshot.html#virDomainSnapshotListNames

func (*Domain) SnapshotLookupByName

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

See also https://libvirt.org/html/libvirt-libvirt-domain-snapshot.html#virDomainSnapshotLookupByName

func (*Domain) Suspend

func (d *Domain) Suspend() error

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainSuspend

func (*Domain) Undefine

func (d *Domain) Undefine() error

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainUndefine

func (*Domain) UpdateDeviceFlags

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

See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainUpdateDeviceFlags

type DomainAgentSetResponseTimeoutValues

type DomainAgentSetResponseTimeoutValues int

type DomainBackupBeginFlags

type DomainBackupBeginFlags int

type DomainBlkioParameters

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

type DomainBlockCommitFlags int

type DomainBlockCopyFlags

type DomainBlockCopyFlags int

type DomainBlockCopyParameters

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

type DomainBlockInfo

type DomainBlockInfo struct {
	Capacity   uint64
	Allocation uint64
	Physical   uint64
}

type DomainBlockIoTuneParameters

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

type DomainBlockJobAbortFlags int

type DomainBlockJobInfo

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

type DomainBlockJobInfoFlags

type DomainBlockJobInfoFlags int

type DomainBlockJobSetSpeedFlags

type DomainBlockJobSetSpeedFlags int

type DomainBlockJobType

type DomainBlockJobType int

type DomainBlockPullFlags

type DomainBlockPullFlags int

type DomainBlockRebaseFlags

type DomainBlockRebaseFlags int

type DomainBlockResizeFlags

type DomainBlockResizeFlags int

type DomainBlockStats

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

type DomainBlockedReason int

type DomainCPUStats

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

type DomainCPUStatsTags

type DomainCPUStatsTags string

type DomainChannelFlags

type DomainChannelFlags int

type DomainCheckpoint

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

type DomainCheckpointCreateFlags

type DomainCheckpointCreateFlags int

type DomainCheckpointDeleteFlags

type DomainCheckpointDeleteFlags int

type DomainCheckpointListFlags

type DomainCheckpointListFlags int

type DomainCheckpointXMLFlags

type DomainCheckpointXMLFlags int

type DomainConsoleFlags

type DomainConsoleFlags int

type DomainControlErrorReason

type DomainControlErrorReason int

type DomainControlInfo

type DomainControlInfo struct {
	State     DomainControlState
	Details   int
	StateTime uint64
}

type DomainControlState

type DomainControlState int

type DomainCoreDumpFlags

type DomainCoreDumpFlags int

type DomainCoreDumpFormat

type DomainCoreDumpFormat int

type DomainCrashedReason

type DomainCrashedReason int

type DomainCreateFlags

type DomainCreateFlags int

type DomainDefineFlags

type DomainDefineFlags int

type DomainDestroyFlags

type DomainDestroyFlags int

type DomainDeviceModifyFlags

type DomainDeviceModifyFlags int

type DomainDiskError

type DomainDiskError struct {
	Disk  string
	Error DomainDiskErrorCode
}

type DomainDiskErrorCode

type DomainDiskErrorCode int

type DomainEventAgentLifecycle

type DomainEventAgentLifecycle struct {
	State  ConnectDomainEventAgentLifecycleState
	Reason ConnectDomainEventAgentLifecycleReason
}

type DomainEventAgentLifecycleCallback

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

type DomainEventBalloonChange

type DomainEventBalloonChange struct {
	Actual uint64
}

func (DomainEventBalloonChange) String

func (e DomainEventBalloonChange) String() string

type DomainEventBalloonChangeCallback

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

type DomainEventBlockJob

type DomainEventBlockJob struct {
	Disk   string
	Type   DomainBlockJobType
	Status ConnectDomainEventBlockJobStatus
}

func (DomainEventBlockJob) String

func (e DomainEventBlockJob) String() string

type DomainEventBlockJobCallback

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

type DomainEventBlockThreshold

type DomainEventBlockThreshold struct {
	Dev       string
	Path      string
	Threshold uint64
	Excess    uint64
}

type DomainEventBlockThresholdCallback

type DomainEventBlockThresholdCallback func(c *Connect, d *Domain, event *DomainEventBlockThreshold)

type DomainEventCrashedDetailType

type DomainEventCrashedDetailType int

type DomainEventDefinedDetailType

type DomainEventDefinedDetailType int

type DomainEventDeviceAdded

type DomainEventDeviceAdded struct {
	DevAlias string
}

type DomainEventDeviceAddedCallback

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

type DomainEventDeviceRemovalFailed

type DomainEventDeviceRemovalFailed struct {
	DevAlias string
}

type DomainEventDeviceRemovalFailedCallback

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

type DomainEventDeviceRemoved

type DomainEventDeviceRemoved struct {
	DevAlias string
}

func (DomainEventDeviceRemoved) String

func (e DomainEventDeviceRemoved) String() string

type DomainEventDeviceRemovedCallback

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

type DomainEventDiskChange

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

func (DomainEventDiskChange) String

func (e DomainEventDiskChange) String() string

type DomainEventDiskChangeCallback

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

type DomainEventGenericCallback

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

type DomainEventGraphics

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

func (DomainEventGraphics) String

func (e DomainEventGraphics) String() string

type DomainEventGraphicsAddress

type DomainEventGraphicsAddress struct {
	Family  DomainEventGraphicsAddressType
	Node    string
	Service string
}

type DomainEventGraphicsAddressType

type DomainEventGraphicsAddressType int

type DomainEventGraphicsCallback

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

type DomainEventGraphicsPhase

type DomainEventGraphicsPhase int

type DomainEventGraphicsSubjectIdentity

type DomainEventGraphicsSubjectIdentity struct {
	Type string
	Name string
}

type DomainEventIOError

type DomainEventIOError struct {
	SrcPath  string
	DevAlias string
	Action   DomainEventIOErrorAction
}

func (DomainEventIOError) String

func (e DomainEventIOError) String() string

type DomainEventIOErrorAction

type DomainEventIOErrorAction int

type DomainEventIOErrorCallback

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

type DomainEventIOErrorReason

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

func (DomainEventIOErrorReason) String

func (e DomainEventIOErrorReason) String() string

type DomainEventIOErrorReasonCallback

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

type DomainEventJobCompleted

type DomainEventJobCompleted struct {
	Info DomainJobInfo
}

type DomainEventJobCompletedCallback

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

type DomainEventLifecycle

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

func (DomainEventLifecycle) String

func (e DomainEventLifecycle) String() string

type DomainEventLifecycleCallback

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

type DomainEventMetadataChange

type DomainEventMetadataChange struct {
	Type  int
	NSURI string
}

type DomainEventMetadataChangeCallback

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

type DomainEventMigrationIteration

type DomainEventMigrationIteration struct {
	Iteration int
}

type DomainEventMigrationIterationCallback

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

type DomainEventPMSuspend

type DomainEventPMSuspend struct {
	Reason int
}

type DomainEventPMSuspendCallback

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

type DomainEventPMSuspendDisk

type DomainEventPMSuspendDisk struct {
	Reason int
}

type DomainEventPMSuspendDiskCallback

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

type DomainEventPMSuspendedDetailType

type DomainEventPMSuspendedDetailType int

type DomainEventPMWakeup

type DomainEventPMWakeup struct {
	Reason int
}

type DomainEventPMWakeupCallback

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

type DomainEventRTCChange

type DomainEventRTCChange struct {
	Utcoffset int64
}

func (DomainEventRTCChange) String

func (e DomainEventRTCChange) String() string

type DomainEventRTCChangeCallback

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

type DomainEventResumedDetailType

type DomainEventResumedDetailType int

type DomainEventShutdownDetailType

type DomainEventShutdownDetailType int

type DomainEventStartedDetailType

type DomainEventStartedDetailType int

type DomainEventStoppedDetailType

type DomainEventStoppedDetailType int

type DomainEventSuspendedDetailType

type DomainEventSuspendedDetailType int

type DomainEventTrayChange

type DomainEventTrayChange struct {
	DevAlias string
	Reason   ConnectDomainEventTrayChangeReason
}

func (DomainEventTrayChange) String

func (e DomainEventTrayChange) String() string

type DomainEventTrayChangeCallback

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

type DomainEventTunable

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

type DomainEventTunableCallback

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

type DomainEventTunableCpuPin

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

type DomainEventType

type DomainEventType int

type DomainEventUndefinedDetailType

type DomainEventUndefinedDetailType int

type DomainEventWatchdog

type DomainEventWatchdog struct {
	Action DomainEventWatchdogAction
}

func (DomainEventWatchdog) String

func (e DomainEventWatchdog) String() string

type DomainEventWatchdogAction

type DomainEventWatchdogAction int

type DomainEventWatchdogCallback

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

type DomainFSInfo

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

type DomainGetHostnameFlags

type DomainGetHostnameFlags uint

type DomainGetJobStatsFlags

type DomainGetJobStatsFlags int

type DomainGuestInfo

type DomainGuestInfo struct {
	Users       []DomainGuestInfoUser
	OS          *DomainGuestInfoOS
	TimeZone    *DomainGuestInfoTimeZone
	HostnameSet bool
	Hostname    string
	FileSystems []DomainGuestInfoFileSystem
}

type DomainGuestInfoFileSystem

type DomainGuestInfoFileSystem struct {
	MountPointSet bool
	MountPoint    string
	NameSet       bool
	Name          string
	FSTypeSet     bool
	FSType        string
	TotalBytesSet bool
	TotalBytes    uint64
	UsedBytesSet  bool
	UsedBytes     uint64
	Disks         []DomainGuestInfoFileSystemDisk
}

type DomainGuestInfoFileSystemDisk

type DomainGuestInfoFileSystemDisk struct {
	AliasSet  bool
	Alias     string
	SerialSet bool
	Serial    string
	DeviceSet bool
	Device    string
}

type DomainGuestInfoOS

type DomainGuestInfoOS struct {
	IDSet            bool
	ID               string
	NameSet          bool
	Name             string
	PrettyNameSet    bool
	PrettyName       string
	VersionSet       bool
	Version          string
	VersionIDSet     bool
	VersionID        string
	KernelReleaseSet bool
	KernelRelease    string
	KernelVersionSet bool
	KernelVersion    string
	MachineSet       bool
	Machine          string
	VariantSet       bool
	Variant          string
	VariantIDSet     bool
	VariantID        string
}

type DomainGuestInfoTimeZone

type DomainGuestInfoTimeZone struct {
	NameSet   bool
	Name      string
	OffsetSet bool
	Offset    int
}

type DomainGuestInfoTypes

type DomainGuestInfoTypes int

type DomainGuestInfoUser

type DomainGuestInfoUser struct {
	NameSet      bool
	Name         string
	DomainSet    bool
	Domain       string
	LoginTimeSet bool
	LoginTime    uint64
}

type DomainGuestVcpus

type DomainGuestVcpus struct {
	VcpusSet      bool
	Vcpus         []bool
	OnlineSet     bool
	Online        []bool
	OfflinableSet bool
	Offlinable    []bool
}

type DomainIOThreadInfo

type DomainIOThreadInfo struct {
	IOThreadID uint
	CpuMap     []bool
}

type DomainIPAddress

type DomainIPAddress struct {
	Type   int
	Addr   string
	Prefix uint
}

type DomainInfo

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

type DomainInterface

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

type DomainInterfaceAddressesSource

type DomainInterfaceAddressesSource int

type DomainInterfaceParameters

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

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

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
	MemPageSizeSet            bool
	MemPageSize               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
	OperationSet              bool
	Operation                 DomainJobOperationType
	MemPostcopyReqsSet        bool
	MemPostcopyReqs           uint64
	JobSuccessSet             bool
	JobSuccess                bool
	DiskTempUsedSet           bool
	DiskTempUsed              uint64
	DiskTempTotalSet          bool
	DiskTempTotal             uint64
	ErrorMessageSet           bool
	ErrorMessage              string
}

type DomainJobOperationType

type DomainJobOperationType int

type DomainJobType

type DomainJobType int

type DomainLaunchSecurityParameters

type DomainLaunchSecurityParameters struct {
	SEVMeasurementSet bool
	SEVMeasurement    string
}

type DomainLifecycle

type DomainLifecycle int

type DomainLifecycleAction

type DomainLifecycleAction int

type DomainMemoryFlags

type DomainMemoryFlags int

type DomainMemoryModFlags

type DomainMemoryModFlags int

type DomainMemoryParameters

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

type DomainMemoryStat

type DomainMemoryStat struct {
	Tag int32
	Val uint64
}

type DomainMemoryStatTags

type DomainMemoryStatTags int

type DomainMetadataType

type DomainMetadataType int

type DomainMigrateFlags

type DomainMigrateFlags int

type DomainMigrateMaxSpeedFlags

type DomainMigrateMaxSpeedFlags int

type DomainMigrateParameters

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
	ParallelConnectionsSet    bool
	ParallelConnections       int
	TLSDestinationSet         bool
	TLSDestination            string
}

type DomainModificationImpact

type DomainModificationImpact int

type DomainNostateReason

type DomainNostateReason int

type DomainNumaParameters

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

type DomainNumatuneMemMode

type DomainNumatuneMemMode int

type DomainOpenGraphicsFlags

type DomainOpenGraphicsFlags int

type DomainPMSuspendedDiskReason

type DomainPMSuspendedDiskReason int

type DomainPMSuspendedReason

type DomainPMSuspendedReason int

type DomainPausedReason

type DomainPausedReason int

type DomainPerfEvents

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
	CpuClockSet              bool
	CpuClock                 bool
	TaskClockSet             bool
	TaskClock                bool
	PageFaultsSet            bool
	PageFaults               bool
	ContextSwitchesSet       bool
	ContextSwitches          bool
	CpuMigrationsSet         bool
	CpuMigrations            bool
	PageFaultsMinSet         bool
	PageFaultsMin            bool
	PageFaultsMajSet         bool
	PageFaultsMaj            bool
	AlignmentFaultsSet       bool
	AlignmentFaults          bool
	EmulationFaultsSet       bool
	EmulationFaults          bool
}

type DomainProcessSignal

type DomainProcessSignal int

type DomainQemuAgentCommandTimeout

type DomainQemuAgentCommandTimeout int

type DomainQemuMonitorCommandFlags

type DomainQemuMonitorCommandFlags int

type DomainQemuMonitorEvent

type DomainQemuMonitorEvent struct {
	Event   string
	Seconds int64
	Micros  uint
	Details string
}

type DomainQemuMonitorEventCallback

type DomainQemuMonitorEventCallback func(c *Connect, d *Domain, event *DomainQemuMonitorEvent)

type DomainQemuMonitorEventFlags

type DomainQemuMonitorEventFlags int

type DomainRebootFlagValues

type DomainRebootFlagValues int

type DomainRunningReason

type DomainRunningReason int

type DomainSaveImageXMLFlags

type DomainSaveImageXMLFlags int

type DomainSaveRestoreFlags

type DomainSaveRestoreFlags int

type DomainSchedulerParameters

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

type DomainSetIOThreadParams

type DomainSetIOThreadParams struct {
	PollMaxNsSet  bool
	PollMaxNs     uint64
	PollGrowSet   bool
	PollGrow      uint
	PollShrinkSet bool
	PollShrink    uint
}

type DomainSetTimeFlags

type DomainSetTimeFlags int

type DomainSetUserPasswordFlags

type DomainSetUserPasswordFlags int

type DomainShutdownFlags

type DomainShutdownFlags int

type DomainShutdownReason

type DomainShutdownReason int

type DomainShutoffReason

type DomainShutoffReason int

type DomainSnapshot

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

func (*DomainSnapshot) HasMetadata

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

See also https://libvirt.org/html/libvirt-libvirt-domain-snapshot.html#virDomainSnapshotHasMetadata

type DomainSnapshotCreateFlags

type DomainSnapshotCreateFlags int

type DomainSnapshotDeleteFlags

type DomainSnapshotDeleteFlags int

type DomainSnapshotListFlags

type DomainSnapshotListFlags int

type DomainSnapshotRevertFlags

type DomainSnapshotRevertFlags int

type DomainSnapshotXMLFlags

type DomainSnapshotXMLFlags int

type DomainState

type DomainState int

type DomainStats

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

type DomainStatsBalloon

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

type DomainStatsBlock

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

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

type DomainStatsMemory

type DomainStatsMemory struct {
	BandwidthMonitor []DomainStatsMemoryBandwidthMonitor
}

type DomainStatsMemoryBandwidthMonitor

type DomainStatsMemoryBandwidthMonitor struct {
	NameSet  bool
	Name     string
	VCPUsSet bool
	VCPUs    string
	Nodes    []DomainStatsMemoryBandwidthMonitorNode
}

type DomainStatsMemoryBandwidthMonitorNode

type DomainStatsMemoryBandwidthMonitorNode struct {
	IDSet         bool
	ID            uint
	BytesLocalSet bool
	BytesLocal    uint64
	BytesTotalSet bool
	BytesTotal    uint64
}

type DomainStatsNet

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

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
	CpuClockSet              bool
	CpuClock                 uint64
	TaskClockSet             bool
	TaskClock                uint64
	PageFaultsSet            bool
	PageFaults               uint64
	ContextSwitchesSet       bool
	ContextSwitches          uint64
	CpuMigrationsSet         bool
	CpuMigrations            uint64
	PageFaultsMinSet         bool
	PageFaultsMin            uint64
	PageFaultsMajSet         bool
	PageFaultsMaj            uint64
	AlignmentFaultsSet       bool
	AlignmentFaults          uint64
	EmulationFaultsSet       bool
	EmulationFaults          uint64
}

type DomainStatsState

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

type DomainStatsTypes

type DomainStatsTypes int

type DomainStatsVcpu

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

type DomainUndefineFlagsValues

type DomainUndefineFlagsValues int

type DomainVcpuFlags

type DomainVcpuFlags int

type DomainVcpuInfo

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

type DomainXMLFlags

type DomainXMLFlags int

type Error

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

func (Error) Error

func (err Error) Error() string

func (Error) Is

func (err Error) Is(target error) bool

type ErrorDomain

type ErrorDomain int

type ErrorLevel

type ErrorLevel int

type ErrorNumber

type ErrorNumber int

func (ErrorNumber) Error

func (err ErrorNumber) Error() string

type EventHandleCallback

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

type EventHandleCallbackInfo

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

func (*EventHandleCallbackInfo) Free

func (i *EventHandleCallbackInfo) Free()

func (*EventHandleCallbackInfo) Invoke

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

type EventHandleType

type EventHandleType int

type EventLoop

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

type EventTimeoutCallback func(timer int)

type EventTimeoutCallbackInfo

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

func (*EventTimeoutCallbackInfo) Free

func (i *EventTimeoutCallbackInfo) Free()

func (*EventTimeoutCallbackInfo) Invoke

func (i *EventTimeoutCallbackInfo) Invoke(timer int)

type IPAddrType

type IPAddrType int

type Interface

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

func (*Interface) Destroy

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

See also https://libvirt.org/html/libvirt-libvirt-interface.html#virInterfaceDestroy

func (*Interface) GetMACString

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

See also https://libvirt.org/html/libvirt-libvirt-interface.html#virInterfaceGetMACString

func (*Interface) IsActive

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

See also https://libvirt.org/html/libvirt-libvirt-interface.html#virInterfaceIsActive

type InterfaceXMLFlags

type InterfaceXMLFlags int

type KeycodeSet

type KeycodeSet int

type NWFilter

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

func (*NWFilter) GetUUID

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

See also https://libvirt.org/html/libvirt-libvirt-nwfilter.html#virNWFilterGetUUID

func (*NWFilter) GetUUIDString

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

See also https://libvirt.org/html/libvirt-libvirt-nwfilter.html#virNWFilterGetUUIDString

func (*NWFilter) GetXMLDesc

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

See also https://libvirt.org/html/libvirt-libvirt-nwfilter.html#virNWFilterGetXMLDesc

func (*NWFilter) Undefine

func (f *NWFilter) Undefine() error

See also https://libvirt.org/html/libvirt-libvirt-nwfilter.html#virNWFilterUndefine

type NWFilterBinding

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

func (*NWFilterBinding) GetFilterName

func (f *NWFilterBinding) GetFilterName() (string, error)

See also https://libvirt.org/html/libvirt-libvirt-nwfilter.html#virNWFilterBindingGetFilterName

func (*NWFilterBinding) GetPortDev

func (f *NWFilterBinding) GetPortDev() (string, error)

See also https://libvirt.org/html/libvirt-libvirt-nwfilter.html#virNWFilterBindingGetPortDev

func (*NWFilterBinding) GetXMLDesc

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

See also https://libvirt.org/html/libvirt-libvirt-nwfilter.html#virNWFilterBindingGetXMLDesc

type Network

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

func (*Network) Destroy

func (n *Network) Destroy() error

See also https://libvirt.org/html/libvirt-libvirt-network.html#virNetworkDestroy

func (*Network) GetAutostart

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

See also https://libvirt.org/html/libvirt-libvirt-network.html#virNetworkGetAutostart

func (*Network) GetBridgeName

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

See also https://libvirt.org/html/libvirt-libvirt-network.html#virNetworkGetBridgeName

func (*Network) GetDHCPLeases

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

See also https://libvirt.org/html/libvirt-libvirt-network.html#virNetworkGetDHCPLeases

func (*Network) GetName

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

See also https://libvirt.org/html/libvirt-libvirt-network.html#virNetworkGetName

func (*Network) GetUUID

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

See also https://libvirt.org/html/libvirt-libvirt-network.html#virNetworkGetUUID

func (*Network) GetUUIDString

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

See also https://libvirt.org/html/libvirt-libvirt-network.html#virNetworkGetUUIDString

func (*Network) GetXMLDesc

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

See also https://libvirt.org/html/libvirt-libvirt-network.html#virNetworkGetXMLDesc

func (*Network) IsActive

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

See also https://libvirt.org/html/libvirt-libvirt-network.html#virNetworkIsActive

func (*Network) IsPersistent

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

See also https://libvirt.org/html/libvirt-libvirt-network.html#virNetworkIsPersistent

func (*Network) ListAllPorts

func (n *Network) ListAllPorts(flags uint) ([]NetworkPort, error)

See also https://libvirt.org/html/libvirt-libvirt-network.html#virNetworkListAllPorts

func (*Network) LookupNetworkPortByUUID

func (n *Network) LookupNetworkPortByUUID(uuid []byte) (*NetworkPort, error)

See also https://libvirt.org/html/libvirt-libvirt-network.html#virNetworkPortLookupByUUID

func (*Network) LookupNetworkPortByUUIDString

func (n *Network) LookupNetworkPortByUUIDString(uuid string) (*NetworkPort, error)

See also https://libvirt.org/html/libvirt-libvirt-network.html#virNetworkPortLookupByUUIDString

func (*Network) PortCreateXML

func (n *Network) PortCreateXML(xmlConfig string, flags uint) (*NetworkPort, error)

See also https://libvirt.org/html/libvirt-libvirt-network.html#virNetworkPortCreateXML

func (*Network) SetAutostart

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

See also https://libvirt.org/html/libvirt-libvirt-network.html#virNetworkSetAutostart

func (*Network) Undefine

func (n *Network) Undefine() error

See also https://libvirt.org/html/libvirt-libvirt-network.html#virNetworkUndefine

type NetworkDHCPLease

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

type NetworkEventID

type NetworkEventID int

type NetworkEventLifecycle

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

func (NetworkEventLifecycle) String

func (e NetworkEventLifecycle) String() string

type NetworkEventLifecycleCallback

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

type NetworkEventLifecycleType

type NetworkEventLifecycleType int

type NetworkPort

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

func (*NetworkPort) Delete

func (n *NetworkPort) Delete(flags uint) error

See also https://libvirt.org/html/libvirt-libvirt-network.html#virNetworkPortDelete

func (*NetworkPort) GetNetwork

func (n *NetworkPort) GetNetwork() (*Network, error)

See also https://libvirt.org/html/libvirt-libvirt-network.html#virNetworkPortGetNetwork

Contrary to the native C API behaviour, the Go API will acquire a reference on the returned Network, which must be released by calling Free()

func (*NetworkPort) GetParameters

func (d *NetworkPort) GetParameters(flags uint) (*NetworkPortParameters, error)

See also https://libvirt.org/html/libvirt-libvirt-network.html#virNetworkPortGetParameters

func (*NetworkPort) GetUUID

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

See also https://libvirt.org/html/libvirt-libvirt-network.html#virNetworkPortGetUUID

func (*NetworkPort) GetUUIDString

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

See also https://libvirt.org/html/libvirt-libvirt-network.html#virNetworkPortGetUUIDString

func (*NetworkPort) GetXMLDesc

func (d *NetworkPort) GetXMLDesc(flags uint) (string, error)

See also https://libvirt.org/html/libvirt-libvirt-network.html#virNetworkPortGetXMLDesc

func (*NetworkPort) SetParameters

func (d *NetworkPort) SetParameters(params *NetworkPortParameters, flags uint) error

See also https://libvirt.org/html/libvirt-libvirt-network.html#virNetworkPortSetParameters

type NetworkPortCreateFlags

type NetworkPortCreateFlags int

type NetworkPortParameters

type NetworkPortParameters 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 NetworkUpdateCommand

type NetworkUpdateCommand int

type NetworkUpdateFlags

type NetworkUpdateFlags int

type NetworkUpdateSection

type NetworkUpdateSection int

type NetworkXMLFlags

type NetworkXMLFlags int

type NodeAllocPagesFlags

type NodeAllocPagesFlags int

type NodeCPUStats

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

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

func (*NodeDevice) DetachFlags

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

See also https://libvirt.org/html/libvirt-libvirt-nodedev.html#virNodeDeviceDetachFlags

func (*NodeDevice) GetParent

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

See also https://libvirt.org/html/libvirt-libvirt-nodedev.html#virNodeDeviceGetParent

func (*NodeDevice) GetXMLDesc

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

See also https://libvirt.org/html/libvirt-libvirt-nodedev.html#virNodeDeviceGetXMLDesc

func (*NodeDevice) ListCaps

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

See also https://libvirt.org/html/libvirt-libvirt-nodedev.html#virNodeDeviceListCaps

func (*NodeDevice) NumOfCaps

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

See also https://libvirt.org/html/libvirt-libvirt-nodedev.html#virNodeDeviceNumOfCaps

func (*NodeDevice) ReAttach

func (n *NodeDevice) ReAttach() error

See also https://libvirt.org/html/libvirt-libvirt-nodedev.html#virNodeDeviceReAttach

type NodeDeviceEventGenericCallback

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

type NodeDeviceEventID

type NodeDeviceEventID int

type NodeDeviceEventLifecycle

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

func (NodeDeviceEventLifecycle) String

func (e NodeDeviceEventLifecycle) String() string

type NodeDeviceEventLifecycleCallback

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

type NodeDeviceEventLifecycleType

type NodeDeviceEventLifecycleType int

type NodeGetCPUStatsAllCPUs

type NodeGetCPUStatsAllCPUs int

type NodeInfo

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

func (*NodeInfo) GetMaxCPUs

func (ni *NodeInfo) GetMaxCPUs() uint32

type NodeMemoryParameters

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

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

type NodeSEVParameters

type NodeSEVParameters struct {
	PDHSet             bool
	PDH                string
	CertChainSet       bool
	CertChain          string
	CBitPosSet         bool
	CBitPos            uint
	ReducedPhysBitsSet bool
	ReducedPhysBits    uint
}

type NodeSecurityModel

type NodeSecurityModel struct {
	Model string
	Doi   string
}

type NodeSuspendTarget

type NodeSuspendTarget int

type Secret

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

func (*Secret) GetUUID

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

See also https://libvirt.org/html/libvirt-libvirt-secret.html#virSecretGetUUID

func (*Secret) GetUUIDString

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

See also https://libvirt.org/html/libvirt-libvirt-secret.html#virSecretGetUUIDString

func (*Secret) GetUsageID

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

See also https://libvirt.org/html/libvirt-libvirt-secret.html#virSecretGetUsageID

func (*Secret) GetUsageType

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

See also https://libvirt.org/html/libvirt-libvirt-secret.html#virSecretGetUsageType

func (*Secret) GetValue

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

See also https://libvirt.org/html/libvirt-libvirt-secret.html#virSecretGetValue

func (*Secret) GetXMLDesc

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

See also https://libvirt.org/html/libvirt-libvirt-secret.html#virSecretGetXMLDesc

func (*Secret) SetValue

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

See also https://libvirt.org/html/libvirt-libvirt-secret.html#virSecretSetValue

func (*Secret) Undefine

func (s *Secret) Undefine() error

See also https://libvirt.org/html/libvirt-libvirt-secret.html#virSecretUndefine

type SecretEventGenericCallback

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

type SecretEventID

type SecretEventID int

type SecretEventLifecycle

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

func (SecretEventLifecycle) String

func (e SecretEventLifecycle) String() string

type SecretEventLifecycleCallback

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

type SecretEventLifecycleType

type SecretEventLifecycleType int

type SecretUsageType

type SecretUsageType int

type SecurityLabel

type SecurityLabel struct {
	Label     string
	Enforcing bool
}

func DomainLxcEnterSecurityLabel

func DomainLxcEnterSecurityLabel(model *NodeSecurityModel, label *SecurityLabel, flags uint32) (*SecurityLabel, error)

type StoragePool

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

func (*StoragePool) GetAutostart

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

See also https://libvirt.org/html/libvirt-libvirt-storage.html#virStoragePoolGetAutostart

func (*StoragePool) GetUUID

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

See also https://libvirt.org/html/libvirt-libvirt-storage.html#virStoragePoolGetUUID

func (*StoragePool) GetUUIDString

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

See also https://libvirt.org/html/libvirt-libvirt-storage.html#virStoragePoolGetUUIDString

func (*StoragePool) IsActive

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

See also https://libvirt.org/html/libvirt-libvirt-storage.html#virStoragePoolIsActive

func (*StoragePool) IsPersistent

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

See also https://libvirt.org/html/libvirt-libvirt-storage.html#virStoragePoolIsPersistent

func (*StoragePool) ListAllStorageVolumes

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

See also https://libvirt.org/html/libvirt-libvirt-storage.html#virStoragePoolListAllVolumes

func (*StoragePool) ListStorageVolumes

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

See also https://libvirt.org/html/libvirt-libvirt-storage.html#virStoragePoolListVolumes

func (*StoragePool) LookupStorageVolByName

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

See also https://libvirt.org/html/libvirt-libvirt-storage.html#virStorageVolLookupByName

func (*StoragePool) NumOfStorageVolumes

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

See also https://libvirt.org/html/libvirt-libvirt-storage.html#virStoragePoolNumOfVolumes

func (*StoragePool) Refresh

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

See also https://libvirt.org/html/libvirt-libvirt-storage.html#virStoragePoolRefresh

func (*StoragePool) SetAutostart

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

See also https://libvirt.org/html/libvirt-libvirt-storage.html#virStoragePoolSetAutostart

func (*StoragePool) StorageVolCreateXML

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

See also https://libvirt.org/html/libvirt-libvirt-storage.html#virStorageVolCreateXML

func (*StoragePool) StorageVolCreateXMLFrom

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

See also https://libvirt.org/html/libvirt-libvirt-storage.html#virStorageVolCreateXMLFrom

func (*StoragePool) Undefine

func (p *StoragePool) Undefine() error

See also https://libvirt.org/html/libvirt-libvirt-storage.html#virStoragePoolUndefine

type StoragePoolBuildFlags

type StoragePoolBuildFlags int

type StoragePoolCreateFlags

type StoragePoolCreateFlags int

type StoragePoolDeleteFlags

type StoragePoolDeleteFlags int

type StoragePoolEventGenericCallback

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

type StoragePoolEventID

type StoragePoolEventID int

type StoragePoolEventLifecycle

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

func (StoragePoolEventLifecycle) String

func (e StoragePoolEventLifecycle) String() string

type StoragePoolEventLifecycleCallback

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

type StoragePoolEventLifecycleType

type StoragePoolEventLifecycleType int

type StoragePoolInfo

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

type StoragePoolState

type StoragePoolState int

type StorageVol

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

func (*StorageVol) Download

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

See also https://libvirt.org/html/libvirt-libvirt-storage.html#virStorageVolDownload

func (*StorageVol) GetXMLDesc

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

See also https://libvirt.org/html/libvirt-libvirt-storage.html#virStorageVolGetXMLDesc

func (*StorageVol) LookupPoolByVolume

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

See also https://libvirt.org/html/libvirt-libvirt-storage.html#virStoragePoolLookupByVolume

func (*StorageVol) Upload

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

See also https://libvirt.org/html/libvirt-libvirt-storage.html#virStorageVolUpload

func (*StorageVol) WipePattern

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

See also https://libvirt.org/html/libvirt-libvirt-storage.html#virStorageVolWipePattern

type StorageVolCreateFlags

type StorageVolCreateFlags int

type StorageVolDeleteFlags

type StorageVolDeleteFlags int

type StorageVolDownloadFlags

type StorageVolDownloadFlags int

type StorageVolInfo

type StorageVolInfo struct {
	Type       StorageVolType
	Capacity   uint64
	Allocation uint64
}

type StorageVolInfoFlags

type StorageVolInfoFlags int

type StorageVolResizeFlags

type StorageVolResizeFlags int

type StorageVolType

type StorageVolType int

type StorageVolUploadFlags

type StorageVolUploadFlags int

type StorageVolWipeAlgorithm

type StorageVolWipeAlgorithm int

type StorageXMLFlags

type StorageXMLFlags int

type Stream

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

func (*Stream) EventAddCallback

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

See also https://libvirt.org/html/libvirt-libvirt-stream.html#virStreamEventAddCallback

func (*Stream) EventRemoveCallback

func (v *Stream) EventRemoveCallback() error

See also https://libvirt.org/html/libvirt-libvirt-stream.html#virStreamEventRemoveCallback

func (*Stream) EventUpdateCallback

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

See also https://libvirt.org/html/libvirt-libvirt-stream.html#virStreamEventUpdateCallback

func (*Stream) Finish

func (v *Stream) Finish() error

See also https://libvirt.org/html/libvirt-libvirt-stream.html#virStreamFinish

func (*Stream) Recv

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

See also https://libvirt.org/html/libvirt-libvirt-stream.html#virStreamRecv

func (*Stream) RecvAll

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

See also https://libvirt.org/html/libvirt-libvirt-stream.html#virStreamRecvAll

func (*Stream) RecvFlags

func (v *Stream) RecvFlags(p []byte, flags StreamRecvFlagsValues) (int, error)

See also https://libvirt.org/html/libvirt-libvirt-stream.html#virStreamRecvFlags

func (*Stream) RecvHole

func (v *Stream) RecvHole(flags uint) (int64, error)

See also https://libvirt.org/html/libvirt-libvirt-stream.html#virStreamRecvHole

func (*Stream) Send

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

See also https://libvirt.org/html/libvirt-libvirt-stream.html#virStreamSend

func (*Stream) SendHole

func (v *Stream) SendHole(len int64, flags uint32) error

See also https://libvirt.org/html/libvirt-libvirt-stream.html#virStreamSendHole

func (*Stream) SparseRecvAll

func (v *Stream) SparseRecvAll(handler StreamSinkFunc, holeHandler StreamSinkHoleFunc) error

See also https://libvirt.org/html/libvirt-libvirt-stream.html#virStreamSparseRecvAll

func (*Stream) SparseSendAll

func (v *Stream) SparseSendAll(handler StreamSourceFunc, holeHandler StreamSourceHoleFunc, skipHandler StreamSourceSkipFunc) error

See also https://libvirt.org/html/libvirt-libvirt-stream.html#virStreamSparseSendAll

type StreamEventCallback

type StreamEventCallback func(*Stream, StreamEventType)

type StreamEventType

type StreamEventType int

type StreamFlags

type StreamFlags int

type StreamRecvFlagsValues

type StreamRecvFlagsValues int

type StreamSinkFunc

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

type StreamSinkHoleFunc

type StreamSinkHoleFunc func(*Stream, int64) error

type StreamSourceFunc

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

type StreamSourceHoleFunc

type StreamSourceHoleFunc func(*Stream) (bool, int64, error)

type StreamSourceSkipFunc

type StreamSourceSkipFunc func(*Stream, int64) error

type VcpuState

type VcpuState int
Documentation was rendered with GOOS=linux and GOARCH=amd64.

Jump to identifier

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to identifier