Documentation ¶
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-module 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.org/go/libvirt" ) 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
- func CloseRawPtr(c C.virConnectPtr) (int, error)
- func EventAddHandle(fd int, events EventHandleType, callback EventHandleCallback) (int, error)
- func EventAddTimeout(freq int, callback EventTimeoutCallback) (int, error)
- func EventRegisterDefaultImpl() error
- func EventRegisterImpl(impl EventLoop) error
- func EventRemoveHandle(watch int) error
- func EventRemoveTimeout(timer int) error
- func EventRunDefaultImpl() error
- func EventUpdateHandle(watch int, events EventHandleType)
- func EventUpdateTimeout(timer int, freq int)
- func GetVersion() (uint32, error)
- type CPUCompareResult
- type CloseCallback
- type Connect
- func (c *Connect) AllocPages(pageSizes map[int]int64, startCell int, cellCount uint, ...) (int, error)
- func (c *Connect) BaselineCPU(xmlCPUs []string, flags ConnectBaselineCPUFlags) (string, error)
- func (c *Connect) BaselineHypervisorCPU(emulator string, arch string, machine string, virttype string, ...) (string, error)
- func (c *Connect) Close() (int, error)
- func (c *Connect) CompareCPU(xmlDesc string, flags ConnectCompareCPUFlags) (CPUCompareResult, error)
- func (c *Connect) CompareHypervisorCPU(emulator string, arch string, machine string, virttype string, xmlDesc string, ...) (CPUCompareResult, error)
- func (c *Connect) DeviceCreateXML(xmlConfig string, flags NodeDeviceCreateXMLFlags) (*NodeDevice, error)
- func (c *Connect) DeviceDefineXML(xmlConfig string, flags NodeDeviceDefineXMLFlags) (*NodeDevice, error)
- func (c *Connect) DomainCreateXML(xmlConfig string, flags DomainCreateFlags) (*Domain, error)
- func (c *Connect) DomainCreateXMLWithFiles(xmlConfig string, files []os.File, flags DomainCreateFlags) (*Domain, error)
- func (c *Connect) DomainDefineXML(xmlConfig string) (*Domain, error)
- func (c *Connect) DomainDefineXMLFlags(xmlConfig string, flags DomainDefineFlags) (*Domain, error)
- func (c *Connect) DomainEventAgentLifecycleRegister(dom *Domain, callback DomainEventAgentLifecycleCallback) (int, error)
- func (c *Connect) DomainEventBalloonChangeRegister(dom *Domain, callback DomainEventBalloonChangeCallback) (int, error)
- func (c *Connect) DomainEventBlockJob2Register(dom *Domain, callback DomainEventBlockJobCallback) (int, error)
- func (c *Connect) DomainEventBlockJobRegister(dom *Domain, callback DomainEventBlockJobCallback) (int, error)
- func (c *Connect) DomainEventBlockThresholdRegister(dom *Domain, callback DomainEventBlockThresholdCallback) (int, error)
- func (c *Connect) DomainEventControlErrorRegister(dom *Domain, callback DomainEventGenericCallback) (int, error)
- func (c *Connect) DomainEventDeregister(callbackId int) error
- func (c *Connect) DomainEventDeviceAddedRegister(dom *Domain, callback DomainEventDeviceAddedCallback) (int, error)
- func (c *Connect) DomainEventDeviceRemovalFailedRegister(dom *Domain, callback DomainEventDeviceRemovalFailedCallback) (int, error)
- func (c *Connect) DomainEventDeviceRemovedRegister(dom *Domain, callback DomainEventDeviceRemovedCallback) (int, error)
- func (c *Connect) DomainEventDiskChangeRegister(dom *Domain, callback DomainEventDiskChangeCallback) (int, error)
- func (c *Connect) DomainEventGraphicsRegister(dom *Domain, callback DomainEventGraphicsCallback) (int, error)
- func (c *Connect) DomainEventIOErrorReasonRegister(dom *Domain, callback DomainEventIOErrorReasonCallback) (int, error)
- func (c *Connect) DomainEventIOErrorRegister(dom *Domain, callback DomainEventIOErrorCallback) (int, error)
- func (c *Connect) DomainEventJobCompletedRegister(dom *Domain, callback DomainEventJobCompletedCallback) (int, error)
- func (c *Connect) DomainEventLifecycleRegister(dom *Domain, callback DomainEventLifecycleCallback) (int, error)
- func (c *Connect) DomainEventMemoryDeviceSizeChangeRegister(dom *Domain, callback DomainEventMemoryDeviceSizeChangeCallback) (int, error)
- func (c *Connect) DomainEventMemoryFailureRegister(dom *Domain, callback DomainEventMemoryFailureCallback) (int, error)
- func (c *Connect) DomainEventMetadataChangeRegister(dom *Domain, callback DomainEventMetadataChangeCallback) (int, error)
- func (c *Connect) DomainEventMigrationIterationRegister(dom *Domain, callback DomainEventMigrationIterationCallback) (int, error)
- func (c *Connect) DomainEventPMSuspendDiskRegister(dom *Domain, callback DomainEventPMSuspendDiskCallback) (int, error)
- func (c *Connect) DomainEventPMSuspendRegister(dom *Domain, callback DomainEventPMSuspendCallback) (int, error)
- func (c *Connect) DomainEventPMWakeupRegister(dom *Domain, callback DomainEventPMWakeupCallback) (int, error)
- func (c *Connect) DomainEventRTCChangeRegister(dom *Domain, callback DomainEventRTCChangeCallback) (int, error)
- func (c *Connect) DomainEventRebootRegister(dom *Domain, callback DomainEventGenericCallback) (int, error)
- func (c *Connect) DomainEventTrayChangeRegister(dom *Domain, callback DomainEventTrayChangeCallback) (int, error)
- func (c *Connect) DomainEventTunableRegister(dom *Domain, callback DomainEventTunableCallback) (int, error)
- func (c *Connect) DomainEventWatchdogRegister(dom *Domain, callback DomainEventWatchdogCallback) (int, error)
- func (c *Connect) DomainQemuAttach(pid uint32, flags uint32) (*Domain, error)
- func (c *Connect) DomainQemuEventDeregister(callbackId int) error
- func (c *Connect) DomainQemuMonitorEventRegister(dom *Domain, event string, callback DomainQemuMonitorEventCallback, ...) (int, error)
- func (c *Connect) DomainRestore(srcFile string) error
- func (c *Connect) DomainRestoreFlags(srcFile, xmlConf string, flags DomainSaveRestoreFlags) error
- func (c *Connect) DomainRestoreParams(params DomainSaveRestoreParams, flags DomainSaveRestoreFlags) error
- func (c *Connect) DomainSaveImageDefineXML(file string, xml string, flags DomainSaveRestoreFlags) error
- func (c *Connect) DomainSaveImageGetXMLDesc(file string, flags DomainSaveImageXMLFlags) (string, error)
- func (c *Connect) DomainXMLFromNative(nativeFormat string, nativeConfig string, flags uint32) (string, error)
- func (c *Connect) DomainXMLToNative(nativeFormat string, domainXml string, flags uint32) (string, error)
- func (c *Connect) FindStoragePoolSources(pooltype string, srcSpec string, flags uint32) (string, error)
- func (c *Connect) GetAllDomainStats(doms []*Domain, statsTypes DomainStatsTypes, ...) ([]DomainStats, error)
- func (c *Connect) GetCPUMap(flags uint32) (map[int]bool, uint, error)
- func (c *Connect) GetCPUModelNames(arch string, flags uint32) ([]string, error)
- func (c *Connect) GetCPUStats(cpuNum int, flags uint32) (*NodeCPUStats, error)
- func (c *Connect) GetCapabilities() (string, error)
- func (c *Connect) GetCellsFreeMemory(startCell int, maxCells int) ([]uint64, error)
- func (c *Connect) GetDomainCapabilities(emulatorbin string, arch string, machine string, virttype string, flags uint32) (string, error)
- func (c *Connect) GetFreeMemory() (uint64, error)
- func (c *Connect) GetFreePages(pageSizes []uint64, startCell int, maxCells uint, flags uint32) ([]uint64, error)
- func (c *Connect) GetHostname() (string, error)
- func (c *Connect) GetLibVersion() (uint32, error)
- func (c *Connect) GetMaxVcpus(typeAttr string) (int, error)
- func (c *Connect) GetMemoryParameters(flags uint32) (*NodeMemoryParameters, error)
- func (c *Connect) GetMemoryStats(cellNum int, flags uint32) (*NodeMemoryStats, error)
- func (c *Connect) GetNodeInfo() (*NodeInfo, error)
- func (c *Connect) GetSEVInfo(flags uint32) (*NodeSEVParameters, error)
- func (c *Connect) GetSecurityModel() (*NodeSecurityModel, error)
- func (c *Connect) GetStoragePoolCapabilities(flags uint32) (string, error)
- func (c *Connect) GetSysinfo(flags uint32) (string, error)
- func (c *Connect) GetType() (string, error)
- func (c *Connect) GetURI() (string, error)
- func (c *Connect) GetVersion() (uint32, error)
- func (c *Connect) InterfaceChangeBegin(flags uint32) error
- func (c *Connect) InterfaceChangeCommit(flags uint32) error
- func (c *Connect) InterfaceChangeRollback(flags uint32) error
- func (c *Connect) InterfaceDefineXML(xmlConfig string, flags InterfaceDefineFlags) (*Interface, error)
- func (c *Connect) IsAlive() (bool, error)
- func (c *Connect) IsEncrypted() (bool, error)
- func (c *Connect) IsSecure() (bool, error)
- func (c *Connect) ListAllDomains(flags ConnectListAllDomainsFlags) ([]Domain, error)
- func (c *Connect) ListAllInterfaces(flags ConnectListAllInterfacesFlags) ([]Interface, error)
- func (c *Connect) ListAllNWFilterBindings(flags uint32) ([]NWFilterBinding, error)
- func (c *Connect) ListAllNWFilters(flags uint32) ([]NWFilter, error)
- func (c *Connect) ListAllNetworks(flags ConnectListAllNetworksFlags) ([]Network, error)
- func (c *Connect) ListAllNodeDevices(flags ConnectListAllNodeDeviceFlags) ([]NodeDevice, error)
- func (c *Connect) ListAllSecrets(flags ConnectListAllSecretsFlags) ([]Secret, error)
- func (c *Connect) ListAllStoragePools(flags ConnectListAllStoragePoolsFlags) ([]StoragePool, error)
- func (c *Connect) ListDefinedDomains() ([]string, error)
- func (c *Connect) ListDefinedInterfaces() ([]string, error)
- func (c *Connect) ListDefinedNetworks() ([]string, error)
- func (c *Connect) ListDefinedStoragePools() ([]string, error)
- func (c *Connect) ListDevices(cap string, flags uint32) ([]string, error)
- func (c *Connect) ListDomains() ([]uint32, error)
- func (c *Connect) ListInterfaces() ([]string, error)
- func (c *Connect) ListNWFilters() ([]string, error)
- func (c *Connect) ListNetworks() ([]string, error)
- func (c *Connect) ListSecrets() ([]string, error)
- func (c *Connect) ListStoragePools() ([]string, error)
- func (c *Connect) LookupDeviceByName(id string) (*NodeDevice, error)
- func (c *Connect) LookupDeviceSCSIHostByWWN(wwnn, wwpn string, flags uint32) (*NodeDevice, error)
- func (c *Connect) LookupDomainById(id uint32) (*Domain, error)
- func (c *Connect) LookupDomainByName(id string) (*Domain, error)
- func (c *Connect) LookupDomainByUUID(uuid []byte) (*Domain, error)
- func (c *Connect) LookupDomainByUUIDString(uuid string) (*Domain, error)
- func (c *Connect) LookupInterfaceByMACString(mac string) (*Interface, error)
- func (c *Connect) LookupInterfaceByName(name string) (*Interface, error)
- func (c *Connect) LookupNWFilterBindingByPortDev(name string) (*NWFilterBinding, error)
- func (c *Connect) LookupNWFilterByName(name string) (*NWFilter, error)
- func (c *Connect) LookupNWFilterByUUID(uuid []byte) (*NWFilter, error)
- func (c *Connect) LookupNWFilterByUUIDString(uuid string) (*NWFilter, error)
- func (c *Connect) LookupNetworkByName(name string) (*Network, error)
- func (c *Connect) LookupNetworkByUUID(uuid []byte) (*Network, error)
- func (c *Connect) LookupNetworkByUUIDString(uuid string) (*Network, error)
- func (c *Connect) LookupSecretByUUID(uuid []byte) (*Secret, error)
- func (c *Connect) LookupSecretByUUIDString(uuid string) (*Secret, error)
- func (c *Connect) LookupSecretByUsage(usageType SecretUsageType, usageID string) (*Secret, error)
- func (c *Connect) LookupStoragePoolByName(name string) (*StoragePool, error)
- func (c *Connect) LookupStoragePoolByTargetPath(path string) (*StoragePool, error)
- func (c *Connect) LookupStoragePoolByUUID(uuid []byte) (*StoragePool, error)
- func (c *Connect) LookupStoragePoolByUUIDString(uuid string) (*StoragePool, error)
- func (c *Connect) LookupStorageVolByKey(key string) (*StorageVol, error)
- func (c *Connect) LookupStorageVolByPath(path string) (*StorageVol, error)
- func (c *Connect) NWFilterBindingCreateXML(xmlConfig string, flags NWFilterBindingCreateFlags) (*NWFilterBinding, error)
- func (c *Connect) NWFilterDefineXML(xmlConfig string) (*NWFilter, error)
- func (c *Connect) NWFilterDefineXMLFlags(xmlConfig string, flags NWFilterDefineFlags) (*NWFilter, error)
- func (c *Connect) NetworkCreateXML(xmlConfig string) (*Network, error)
- func (c *Connect) NetworkCreateXMLFlags(xmlConfig string, flags NetworkCreateFlags) (*Network, error)
- func (c *Connect) NetworkDefineXML(xmlConfig string) (*Network, error)
- func (c *Connect) NetworkDefineXMLFlags(xmlConfig string, flags NetworkDefineFlags) (*Network, error)
- func (c *Connect) NetworkEventDeregister(callbackId int) error
- func (c *Connect) NetworkEventLifecycleRegister(net *Network, callback NetworkEventLifecycleCallback) (int, error)
- func (c *Connect) NetworkEventMetadataChangeRegister(net *Network, callback NetworkEventMetadataChangeCallback) (int, error)
- func (c *Connect) NewStream(flags StreamFlags) (*Stream, error)
- func (c *Connect) NodeDeviceEventDeregister(callbackId int) error
- func (c *Connect) NodeDeviceEventLifecycleRegister(device *NodeDevice, callback NodeDeviceEventLifecycleCallback) (int, error)
- func (c *Connect) NodeDeviceEventUpdateRegister(device *NodeDevice, callback NodeDeviceEventGenericCallback) (int, error)
- func (c *Connect) NumOfDefinedDomains() (int, error)
- func (c *Connect) NumOfDefinedInterfaces() (int, error)
- func (c *Connect) NumOfDefinedNetworks() (int, error)
- func (c *Connect) NumOfDefinedStoragePools() (int, error)
- func (c *Connect) NumOfDevices(cap string, flags uint32) (int, error)
- func (c *Connect) NumOfDomains() (int, error)
- func (c *Connect) NumOfInterfaces() (int, error)
- func (c *Connect) NumOfNWFilters() (int, error)
- func (c *Connect) NumOfNetworks() (int, error)
- func (c *Connect) NumOfSecrets() (int, error)
- func (c *Connect) NumOfStoragePools() (int, error)
- func (c *Connect) RawPtr() (C.virConnectPtr, error)
- func (c *Connect) Ref() error
- func (c *Connect) RegisterCloseCallback(callback CloseCallback) error
- func (c *Connect) SecretDefineXML(xmlConfig string, flags SecretDefineFlags) (*Secret, error)
- func (c *Connect) SecretEventDeregister(callbackId int) error
- func (c *Connect) SecretEventLifecycleRegister(secret *Secret, callback SecretEventLifecycleCallback) (int, error)
- func (c *Connect) SecretEventValueChangedRegister(secret *Secret, callback SecretEventGenericCallback) (int, error)
- func (c *Connect) SetIdentity(ident *ConnectIdentity, flags uint32) error
- func (c *Connect) SetKeepAlive(interval int, count uint) error
- func (c *Connect) SetMemoryParameters(params *NodeMemoryParameters, flags uint32) error
- func (c *Connect) StoragePoolCreateXML(xmlConfig string, flags StoragePoolCreateFlags) (*StoragePool, error)
- func (c *Connect) StoragePoolDefineXML(xmlConfig string, flags StoragePoolDefineFlags) (*StoragePool, error)
- func (c *Connect) StoragePoolEventDeregister(callbackId int) error
- func (c *Connect) StoragePoolEventLifecycleRegister(pool *StoragePool, callback StoragePoolEventLifecycleCallback) (int, error)
- func (c *Connect) StoragePoolEventRefreshRegister(pool *StoragePool, callback StoragePoolEventGenericCallback) (int, error)
- func (c *Connect) SuspendForDuration(target NodeSuspendTarget, duration uint64, flags uint32) error
- func (c *Connect) UnregisterCloseCallback() error
- type ConnectAuth
- type ConnectAuthCallback
- type ConnectBaselineCPUFlags
- type ConnectCloseReason
- type ConnectCompareCPUFlags
- type ConnectCredential
- type ConnectCredentialType
- type ConnectDomainEventAgentLifecycleReason
- type ConnectDomainEventAgentLifecycleState
- type ConnectDomainEventBlockJobStatus
- type ConnectDomainEventDiskChangeReason
- type ConnectDomainEventTrayChangeReason
- type ConnectFlags
- type ConnectGetAllDomainStatsFlags
- type ConnectIdentity
- type ConnectListAllDomainsFlags
- type ConnectListAllInterfacesFlags
- type ConnectListAllNetworksFlags
- type ConnectListAllNodeDeviceFlags
- type ConnectListAllSecretsFlags
- type ConnectListAllStoragePoolsFlags
- type Domain
- func (d *Domain) AbortJob() error
- func (d *Domain) AbortJobFlags(flags DomainAbortJobFlags) error
- func (d *Domain) AddIOThread(id uint, flags DomainModificationImpact) error
- func (d *Domain) AgentSetResponseTimeout(timeout int, flags uint32) error
- func (d *Domain) AttachDevice(xml string) error
- func (d *Domain) AttachDeviceFlags(xml string, flags DomainDeviceModifyFlags) error
- func (d *Domain) AuthorizedSSHKeysGet(user string, flags DomainAuthorizedSSHKeysFlags) ([]string, error)
- func (d *Domain) AuthorizedSSHKeysSet(user string, keys []string, flags DomainAuthorizedSSHKeysFlags) error
- func (d *Domain) BackupBegin(backupXML string, checkpointXML string, flags DomainBackupBeginFlags) error
- func (d *Domain) BackupGetXMLDesc(flags uint32) (string, error)
- func (d *Domain) BlockCommit(disk string, base string, top string, bandwidth uint64, ...) error
- func (d *Domain) BlockCopy(disk string, destxml string, params *DomainBlockCopyParameters, ...) error
- func (d *Domain) BlockJobAbort(disk string, flags DomainBlockJobAbortFlags) error
- func (d *Domain) BlockJobSetSpeed(disk string, bandwidth uint64, flags DomainBlockJobSetSpeedFlags) error
- func (d *Domain) BlockPeek(disk string, offset uint64, size uint64, flags uint32) ([]byte, error)
- func (d *Domain) BlockPull(disk string, bandwidth uint64, flags DomainBlockPullFlags) error
- func (d *Domain) BlockRebase(disk string, base string, bandwidth uint64, flags DomainBlockRebaseFlags) error
- func (d *Domain) BlockResize(disk string, size uint64, flags DomainBlockResizeFlags) error
- func (d *Domain) BlockStats(path string) (*DomainBlockStats, error)
- func (d *Domain) BlockStatsFlags(disk string, flags uint32) (*DomainBlockStats, error)
- func (d *Domain) CheckpointLookupByName(name string, flags uint32) (*DomainCheckpoint, error)
- func (d *Domain) CoreDump(to string, flags DomainCoreDumpFlags) error
- func (d *Domain) CoreDumpWithFormat(to string, format DomainCoreDumpFormat, flags DomainCoreDumpFlags) error
- func (d *Domain) Create() error
- func (d *Domain) CreateCheckpointXML(xml string, flags DomainCheckpointCreateFlags) (*DomainCheckpoint, error)
- func (d *Domain) CreateSnapshotXML(xml string, flags DomainSnapshotCreateFlags) (*DomainSnapshot, error)
- func (d *Domain) CreateWithFiles(files []os.File, flags DomainCreateFlags) error
- func (d *Domain) CreateWithFlags(flags DomainCreateFlags) error
- func (d *Domain) DelIOThread(id uint, flags DomainModificationImpact) error
- func (d *Domain) Destroy() error
- func (d *Domain) DestroyFlags(flags DomainDestroyFlags) error
- func (d *Domain) DetachDevice(xml string) error
- func (d *Domain) DetachDeviceAlias(alias string, flags DomainDeviceModifyFlags) error
- func (d *Domain) DetachDeviceFlags(xml string, flags DomainDeviceModifyFlags) error
- func (d *Domain) DomainGetConnect() (*Connect, error)
- func (d *Domain) DomainLxcEnterCGroup(flags uint32) error
- func (d *Domain) FDAssociate(name string, files []os.File, flags DomainFDAssociateFlags) error
- func (d *Domain) FSFreeze(mounts []string, flags uint32) error
- func (d *Domain) FSThaw(mounts []string, flags uint32) error
- func (d *Domain) FSTrim(mount string, minimum uint64, flags uint32) error
- func (d *Domain) Free() error
- func (d *Domain) GetAutostart() (bool, error)
- func (d *Domain) GetBlkioParameters(flags DomainModificationImpact) (*DomainBlkioParameters, error)
- func (d *Domain) GetBlockInfo(disk string, flags uint32) (*DomainBlockInfo, error)
- func (d *Domain) GetBlockIoTune(disk string, flags DomainModificationImpact) (*DomainBlockIoTuneParameters, error)
- func (d *Domain) GetBlockJobInfo(disk string, flags DomainBlockJobInfoFlags) (*DomainBlockJobInfo, error)
- func (d *Domain) GetCPUStats(startCpu int, nCpus uint, flags uint32) ([]DomainCPUStats, error)
- func (d *Domain) GetControlInfo(flags uint32) (*DomainControlInfo, error)
- func (d *Domain) GetDiskErrors(flags uint32) ([]DomainDiskError, error)
- func (d *Domain) GetEmulatorPinInfo(flags DomainModificationImpact) ([]bool, error)
- func (d *Domain) GetFSInfo(flags uint32) ([]DomainFSInfo, error)
- func (d *Domain) GetGuestInfo(types DomainGuestInfoTypes, flags uint32) (*DomainGuestInfo, error)
- func (d *Domain) GetGuestVcpus(flags uint32) (*DomainGuestVcpus, error)
- func (d *Domain) GetHostname(flags DomainGetHostnameFlags) (string, error)
- func (d *Domain) GetID() (uint, error)
- func (d *Domain) GetIOThreadInfo(flags DomainModificationImpact) ([]DomainIOThreadInfo, error)
- func (d *Domain) GetInfo() (*DomainInfo, error)
- func (d *Domain) GetInterfaceParameters(device string, flags DomainModificationImpact) (*DomainInterfaceParameters, error)
- func (d *Domain) GetJobInfo() (*DomainJobInfo, error)
- func (d *Domain) GetJobStats(flags DomainGetJobStatsFlags) (*DomainJobInfo, error)
- func (d *Domain) GetLaunchSecurityInfo(flags uint32) (*DomainLaunchSecurityParameters, error)
- func (d *Domain) GetMaxMemory() (uint64, error)
- func (d *Domain) GetMaxVcpus() (uint, error)
- func (d *Domain) GetMemoryParameters(flags DomainModificationImpact) (*DomainMemoryParameters, error)
- func (d *Domain) GetMessages(flags DomainMessageType) ([]string, error)
- func (d *Domain) GetMetadata(metadataType DomainMetadataType, uri string, flags DomainModificationImpact) (string, error)
- func (d *Domain) GetName() (string, error)
- func (d *Domain) GetNumaParameters(flags DomainModificationImpact) (*DomainNumaParameters, error)
- func (d *Domain) GetOSType() (string, error)
- func (d *Domain) GetPerfEvents(flags DomainModificationImpact) (*DomainPerfEvents, error)
- func (d *Domain) GetSchedulerParameters() (*DomainSchedulerParameters, error)
- func (d *Domain) GetSchedulerParametersFlags(flags DomainModificationImpact) (*DomainSchedulerParameters, error)
- func (d *Domain) GetSecurityLabel() (*SecurityLabel, error)
- func (d *Domain) GetSecurityLabelList() ([]SecurityLabel, error)
- func (d *Domain) GetState() (DomainState, int, error)
- func (d *Domain) GetTime(flags uint32) (int64, uint, error)
- func (d *Domain) GetUUID() ([]byte, error)
- func (d *Domain) GetUUIDString() (string, error)
- func (d *Domain) GetVcpuPinInfo(flags DomainModificationImpact) ([][]bool, error)
- func (d *Domain) GetVcpus() ([]DomainVcpuInfo, error)
- func (d *Domain) GetVcpusFlags(flags DomainVcpuFlags) (int32, error)
- func (d *Domain) GetXMLDesc(flags DomainXMLFlags) (string, error)
- func (d *Domain) GraphicsReload(typ DomainGraphicsReloadType, flags uint32) error
- func (d *Domain) HasCurrentSnapshot(flags uint32) (bool, error)
- func (d *Domain) HasManagedSaveImage(flags uint32) (bool, error)
- func (d *Domain) InjectNMI(flags uint32) error
- func (d *Domain) InterfaceStats(path string) (*DomainInterfaceStats, error)
- func (d *Domain) IsActive() (bool, error)
- func (d *Domain) IsPersistent() (bool, error)
- func (d *Domain) IsUpdated() (bool, error)
- func (d *Domain) ListAllCheckpoints(flags DomainCheckpointListFlags) ([]DomainCheckpoint, error)
- func (d *Domain) ListAllInterfaceAddresses(src DomainInterfaceAddressesSource) ([]DomainInterface, error)
- func (d *Domain) ListAllSnapshots(flags DomainSnapshotListFlags) ([]DomainSnapshot, error)
- func (d *Domain) LxcEnterNamespace(fdlist []os.File, flags uint32) ([]os.File, error)
- func (d *Domain) LxcOpenNamespace(flags uint32) ([]os.File, error)
- func (d *Domain) ManagedSave(flags DomainSaveRestoreFlags) error
- func (d *Domain) ManagedSaveDefineXML(xml string, flags uint32) error
- func (d *Domain) ManagedSaveGetXMLDesc(flags DomainSaveImageXMLFlags) (string, error)
- func (d *Domain) ManagedSaveRemove(flags uint32) error
- func (d *Domain) MemoryPeek(start uint64, size uint64, flags DomainMemoryFlags) ([]byte, error)
- func (d *Domain) MemoryStats(nrStats uint32, flags uint32) ([]DomainMemoryStat, error)
- func (d *Domain) Migrate(dconn *Connect, flags DomainMigrateFlags, dname string, uri string, ...) (*Domain, error)
- func (d *Domain) Migrate2(dconn *Connect, dxml string, flags DomainMigrateFlags, dname string, ...) (*Domain, error)
- func (d *Domain) Migrate3(dconn *Connect, params *DomainMigrateParameters, flags DomainMigrateFlags) (*Domain, error)
- func (d *Domain) MigrateGetCompressionCache(flags uint32) (uint64, error)
- func (d *Domain) MigrateGetMaxDowntime(flags uint32) (uint64, error)
- func (d *Domain) MigrateGetMaxSpeed(flags DomainMigrateMaxSpeedFlags) (uint64, error)
- func (d *Domain) MigrateSetCompressionCache(size uint64, flags uint32) error
- func (d *Domain) MigrateSetMaxDowntime(downtime uint64, flags uint32) error
- func (d *Domain) MigrateSetMaxSpeed(speed uint64, flags DomainMigrateMaxSpeedFlags) error
- func (d *Domain) MigrateStartPostCopy(flags uint32) error
- func (d *Domain) MigrateToURI(duri string, flags DomainMigrateFlags, dname string, bandwidth uint64) error
- func (d *Domain) MigrateToURI2(dconnuri string, miguri string, dxml string, flags DomainMigrateFlags, ...) error
- func (d *Domain) MigrateToURI3(dconnuri string, params *DomainMigrateParameters, flags DomainMigrateFlags) error
- func (d *Domain) OpenChannel(name string, stream *Stream, flags DomainChannelFlags) error
- func (d *Domain) OpenConsole(devname string, stream *Stream, flags DomainConsoleFlags) error
- func (d *Domain) OpenGraphics(idx uint, file os.File, flags DomainOpenGraphicsFlags) error
- func (d *Domain) OpenGraphicsFD(idx uint, flags DomainOpenGraphicsFlags) (*os.File, error)
- func (d *Domain) PMSuspendForDuration(target NodeSuspendTarget, duration uint64, flags uint32) error
- func (d *Domain) PMWakeup(flags uint32) error
- func (d *Domain) PinEmulator(cpumap []bool, flags DomainModificationImpact) error
- func (d *Domain) PinIOThread(iothreadid uint, cpumap []bool, flags DomainModificationImpact) error
- func (d *Domain) PinVcpu(vcpu uint, cpuMap []bool) error
- func (d *Domain) PinVcpuFlags(vcpu uint, cpuMap []bool, flags DomainModificationImpact) error
- func (d *Domain) QemuAgentCommand(command string, timeout DomainQemuAgentCommandTimeout, flags uint32) (string, error)
- func (d *Domain) QemuMonitorCommand(command string, flags DomainQemuMonitorCommandFlags) (string, error)
- func (d *Domain) QemuMonitorCommandWithFiles(command string, infiles []os.File, flags DomainQemuMonitorCommandFlags) (string, []*os.File, error)
- func (d *Domain) Reboot(flags DomainRebootFlagValues) error
- func (c *Domain) Ref() error
- func (d *Domain) Rename(name string, flags uint32) error
- func (d *Domain) Reset(flags uint32) error
- func (d *Domain) Resume() error
- func (d *Domain) Save(destFile string) error
- func (d *Domain) SaveFlags(destFile string, destXml string, flags DomainSaveRestoreFlags) error
- func (d *Domain) SaveParams(params DomainSaveRestoreParams, flags DomainSaveRestoreFlags) error
- func (d *Domain) Screenshot(stream *Stream, screen, flags uint32) (string, error)
- func (d *Domain) SendKey(codeset, holdtime uint, keycodes []uint, flags uint32) error
- func (d *Domain) SendProcessSignal(pid int64, signum DomainProcessSignal, flags uint32) error
- func (d *Domain) SetAutostart(autostart bool) error
- func (d *Domain) SetBlkioParameters(params *DomainBlkioParameters, flags DomainModificationImpact) error
- func (d *Domain) SetBlockIoTune(disk string, params *DomainBlockIoTuneParameters, ...) error
- func (d *Domain) SetBlockThreshold(dev string, threshold uint64, flags uint32) error
- func (d *Domain) SetGuestVcpus(cpus []bool, state bool, flags uint32) error
- func (d *Domain) SetIOThreadParams(iothreadid uint, params *DomainSetIOThreadParams, ...) error
- func (d *Domain) SetInterfaceParameters(device string, params *DomainInterfaceParameters, ...) error
- func (d *Domain) SetLaunchSecurityState(params *DomainLaunchSecurityStateParameters, flags uint32) error
- func (d *Domain) SetLifecycleAction(lifecycleType DomainLifecycle, action DomainLifecycleAction, flags uint32) error
- func (d *Domain) SetMaxMemory(memory uint64) error
- func (d *Domain) SetMemory(memory uint64) error
- func (d *Domain) SetMemoryFlags(memory uint64, flags DomainMemoryModFlags) error
- func (d *Domain) SetMemoryParameters(params *DomainMemoryParameters, flags DomainModificationImpact) error
- func (d *Domain) SetMemoryStatsPeriod(period int, flags DomainMemoryModFlags) error
- func (d *Domain) SetMetadata(metadataType DomainMetadataType, metaDataCont, uriKey, uri string, ...) error
- func (d *Domain) SetNumaParameters(params *DomainNumaParameters, flags DomainModificationImpact) error
- func (d *Domain) SetPerfEvents(params *DomainPerfEvents, flags DomainModificationImpact) error
- func (d *Domain) SetSchedulerParameters(params *DomainSchedulerParameters) error
- func (d *Domain) SetSchedulerParametersFlags(params *DomainSchedulerParameters, flags DomainModificationImpact) error
- func (d *Domain) SetTime(secs int64, nsecs uint, flags DomainSetTimeFlags) error
- func (d *Domain) SetUserPassword(user string, password string, flags DomainSetUserPasswordFlags) error
- func (d *Domain) SetVcpu(cpus []bool, state bool, flags uint32) error
- func (d *Domain) SetVcpus(vcpu uint) error
- func (d *Domain) SetVcpusFlags(vcpu uint, flags DomainVcpuFlags) error
- func (d *Domain) Shutdown() error
- func (d *Domain) ShutdownFlags(flags DomainShutdownFlags) error
- func (d *Domain) SnapshotCurrent(flags uint32) (*DomainSnapshot, error)
- func (d *Domain) SnapshotListNames(flags DomainSnapshotListFlags) ([]string, error)
- func (d *Domain) SnapshotLookupByName(name string, flags uint32) (*DomainSnapshot, error)
- func (d *Domain) SnapshotNum(flags DomainSnapshotListFlags) (int, error)
- func (d *Domain) StartDirtyRateCalc(secs int, flags DomainDirtyRateCalcFlags) error
- func (d *Domain) Suspend() error
- func (d *Domain) Undefine() error
- func (d *Domain) UndefineFlags(flags DomainUndefineFlagsValues) error
- func (d *Domain) UpdateDeviceFlags(xml string, flags DomainDeviceModifyFlags) error
- type DomainAbortJobFlags
- type DomainAgentSetResponseTimeoutValues
- type DomainAuthorizedSSHKeysFlags
- type DomainBackupBeginFlags
- type DomainBlkioParameters
- type DomainBlockCommitFlags
- type DomainBlockCopyFlags
- type DomainBlockCopyParameters
- type DomainBlockInfo
- type DomainBlockIoTuneParameters
- type DomainBlockJobAbortFlags
- type DomainBlockJobInfo
- type DomainBlockJobInfoFlags
- type DomainBlockJobSetSpeedFlags
- type DomainBlockJobType
- type DomainBlockPullFlags
- type DomainBlockRebaseFlags
- type DomainBlockResizeFlags
- type DomainBlockStats
- type DomainBlockedReason
- type DomainCPUStats
- type DomainCPUStatsTags
- type DomainChannelFlags
- type DomainCheckpoint
- func (s *DomainCheckpoint) Delete(flags DomainCheckpointDeleteFlags) error
- func (s *DomainCheckpoint) Free() error
- func (s *DomainCheckpoint) GetName() (string, error)
- func (s *DomainCheckpoint) GetParent(flags uint32) (*DomainCheckpoint, error)
- func (s *DomainCheckpoint) GetXMLDesc(flags DomainCheckpointXMLFlags) (string, error)
- func (d *DomainCheckpoint) ListAllChildren(flags DomainCheckpointListFlags) ([]DomainCheckpoint, error)
- func (c *DomainCheckpoint) Ref() error
- type DomainCheckpointCreateFlags
- type DomainCheckpointDeleteFlags
- type DomainCheckpointListFlags
- type DomainCheckpointXMLFlags
- type DomainConsoleFlags
- type DomainControlErrorReason
- type DomainControlInfo
- type DomainControlState
- type DomainCoreDumpFlags
- type DomainCoreDumpFormat
- type DomainCrashedReason
- type DomainCreateFlags
- type DomainDefineFlags
- type DomainDestroyFlags
- type DomainDeviceModifyFlags
- type DomainDirtyRateCalcFlags
- type DomainDirtyRateStatus
- type DomainDiskError
- type DomainDiskErrorCode
- type DomainEventAgentLifecycle
- type DomainEventAgentLifecycleCallback
- type DomainEventBalloonChange
- type DomainEventBalloonChangeCallback
- type DomainEventBlockJob
- type DomainEventBlockJobCallback
- type DomainEventBlockThreshold
- type DomainEventBlockThresholdCallback
- type DomainEventCrashedDetailType
- type DomainEventDefinedDetailType
- type DomainEventDeviceAdded
- type DomainEventDeviceAddedCallback
- type DomainEventDeviceRemovalFailed
- type DomainEventDeviceRemovalFailedCallback
- type DomainEventDeviceRemoved
- type DomainEventDeviceRemovedCallback
- type DomainEventDiskChange
- type DomainEventDiskChangeCallback
- type DomainEventGenericCallback
- type DomainEventGraphics
- type DomainEventGraphicsAddress
- type DomainEventGraphicsAddressType
- type DomainEventGraphicsCallback
- type DomainEventGraphicsPhase
- type DomainEventGraphicsSubjectIdentity
- type DomainEventIOError
- type DomainEventIOErrorAction
- type DomainEventIOErrorCallback
- type DomainEventIOErrorReason
- type DomainEventIOErrorReasonCallback
- type DomainEventJobCompleted
- type DomainEventJobCompletedCallback
- type DomainEventLifecycle
- type DomainEventLifecycleCallback
- type DomainEventMemoryDeviceSizeChange
- type DomainEventMemoryDeviceSizeChangeCallback
- type DomainEventMemoryFailure
- type DomainEventMemoryFailureCallback
- type DomainEventMetadataChange
- type DomainEventMetadataChangeCallback
- type DomainEventMigrationIteration
- type DomainEventMigrationIterationCallback
- type DomainEventPMSuspend
- type DomainEventPMSuspendCallback
- type DomainEventPMSuspendDisk
- type DomainEventPMSuspendDiskCallback
- type DomainEventPMSuspendedDetailType
- type DomainEventPMWakeup
- type DomainEventPMWakeupCallback
- type DomainEventRTCChange
- type DomainEventRTCChangeCallback
- type DomainEventResumedDetailType
- type DomainEventShutdownDetailType
- type DomainEventStartedDetailType
- type DomainEventStoppedDetailType
- type DomainEventSuspendedDetailType
- type DomainEventTrayChange
- type DomainEventTrayChangeCallback
- type DomainEventTunable
- type DomainEventTunableCallback
- type DomainEventTunableCpuPin
- type DomainEventType
- type DomainEventUndefinedDetailType
- type DomainEventWatchdog
- type DomainEventWatchdogAction
- type DomainEventWatchdogCallback
- type DomainFDAssociateFlags
- type DomainFSInfo
- type DomainGetHostnameFlags
- type DomainGetJobStatsFlags
- type DomainGraphicsReloadType
- type DomainGuestInfo
- type DomainGuestInfoDisk
- type DomainGuestInfoDiskDependency
- type DomainGuestInfoFileSystem
- type DomainGuestInfoFileSystemDisk
- type DomainGuestInfoIPAddress
- type DomainGuestInfoInterface
- type DomainGuestInfoOS
- type DomainGuestInfoTimeZone
- type DomainGuestInfoTypes
- type DomainGuestInfoUser
- type DomainGuestVcpus
- type DomainIOThreadInfo
- type DomainIPAddress
- type DomainInfo
- type DomainInterface
- type DomainInterfaceAddressesSource
- type DomainInterfaceParameters
- type DomainInterfaceStats
- type DomainJobInfo
- type DomainJobOperationType
- type DomainJobType
- type DomainLaunchSecurityParameters
- type DomainLaunchSecurityStateParameters
- type DomainLifecycle
- type DomainLifecycleAction
- type DomainMemoryFailureActionType
- type DomainMemoryFailureFlags
- type DomainMemoryFailureRecipientType
- type DomainMemoryFlags
- type DomainMemoryModFlags
- type DomainMemoryParameters
- type DomainMemoryStat
- type DomainMemoryStatTags
- type DomainMessageType
- type DomainMetadataType
- type DomainMigrateFlags
- type DomainMigrateMaxSpeedFlags
- type DomainMigrateParameters
- type DomainModificationImpact
- type DomainNostateReason
- type DomainNumaParameters
- type DomainNumatuneMemMode
- type DomainOpenGraphicsFlags
- type DomainPMSuspendedDiskReason
- type DomainPMSuspendedReason
- type DomainPausedReason
- type DomainPerfEvents
- type DomainProcessSignal
- type DomainQemuAgentCommandTimeout
- type DomainQemuMonitorCommandFlags
- type DomainQemuMonitorEvent
- type DomainQemuMonitorEventCallback
- type DomainQemuMonitorEventFlags
- type DomainRebootFlagValues
- type DomainRunningReason
- type DomainSaveImageXMLFlags
- type DomainSaveRestoreFlags
- type DomainSaveRestoreParams
- type DomainSchedulerParameters
- type DomainSetIOThreadParams
- type DomainSetTimeFlags
- type DomainSetUserPasswordFlags
- type DomainShutdownFlags
- type DomainShutdownReason
- type DomainShutoffReason
- type DomainSnapshot
- func (s *DomainSnapshot) Delete(flags DomainSnapshotDeleteFlags) error
- func (s *DomainSnapshot) Free() error
- func (s *DomainSnapshot) GetName() (string, error)
- func (s *DomainSnapshot) GetParent(flags uint32) (*DomainSnapshot, error)
- func (s *DomainSnapshot) GetXMLDesc(flags DomainSnapshotXMLFlags) (string, error)
- func (s *DomainSnapshot) HasMetadata(flags uint32) (bool, error)
- func (s *DomainSnapshot) IsCurrent(flags uint32) (bool, error)
- func (d *DomainSnapshot) ListAllChildren(flags DomainSnapshotListFlags) ([]DomainSnapshot, error)
- func (s *DomainSnapshot) ListChildrenNames(flags DomainSnapshotListFlags) ([]string, error)
- func (s *DomainSnapshot) NumChildren(flags DomainSnapshotListFlags) (int, error)
- func (c *DomainSnapshot) Ref() error
- func (s *DomainSnapshot) RevertToSnapshot(flags DomainSnapshotRevertFlags) error
- type DomainSnapshotCreateFlags
- type DomainSnapshotDeleteFlags
- type DomainSnapshotListFlags
- type DomainSnapshotRevertFlags
- type DomainSnapshotXMLFlags
- type DomainState
- type DomainStats
- type DomainStatsBalloon
- type DomainStatsBlock
- type DomainStatsCPU
- type DomainStatsDirtyRate
- type DomainStatsMemory
- type DomainStatsMemoryBandwidthMonitor
- type DomainStatsMemoryBandwidthMonitorNode
- type DomainStatsNet
- type DomainStatsPerf
- type DomainStatsState
- type DomainStatsTypes
- type DomainStatsVcpu
- type DomainUndefineFlagsValues
- type DomainVcpuFlags
- type DomainVcpuInfo
- type DomainXMLFlags
- type Error
- type ErrorDomain
- type ErrorLevel
- type ErrorNumber
- type EventHandleCallback
- type EventHandleCallbackInfo
- type EventHandleType
- type EventLoop
- type EventTimeoutCallback
- type EventTimeoutCallbackInfo
- type IPAddrType
- type Interface
- func (n *Interface) Create(flags uint32) error
- func (n *Interface) Destroy(flags uint32) error
- func (n *Interface) Free() error
- func (n *Interface) GetMACString() (string, error)
- func (n *Interface) GetName() (string, error)
- func (n *Interface) GetXMLDesc(flags InterfaceXMLFlags) (string, error)
- func (n *Interface) IsActive() (bool, error)
- func (c *Interface) Ref() error
- func (n *Interface) Undefine() error
- type InterfaceDefineFlags
- type InterfaceXMLFlags
- type KeycodeSet
- type NWFilter
- type NWFilterBinding
- type NWFilterBindingCreateFlags
- type NWFilterDefineFlags
- type Network
- func (n *Network) Create() error
- func (n *Network) Destroy() error
- func (n *Network) Free() error
- func (n *Network) GetAutostart() (bool, error)
- func (n *Network) GetBridgeName() (string, error)
- func (n *Network) GetDHCPLeases() ([]NetworkDHCPLease, error)
- func (n *Network) GetMetadata(metadataType NetworkMetadataType, uri string, flags NetworkUpdateFlags) (string, error)
- func (n *Network) GetName() (string, error)
- func (n *Network) GetUUID() ([]byte, error)
- func (n *Network) GetUUIDString() (string, error)
- func (n *Network) GetXMLDesc(flags NetworkXMLFlags) (string, error)
- func (n *Network) IsActive() (bool, error)
- func (n *Network) IsPersistent() (bool, error)
- func (n *Network) ListAllPorts(flags uint32) ([]NetworkPort, error)
- func (n *Network) LookupNetworkPortByUUID(uuid []byte) (*NetworkPort, error)
- func (n *Network) LookupNetworkPortByUUIDString(uuid string) (*NetworkPort, error)
- func (n *Network) PortCreateXML(xmlConfig string, flags uint32) (*NetworkPort, error)
- func (c *Network) Ref() error
- func (n *Network) SetAutostart(autostart bool) error
- func (n *Network) SetMetadata(metadataType NetworkMetadataType, metaDataCont, uriKey, uri string, ...) error
- func (n *Network) Undefine() error
- func (n *Network) Update(cmd NetworkUpdateCommand, section NetworkUpdateSection, parentIndex int, ...) error
- type NetworkCreateFlags
- type NetworkDHCPLease
- type NetworkDefineFlags
- type NetworkEventID
- type NetworkEventLifecycle
- type NetworkEventLifecycleCallback
- type NetworkEventLifecycleType
- type NetworkEventMetadataChange
- type NetworkEventMetadataChangeCallback
- type NetworkMetadataType
- type NetworkPort
- func (n *NetworkPort) Delete(flags uint32) error
- func (n *NetworkPort) Free() error
- func (n *NetworkPort) GetNetwork() (*Network, error)
- func (d *NetworkPort) GetParameters(flags uint32) (*NetworkPortParameters, error)
- func (n *NetworkPort) GetUUID() ([]byte, error)
- func (n *NetworkPort) GetUUIDString() (string, error)
- func (d *NetworkPort) GetXMLDesc(flags uint32) (string, error)
- func (c *NetworkPort) Ref() error
- func (d *NetworkPort) SetParameters(params *NetworkPortParameters, flags uint32) error
- type NetworkPortCreateFlags
- type NetworkPortParameters
- type NetworkUpdateCommand
- type NetworkUpdateFlags
- type NetworkUpdateSection
- type NetworkXMLFlags
- type NodeAllocPagesFlags
- type NodeCPUStats
- type NodeDevice
- func (p *NodeDevice) Create(flags uint32) error
- func (n *NodeDevice) Destroy() error
- func (n *NodeDevice) Detach() error
- func (n *NodeDevice) DetachFlags(driverName string, flags uint32) error
- func (n *NodeDevice) Free() error
- func (n *NodeDevice) GetAutostart() (bool, error)
- func (n *NodeDevice) GetName() (string, error)
- func (n *NodeDevice) GetParent() (string, error)
- func (n *NodeDevice) GetXMLDesc(flags NodeDeviceXMLFlags) (string, error)
- func (n *NodeDevice) IsActive() (bool, error)
- func (n *NodeDevice) IsPersistent() (bool, error)
- func (p *NodeDevice) ListCaps() ([]string, error)
- func (p *NodeDevice) NumOfCaps() (int, error)
- func (n *NodeDevice) ReAttach() error
- func (c *NodeDevice) Ref() error
- func (n *NodeDevice) Reset() error
- func (n *NodeDevice) SetAutostart(autostart bool) error
- func (p *NodeDevice) Undefine(flags uint32) error
- func (n *NodeDevice) Update(xml string, flags NodeDeviceUpdateFlags) error
- type NodeDeviceCreateXMLFlags
- type NodeDeviceDefineXMLFlags
- type NodeDeviceEventGenericCallback
- type NodeDeviceEventID
- type NodeDeviceEventLifecycle
- type NodeDeviceEventLifecycleCallback
- type NodeDeviceEventLifecycleType
- type NodeDeviceUpdateFlags
- type NodeDeviceXMLFlags
- type NodeGetCPUStatsAllCPUs
- type NodeInfo
- type NodeMemoryParameters
- type NodeMemoryStats
- type NodeSEVParameters
- type NodeSecurityModel
- type NodeSuspendTarget
- type Secret
- func (s *Secret) Free() error
- func (s *Secret) GetUUID() ([]byte, error)
- func (s *Secret) GetUUIDString() (string, error)
- func (s *Secret) GetUsageID() (string, error)
- func (s *Secret) GetUsageType() (SecretUsageType, error)
- func (s *Secret) GetValue(flags uint32) ([]byte, error)
- func (s *Secret) GetXMLDesc(flags uint32) (string, error)
- func (c *Secret) Ref() error
- func (s *Secret) SetValue(value []byte, flags uint32) error
- func (s *Secret) Undefine() error
- type SecretDefineFlags
- type SecretEventGenericCallback
- type SecretEventID
- type SecretEventLifecycle
- type SecretEventLifecycleCallback
- type SecretEventLifecycleType
- type SecretUsageType
- type SecurityLabel
- type StoragePool
- func (p *StoragePool) Build(flags StoragePoolBuildFlags) error
- func (p *StoragePool) Create(flags StoragePoolCreateFlags) error
- func (p *StoragePool) Delete(flags StoragePoolDeleteFlags) error
- func (p *StoragePool) Destroy() error
- func (p *StoragePool) Free() error
- func (p *StoragePool) GetAutostart() (bool, error)
- func (p *StoragePool) GetInfo() (*StoragePoolInfo, error)
- func (p *StoragePool) GetName() (string, error)
- func (p *StoragePool) GetUUID() ([]byte, error)
- func (p *StoragePool) GetUUIDString() (string, error)
- func (p *StoragePool) GetXMLDesc(flags StorageXMLFlags) (string, error)
- func (p *StoragePool) IsActive() (bool, error)
- func (p *StoragePool) IsPersistent() (bool, error)
- func (p *StoragePool) ListAllStorageVolumes(flags uint32) ([]StorageVol, error)
- func (p *StoragePool) ListStorageVolumes() ([]string, error)
- func (p *StoragePool) LookupStorageVolByName(name string) (*StorageVol, error)
- func (p *StoragePool) NumOfStorageVolumes() (int, error)
- func (c *StoragePool) Ref() error
- func (p *StoragePool) Refresh(flags uint32) error
- func (p *StoragePool) SetAutostart(autostart bool) error
- func (p *StoragePool) StorageVolCreateXML(xmlConfig string, flags StorageVolCreateFlags) (*StorageVol, error)
- func (p *StoragePool) StorageVolCreateXMLFrom(xmlConfig string, clonevol *StorageVol, flags StorageVolCreateFlags) (*StorageVol, error)
- func (p *StoragePool) Undefine() error
- type StoragePoolBuildFlags
- type StoragePoolCreateFlags
- type StoragePoolDefineFlags
- type StoragePoolDeleteFlags
- type StoragePoolEventGenericCallback
- type StoragePoolEventID
- type StoragePoolEventLifecycle
- type StoragePoolEventLifecycleCallback
- type StoragePoolEventLifecycleType
- type StoragePoolInfo
- type StoragePoolState
- type StorageVol
- func (v *StorageVol) Delete(flags StorageVolDeleteFlags) error
- func (v *StorageVol) Download(stream *Stream, offset, length uint64, flags StorageVolDownloadFlags) error
- func (v *StorageVol) Free() error
- func (v *StorageVol) GetInfo() (*StorageVolInfo, error)
- func (v *StorageVol) GetInfoFlags(flags StorageVolInfoFlags) (*StorageVolInfo, error)
- func (v *StorageVol) GetKey() (string, error)
- func (v *StorageVol) GetName() (string, error)
- func (v *StorageVol) GetPath() (string, error)
- func (v *StorageVol) GetXMLDesc(flags uint32) (string, error)
- func (v *StorageVol) LookupPoolByVolume() (*StoragePool, error)
- func (c *StorageVol) Ref() error
- func (v *StorageVol) Resize(capacity uint64, flags StorageVolResizeFlags) error
- func (v *StorageVol) Upload(stream *Stream, offset, length uint64, flags StorageVolUploadFlags) error
- func (v *StorageVol) Wipe(flags uint32) error
- func (v *StorageVol) WipePattern(algorithm StorageVolWipeAlgorithm, flags uint32) error
- type StorageVolCreateFlags
- type StorageVolDeleteFlags
- type StorageVolDownloadFlags
- type StorageVolInfo
- type StorageVolInfoFlags
- type StorageVolResizeFlags
- type StorageVolType
- type StorageVolUploadFlags
- type StorageVolWipeAlgorithm
- type StorageXMLFlags
- type Stream
- func (v *Stream) Abort() error
- func (v *Stream) EventAddCallback(events StreamEventType, callback StreamEventCallback) error
- func (v *Stream) EventRemoveCallback() error
- func (v *Stream) EventUpdateCallback(events StreamEventType) error
- func (v *Stream) Finish() error
- func (v *Stream) Free() error
- func (v *Stream) Recv(p []byte) (int, error)
- func (v *Stream) RecvAll(handler StreamSinkFunc) error
- func (v *Stream) RecvFlags(p []byte, flags StreamRecvFlagsValues) (int, error)
- func (v *Stream) RecvHole(flags uint32) (int64, error)
- func (c *Stream) Ref() error
- func (v *Stream) Send(p []byte) (int, error)
- func (v *Stream) SendAll(handler StreamSourceFunc) error
- func (v *Stream) SendHole(len int64, flags uint32) error
- func (v *Stream) SparseRecvAll(handler StreamSinkFunc, holeHandler StreamSinkHoleFunc) error
- func (v *Stream) SparseSendAll(handler StreamSourceFunc, holeHandler StreamSourceHoleFunc, ...) error
- type StreamEventCallback
- type StreamEventType
- type StreamFlags
- type StreamRecvFlagsValues
- type StreamSinkFunc
- type StreamSinkHoleFunc
- type StreamSourceFunc
- type StreamSourceHoleFunc
- type StreamSourceSkipFunc
- type TypedParamValue
- type VcpuHostCpuState
- type VcpuState
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_COMPARE_CPU_FAIL_INCOMPATIBLE = ConnectCompareCPUFlags(C.VIR_CONNECT_COMPARE_CPU_FAIL_INCOMPATIBLE) CONNECT_COMPARE_CPU_VALIDATE_XML = ConnectCompareCPUFlags(C.VIR_CONNECT_COMPARE_CPU_VALIDATE_XML) )
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) CONNECT_LIST_NODE_DEVICES_CAP_CSS_DEV = ConnectListAllNodeDeviceFlags(C.VIR_CONNECT_LIST_NODE_DEVICES_CAP_CSS_DEV) CONNECT_LIST_NODE_DEVICES_CAP_VDPA = ConnectListAllNodeDeviceFlags(C.VIR_CONNECT_LIST_NODE_DEVICES_CAP_VDPA) CONNECT_LIST_NODE_DEVICES_CAP_AP_CARD = ConnectListAllNodeDeviceFlags(C.VIR_CONNECT_LIST_NODE_DEVICES_CAP_AP_CARD) CONNECT_LIST_NODE_DEVICES_CAP_AP_QUEUE = ConnectListAllNodeDeviceFlags(C.VIR_CONNECT_LIST_NODE_DEVICES_CAP_AP_QUEUE) CONNECT_LIST_NODE_DEVICES_CAP_AP_MATRIX = ConnectListAllNodeDeviceFlags(C.VIR_CONNECT_LIST_NODE_DEVICES_CAP_AP_MATRIX) CONNECT_LIST_NODE_DEVICES_CAP_VPD = ConnectListAllNodeDeviceFlags(C.VIR_CONNECT_LIST_NODE_DEVICES_CAP_VPD) CONNECT_LIST_NODE_DEVICES_INACTIVE = ConnectListAllNodeDeviceFlags(C.VIR_CONNECT_LIST_NODE_DEVICES_INACTIVE) CONNECT_LIST_NODE_DEVICES_ACTIVE = ConnectListAllNodeDeviceFlags(C.VIR_CONNECT_LIST_NODE_DEVICES_ACTIVE) CONNECT_LIST_NODE_DEVICES_PERSISTENT = ConnectListAllNodeDeviceFlags(C.VIR_CONNECT_LIST_NODE_DEVICES_PERSISTENT) CONNECT_LIST_NODE_DEVICES_TRANSIENT = ConnectListAllNodeDeviceFlags(C.VIR_CONNECT_LIST_NODE_DEVICES_TRANSIENT) )
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) DOMAIN_DESTROY_REMOVE_LOGS = DomainDestroyFlags(C.VIR_DOMAIN_DESTROY_REMOVE_LOGS) )
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 DOMAIN_UNDEFINE_TPM = DomainUndefineFlagsValues(C.VIR_DOMAIN_UNDEFINE_TPM) // Also remove any TPM state DOMAIN_UNDEFINE_KEEP_TPM = DomainUndefineFlagsValues(C.VIR_DOMAIN_UNDEFINE_KEEP_TPM) // Keep TPM state )
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) DOMAIN_START_RESET_NVRAM = DomainCreateFlags(C.VIR_DOMAIN_START_RESET_NVRAM) )
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 */ DOMAIN_RUNNING_POSTCOPY_FAILED = DomainRunningReason(C.VIR_DOMAIN_RUNNING_POSTCOPY_FAILED) /* running in post-copy migration mode after failure */ )
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 */ DOMAIN_PAUSED_API_ERROR = DomainPausedReason(C.VIR_DOMAIN_PAUSED_API_ERROR) /* Some APIs (e.g., migration, snapshot) internally need to suspend a domain. This paused state reason is used when resume operation at the end of such API fails.*/ )
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) DOMAIN_EVENT_RESUMED_POSTCOPY_FAILED = DomainEventResumedDetailType(C.VIR_DOMAIN_EVENT_RESUMED_POSTCOPY_FAILED) )
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) DOMAIN_BLOCK_COPY_SYNCHRONOUS_WRITES = DomainBlockCopyFlags(C.VIR_DOMAIN_BLOCK_COPY_SYNCHRONOUS_WRITES) )
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_BLOCK_RESIZE_BYTES = DomainBlockResizeFlags(C.VIR_DOMAIN_BLOCK_RESIZE_BYTES) DOMAIN_BLOCK_RESIZE_CAPACITY = DomainBlockResizeFlags(C.VIR_DOMAIN_BLOCK_RESIZE_CAPACITY) )
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) DOMAIN_CORE_DUMP_FORMAT_WIN_DMP = DomainCoreDumpFormat(C.VIR_DOMAIN_CORE_DUMP_FORMAT_WIN_DMP) )
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) DOMAIN_NUMATUNE_MEM_RESTRICTIVE = DomainNumatuneMemMode(C.VIR_DOMAIN_NUMATUNE_MEM_RESTRICTIVE) )
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) DOMAIN_SAVE_RESET_NVRAM = DomainSaveRestoreFlags(C.VIR_DOMAIN_SAVE_RESET_NVRAM) )
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) DOMAIN_STATS_DIRTYRATE = DomainStatsTypes(C.VIR_DOMAIN_STATS_DIRTYRATE) DOMAIN_STATS_VM = DomainStatsTypes(C.VIR_DOMAIN_STATS_VM) )
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) MIGRATE_NON_SHARED_SYNCHRONOUS_WRITES = DomainMigrateFlags(C.VIR_MIGRATE_NON_SHARED_SYNCHRONOUS_WRITES) MIGRATE_POSTCOPY_RESUME = DomainMigrateFlags(C.VIR_MIGRATE_POSTCOPY_RESUME) MIGRATE_ZEROCOPY = DomainMigrateFlags(C.VIR_MIGRATE_ZEROCOPY) )
const ( VCPU_OFFLINE = VcpuState(C.VIR_VCPU_OFFLINE) VCPU_RUNNING = VcpuState(C.VIR_VCPU_RUNNING) VCPU_BLOCKED = VcpuState(C.VIR_VCPU_BLOCKED) )
const ( VCPU_INFO_CPU_OFFLINE = VcpuHostCpuState(C.VIR_VCPU_INFO_CPU_OFFLINE) VCPU_INFO_CPU_UNAVAILABLE = VcpuHostCpuState(C.VIR_VCPU_INFO_CPU_UNAVAILABLE) )
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) DOMAIN_JOB_OPERATION_SNAPSHOT_DELETE = DomainJobOperationType(C.VIR_DOMAIN_JOB_OPERATION_SNAPSHOT_DELETE) )
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) DOMAIN_GUEST_INFO_DISKS = DomainGuestInfoTypes(C.VIR_DOMAIN_GUEST_INFO_DISKS) DOMAIN_GUEST_INFO_INTERFACES = DomainGuestInfoTypes(C.VIR_DOMAIN_GUEST_INFO_INTERFACES) )
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_EVENT_MEMORY_FAILURE_RECIPIENT_HYPERVISOR = DomainMemoryFailureRecipientType(C.VIR_DOMAIN_EVENT_MEMORY_FAILURE_RECIPIENT_HYPERVISOR) DOMAIN_EVENT_MEMORY_FAILURE_RECIPIENT_GUEST = DomainMemoryFailureRecipientType(C.VIR_DOMAIN_EVENT_MEMORY_FAILURE_RECIPIENT_GUEST) )
const ( DOMAIN_EVENT_MEMORY_FAILURE_ACTION_IGNORE = DomainMemoryFailureActionType(C.VIR_DOMAIN_EVENT_MEMORY_FAILURE_ACTION_IGNORE) DOMAIN_EVENT_MEMORY_FAILURE_ACTION_INJECT = DomainMemoryFailureActionType(C.VIR_DOMAIN_EVENT_MEMORY_FAILURE_ACTION_INJECT) DOMAIN_EVENT_MEMORY_FAILURE_ACTION_FATAL = DomainMemoryFailureActionType(C.VIR_DOMAIN_EVENT_MEMORY_FAILURE_ACTION_FATAL) DOMAIN_EVENT_MEMORY_FAILURE_ACTION_RESET = DomainMemoryFailureActionType(C.VIR_DOMAIN_EVENT_MEMORY_FAILURE_ACTION_RESET) )
const ( DOMAIN_MEMORY_FAILURE_ACTION_REQUIRED = DomainMemoryFailureFlags(C.VIR_DOMAIN_MEMORY_FAILURE_ACTION_REQUIRED) DOMAIN_MEMORY_FAILURE_RECURSIVE = DomainMemoryFailureFlags(C.VIR_DOMAIN_MEMORY_FAILURE_RECURSIVE) )
const ( DOMAIN_AUTHORIZED_SSH_KEYS_SET_APPEND = DomainAuthorizedSSHKeysFlags(C.VIR_DOMAIN_AUTHORIZED_SSH_KEYS_SET_APPEND) DOMAIN_AUTHORIZED_SSH_KEYS_SET_REMOVE = DomainAuthorizedSSHKeysFlags(C.VIR_DOMAIN_AUTHORIZED_SSH_KEYS_SET_REMOVE) )
const ( DOMAIN_MESSAGE_DEPRECATION = DomainMessageType(C.VIR_DOMAIN_MESSAGE_DEPRECATION) DOMAIN_MESSAGE_TAINTING = DomainMessageType(C.VIR_DOMAIN_MESSAGE_TAINTING) )
const ( DOMAIN_DIRTYRATE_UNSTARTED = DomainDirtyRateStatus(C.VIR_DOMAIN_DIRTYRATE_UNSTARTED) DOMAIN_DIRTYRATE_MEASURING = DomainDirtyRateStatus(C.VIR_DOMAIN_DIRTYRATE_MEASURING) DOMAIN_DIRTYRATE_MEASURED = DomainDirtyRateStatus(C.VIR_DOMAIN_DIRTYRATE_MEASURED) )
const ( DOMAIN_DIRTYRATE_MODE_PAGE_SAMPLING = DomainDirtyRateCalcFlags(C.VIR_DOMAIN_DIRTYRATE_MODE_PAGE_SAMPLING) DOMAIN_DIRTYRATE_MODE_DIRTY_BITMAP = DomainDirtyRateCalcFlags(C.VIR_DOMAIN_DIRTYRATE_MODE_DIRTY_BITMAP) DOMAIN_DIRTYRATE_MODE_DIRTY_RING = DomainDirtyRateCalcFlags(C.VIR_DOMAIN_DIRTYRATE_MODE_DIRTY_RING) )
const ( DOMAIN_FD_ASSOCIATE_SECLABEL_RESTORE = DomainFDAssociateFlags(C.VIR_DOMAIN_FD_ASSOCIATE_SECLABEL_RESTORE) DOMAIN_FD_ASSOCIATE_SECLABEL_WRITABLE = DomainFDAssociateFlags(C.VIR_DOMAIN_FD_ASSOCIATE_SECLABEL_WRITABLE) )
const ( DOMAIN_GRAPHICS_RELOAD_TYPE_ANY = DomainGraphicsReloadType(C.VIR_DOMAIN_GRAPHICS_RELOAD_TYPE_ANY) DOMAIN_GRAPHICS_RELOAD_TYPE_VNC = DomainGraphicsReloadType(C.VIR_DOMAIN_GRAPHICS_RELOAD_TYPE_VNC) )
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) DOMAIN_CHECKPOINT_CREATE_REDEFINE_VALIDATE = DomainCheckpointCreateFlags(C.VIR_DOMAIN_CHECKPOINT_CREATE_REDEFINE_VALIDATE) )
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) DOMAIN_SNAPSHOT_REVERT_RESET_NVRAM = DomainSnapshotRevertFlags(C.VIR_DOMAIN_SNAPSHOT_REVERT_RESET_NVRAM) )
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) // checkpoint is inconsistent ERR_CHECKPOINT_INCONSISTENT = ErrorNumber(C.VIR_ERR_CHECKPOINT_INCONSISTENT) // more than one matching domain found ERR_MULTIPLE_DOMAINS = ErrorNumber(C.VIR_ERR_MULTIPLE_DOMAINS) // The metadata is not present ERR_NO_NETWORK_METADATA = ErrorNumber(C.VIR_ERR_NO_NETWORK_METADATA) )
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) // Error from Cloud Hypervisor FROM_CH = ErrorDomain(C.VIR_FROM_CH) )
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 ( NETWORK_EVENT_ID_LIFECYCLE = NetworkEventID(C.VIR_NETWORK_EVENT_ID_LIFECYCLE) NETWORK_EVENT_ID_METADATA_CHANGE = NetworkEventID(C.VIR_NETWORK_EVENT_ID_METADATA_CHANGE) )
const ( NETWORK_METADATA_DESCRIPTION = NetworkMetadataType(C.VIR_NETWORK_METADATA_DESCRIPTION) NETWORK_METADATA_TITLE = NetworkMetadataType(C.VIR_NETWORK_METADATA_TITLE) NETWORK_METADATA_ELEMENT = NetworkMetadataType(C.VIR_NETWORK_METADATA_ELEMENT) )
const ( NETWORK_PORT_CREATE_RECLAIM = NetworkPortCreateFlags(C.VIR_NETWORK_PORT_CREATE_RECLAIM) NETWORK_PORT_CREATE_VALIDATE = NetworkPortCreateFlags(C.VIR_NETWORK_PORT_CREATE_VALIDATE) )
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) NODE_DEVICE_EVENT_DEFINED = NodeDeviceEventLifecycleType(C.VIR_NODE_DEVICE_EVENT_DEFINED) NODE_DEVICE_EVENT_UNDEFINED = NodeDeviceEventLifecycleType(C.VIR_NODE_DEVICE_EVENT_UNDEFINED) )
const ( NODE_DEVICE_UPDATE_AFFECT_CURRENT = NodeDeviceUpdateFlags(C.VIR_NODE_DEVICE_UPDATE_AFFECT_CURRENT) NODE_DEVICE_UPDATE_AFFECT_CONFIG = NodeDeviceUpdateFlags(C.VIR_NODE_DEVICE_UPDATE_AFFECT_CONFIG) NODE_DEVICE_UPDATE_AFFECT_LIVE = NodeDeviceUpdateFlags(C.VIR_NODE_DEVICE_UPDATE_AFFECT_LIVE) )
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) STORAGE_VOL_CREATE_VALIDATE = StorageVolCreateFlags(C.VIR_STORAGE_VOL_CREATE_VALIDATE) )
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 (
DOMAIN_ABORT_JOB_POSTCOPY = DomainAbortJobFlags(C.VIR_DOMAIN_ABORT_JOB_POSTCOPY)
)
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_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_DEFINE_VALIDATE = InterfaceDefineFlags(C.VIR_INTERFACE_DEFINE_VALIDATE)
)
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_CREATE_VALIDATE = NetworkCreateFlags(C.VIR_NETWORK_CREATE_VALIDATE)
)
const (
NETWORK_DEFINE_VALIDATE = NetworkDefineFlags(C.VIR_NETWORK_DEFINE_VALIDATE)
)
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_DEVICE_CREATE_XML_VALIDATE = NodeDeviceCreateXMLFlags(C.VIR_NODE_DEVICE_CREATE_XML_VALIDATE)
)
const (
NODE_DEVICE_DEFINE_XML_VALIDATE = NodeDeviceDefineXMLFlags(C.VIR_NODE_DEVICE_DEFINE_XML_VALIDATE)
)
const (
NODE_DEVICE_XML_INACTIVE = NodeDeviceXMLFlags(C.VIR_NODE_DEVICE_XML_INACTIVE)
)
const (
NODE_MEMORY_STATS_ALL_CELLS = int(C.VIR_NODE_MEMORY_STATS_ALL_CELLS)
)
const (
NWFILTER_BINDING_CREATE_VALIDATE = NetworkPortCreateFlags(C.VIR_NWFILTER_BINDING_CREATE_VALIDATE)
)
const (
NWFILTER_DEFINE_VALIDATE = NWFilterDefineFlags(C.VIR_NWFILTER_DEFINE_VALIDATE)
)
const (
SECRET_DEFINE_VALIDATE = SecretDefineFlags(C.VIR_SECRET_DEFINE_VALIDATE)
)
const (
STORAGE_POOL_DEFINE_VALIDATE = StoragePoolDefineFlags(C.VIR_STORAGE_POOL_DEFINE_VALIDATE)
)
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)
)
Variables ¶
This section is empty.
Functions ¶
func CloseRawPtr ¶ added in v1.9008.0
func CloseRawPtr(c C.virConnectPtr) (int, error)
Unref (and possibly close) raw libvirt connection object, previously obtained via RawPtr().
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
Note that registering an event loop implementation must be done before creating any Connect object instance
func EventRegisterImpl ¶
See also https://libvirt.org/html/libvirt-libvirt-event.html#virEventRegisterImpl
Note that registering an event loop implementation must be done before creating any Connect object instance
func EventRemoveHandle ¶
See also https://libvirt.org/html/libvirt-libvirt-event.html#virEventRemoveHandle
func EventRemoveTimeout ¶
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 ¶
See also https://libvirt.org/html/libvirt-libvirt-event.html#virEventUpdateTimeout
Types ¶
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 ¶
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 NewConnectWithAuthDefault ¶
func NewConnectWithAuthDefault(uri string, 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 ¶
See also https://libvirt.org/html/libvirt-libvirt-host.html#virConnectClose
func (*Connect) CompareCPU ¶
func (c *Connect) CompareCPU(xmlDesc string, flags ConnectCompareCPUFlags) (CPUCompareResult, error)
See also https://libvirt.org/html/libvirt-libvirt-host.html#virConnectCompareCPU
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 NodeDeviceCreateXMLFlags) (*NodeDevice, error)
See also https://libvirt.org/html/libvirt-libvirt-nodedev.html#virNodeDeviceCreateXML
func (*Connect) DeviceDefineXML ¶
func (c *Connect) DeviceDefineXML(xmlConfig string, flags NodeDeviceDefineXMLFlags) (*NodeDevice, error)
See also https://libvirt.org/html/libvirt-libvirt-nodedev.html#virNodeDeviceDefineXML
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 ¶
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 (*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) DomainEventMemoryDeviceSizeChangeRegister ¶ added in v1.7009.0
func (c *Connect) DomainEventMemoryDeviceSizeChangeRegister(dom *Domain, callback DomainEventMemoryDeviceSizeChangeCallback) (int, error)
func (*Connect) DomainEventMemoryFailureRegister ¶
func (c *Connect) DomainEventMemoryFailureRegister(dom *Domain, callback DomainEventMemoryFailureCallback) (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 ¶
See also https://libvirt.org/html/libvirt-libvirt-qemu.html#virDomainQemuAttach
func (*Connect) DomainQemuEventDeregister ¶
See also https://libvirt.org/html/libvirt-libvirt-qemu.html#virConnectDomainQemuMonitorEventDeregister
func (*Connect) DomainQemuMonitorEventRegister ¶
func (c *Connect) DomainQemuMonitorEventRegister(dom *Domain, event string, callback DomainQemuMonitorEventCallback, flags DomainQemuMonitorEventFlags) (int, error)
See also https://libvirt.org/html/libvirt-libvirt-qemu.html#virConnectDomainQemuMonitorEventRegister
func (*Connect) DomainRestore ¶
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) DomainRestoreParams ¶ added in v1.8004.0
func (c *Connect) DomainRestoreParams(params DomainSaveRestoreParams, flags DomainSaveRestoreFlags) error
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainRestoreParams
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
Note that each struct element in the returned 'DomainStats' array will contain a pointer to a 'Domain' object which holds a new reference. This pointer may or may not be the same as any pointers passed into the 'doms' parameter, but will at least refer to the same libvirt object.
The caller must invoke 'Free' on the 'Domain' object in each array element, in order to release the references.
func (*Connect) GetCPUMap ¶
See also https://libvirt.org/html/libvirt-libvirt-host.html#virNodeGetCPUMap
func (*Connect) GetCPUModelNames ¶
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 ¶
See also https://libvirt.org/html/libvirt-libvirt-host.html#virConnectGetCapabilities
func (*Connect) GetCellsFreeMemory ¶
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 ¶
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 ¶
See also https://libvirt.org/html/libvirt-libvirt-host.html#virConnectGetHostname
func (*Connect) GetLibVersion ¶
See also https://libvirt.org/html/libvirt-libvirt-host.html#virConnectGetLibVersion
func (*Connect) GetMaxVcpus ¶
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 ¶
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 ¶
See also https://libvirt.org/html/libvirt-libvirt-storage.html#virConnectGetStoragePoolCapabilities
func (*Connect) GetSysinfo ¶
See also https://libvirt.org/html/libvirt-libvirt-host.html#virConnectGetSysinfo
func (*Connect) GetType ¶
See also https://libvirt.org/html/libvirt-libvirt-host.html#virConnectGetType
func (*Connect) GetURI ¶
See also https://libvirt.org/html/libvirt-libvirt-host.html#virConnectGetURI
func (*Connect) GetVersion ¶
See also https://libvirt.org/html/libvirt-libvirt-host.html#virConnectGetVersion
func (*Connect) InterfaceChangeBegin ¶
See also https://libvirt.org/html/libvirt-libvirt-interface.html#virInterfaceChangeBegin
func (*Connect) InterfaceChangeCommit ¶
See also https://libvirt.org/html/libvirt-libvirt-interface.html#virInterfaceChangeCommit
func (*Connect) InterfaceChangeRollback ¶
See also https://libvirt.org/html/libvirt-libvirt-interface.html#virInterfaceChangeRollback
func (*Connect) InterfaceDefineXML ¶
func (c *Connect) InterfaceDefineXML(xmlConfig string, flags InterfaceDefineFlags) (*Interface, error)
See also https://libvirt.org/html/libvirt-libvirt-interface.html#virInterfaceDefineXML
func (*Connect) IsAlive ¶
See also https://libvirt.org/html/libvirt-libvirt-host.html#virConnectIsAlive
func (*Connect) IsEncrypted ¶
See also https://libvirt.org/html/libvirt-libvirt-host.html#virConnectIsEncrypted
func (*Connect) IsSecure ¶
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) ListAllInterfaces ¶
func (c *Connect) ListAllInterfaces(flags ConnectListAllInterfacesFlags) ([]Interface, error)
See also https://libvirt.org/html/libvirt-libvirt-interface.html#virConnectListAllInterfaces
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 ¶
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 ¶
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virConnectListDefinedDomains
func (*Connect) ListDefinedInterfaces ¶
See also https://libvirt.org/html/libvirt-libvirt-interface.html#virConnectListDefinedInterfaces
func (*Connect) ListDefinedNetworks ¶
See also https://libvirt.org/html/libvirt-libvirt-network.html#virConnectListDefinedNetworks
func (*Connect) ListDefinedStoragePools ¶
See also https://libvirt.org/html/libvirt-libvirt-storage.html#virConnectListDefinedStoragePools
func (*Connect) ListDevices ¶
See also https://libvirt.org/html/libvirt-libvirt-nodedev.html#virNodeListDevices
func (*Connect) ListDomains ¶
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virConnectListDomains
func (*Connect) ListInterfaces ¶
See also https://libvirt.org/html/libvirt-libvirt-interface.html#virConnectListInterfaces
func (*Connect) ListNWFilters ¶
See also https://libvirt.org/html/libvirt-libvirt-nwfilter.html#virConnectListNWFilters
func (*Connect) ListNetworks ¶
See also https://libvirt.org/html/libvirt-libvirt-network.html#virConnectListNetworks
func (*Connect) ListSecrets ¶
See also https://libvirt.org/html/libvirt-libvirt-secret.html#virConnectListSecrets
func (*Connect) ListStoragePools ¶
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 ¶
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainLookupByID
func (*Connect) LookupDomainByName ¶
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainLookupByName
func (*Connect) LookupDomainByUUID ¶
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainLookupByUUID
func (*Connect) LookupDomainByUUIDString ¶
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainLookupByUUIDString
func (*Connect) LookupInterfaceByMACString ¶
See also https://libvirt.org/html/libvirt-libvirt-interface.html#virInterfaceLookupByMACString
func (*Connect) LookupInterfaceByName ¶
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 ¶
See also https://libvirt.org/html/libvirt-libvirt-nwfilter.html#virNWFilterLookupByName
func (*Connect) LookupNWFilterByUUID ¶
See also https://libvirt.org/html/libvirt-libvirt-nwfilter.html#virNWFilterLookupByUUID
func (*Connect) LookupNWFilterByUUIDString ¶
See also https://libvirt.org/html/libvirt-libvirt-nwfilter.html#virNWFilterLookupByUUIDString
func (*Connect) LookupNetworkByName ¶
See also https://libvirt.org/html/libvirt-libvirt-network.html#virNetworkLookupByName
func (*Connect) LookupNetworkByUUID ¶
See also https://libvirt.org/html/libvirt-libvirt-network.html#virNetworkLookupByUUID
func (*Connect) LookupNetworkByUUIDString ¶
See also https://libvirt.org/html/libvirt-libvirt-network.html#virNetworkLookupByUUIDString
func (*Connect) LookupSecretByUUID ¶
See also https://libvirt.org/html/libvirt-libvirt-secret.html#virSecretLookupByUUID
func (*Connect) LookupSecretByUUIDString ¶
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 NWFilterBindingCreateFlags) (*NWFilterBinding, error)
See also https://libvirt.org/html/libvirt-libvirt-nwfilter.html#virNWFilterBindingCreateXML
func (*Connect) NWFilterDefineXML ¶
See also https://libvirt.org/html/libvirt-libvirt-nwfilter.html#virNWFilterDefineXML
func (*Connect) NWFilterDefineXMLFlags ¶ added in v1.7007.0
func (c *Connect) NWFilterDefineXMLFlags(xmlConfig string, flags NWFilterDefineFlags) (*NWFilter, error)
See also https://libvirt.org/html/libvirt-libvirt-nwfilter.html#virNWFilterDefineXMLFlags
func (*Connect) NetworkCreateXML ¶
See also https://libvirt.org/html/libvirt-libvirt-network.html#virNetworkCreateXML
func (*Connect) NetworkCreateXMLFlags ¶ added in v1.7008.0
func (c *Connect) NetworkCreateXMLFlags(xmlConfig string, flags NetworkCreateFlags) (*Network, error)
See also https://libvirt.org/html/libvirt-libvirt-network.html#virNetworkCreateXML
func (*Connect) NetworkDefineXML ¶
See also https://libvirt.org/html/libvirt-libvirt-network.html#virNetworkDefineXML
func (*Connect) NetworkDefineXMLFlags ¶ added in v1.7007.0
func (c *Connect) NetworkDefineXMLFlags(xmlConfig string, flags NetworkDefineFlags) (*Network, error)
See also https://libvirt.org/html/libvirt-libvirt-network.html#virNetworkDefineXMLFlags
func (*Connect) NetworkEventDeregister ¶
func (*Connect) NetworkEventLifecycleRegister ¶
func (c *Connect) NetworkEventLifecycleRegister(net *Network, callback NetworkEventLifecycleCallback) (int, error)
func (*Connect) NetworkEventMetadataChangeRegister ¶ added in v1.9008.0
func (c *Connect) NetworkEventMetadataChangeRegister(net *Network, callback NetworkEventMetadataChangeCallback) (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 (*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 ¶
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virConnectNumOfDefinedDomains
func (*Connect) NumOfDefinedInterfaces ¶
See also https://libvirt.org/html/libvirt-libvirt-interface.html#virConnectNumOfDefinedInterfaces
func (*Connect) NumOfDefinedNetworks ¶
See also https://libvirt.org/html/libvirt-libvirt-network.html#virConnectNumOfDefinedNetworks
func (*Connect) NumOfDefinedStoragePools ¶
See also https://libvirt.org/html/libvirt-libvirt-storage.html#virConnectNumOfDefinedStoragePools
func (*Connect) NumOfDevices ¶
See also https://libvirt.org/html/libvirt-libvirt-nodedev.html#virNodeNumOfDevices
func (*Connect) NumOfDomains ¶
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virConnectNumOfDomains
func (*Connect) NumOfInterfaces ¶
See also https://libvirt.org/html/libvirt-libvirt-interface.html#virConnectNumOfInterfaces
func (*Connect) NumOfNWFilters ¶
See also https://libvirt.org/html/libvirt-libvirt-nwfilter.html#virConnectNumOfNWFilters
func (*Connect) NumOfNetworks ¶
See also https://libvirt.org/html/libvirt-libvirt-network.html#virConnectNumOfNetworks
func (*Connect) NumOfSecrets ¶
See also https://libvirt.org/html/libvirt-libvirt-secret.html#virConnectNumOfSecrets
func (*Connect) NumOfStoragePools ¶
See also https://libvirt.org/html/libvirt-libvirt-storage.html#virConnectNumOfStoragePools
func (*Connect) RawPtr ¶ added in v1.9008.0
func (c *Connect) RawPtr() (C.virConnectPtr, error)
Return the raw pointer. Caller is responsible for closing it via CloseRawPtr(). This is intended to allow integration with Go bindings to other C APIs that require direct access a virConnectPtr. This should not be used in other scenarios.
func (*Connect) Ref ¶
See also https://libvirt.org/html/libvirt-libvirt-host.html#virConnectRef
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 SecretDefineFlags) (*Secret, error)
See also https://libvirt.org/html/libvirt-libvirt-secret.html#virSecretDefineXML
func (*Connect) SecretEventDeregister ¶
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 uint32) error
See also https://libvirt.org/html/libvirt-libvirt-host.html#virConnectSetIdentity
func (*Connect) SetKeepAlive ¶
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 StoragePoolDefineFlags) (*StoragePool, error)
See also https://libvirt.org/html/libvirt-libvirt-storage.html#virStoragePoolDefineXML
func (*Connect) StoragePoolEventDeregister ¶
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 ¶
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 uint
type ConnectCloseReason ¶
type ConnectCloseReason int
type ConnectCompareCPUFlags ¶
type ConnectCompareCPUFlags uint
type ConnectCredential ¶
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 uint
type ConnectGetAllDomainStatsFlags ¶
type ConnectGetAllDomainStatsFlags uint
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 uint
type ConnectListAllInterfacesFlags ¶
type ConnectListAllInterfacesFlags uint
type ConnectListAllNetworksFlags ¶
type ConnectListAllNetworksFlags uint
type ConnectListAllNodeDeviceFlags ¶
type ConnectListAllNodeDeviceFlags uint
type ConnectListAllSecretsFlags ¶
type ConnectListAllSecretsFlags uint
type ConnectListAllStoragePoolsFlags ¶
type ConnectListAllStoragePoolsFlags uint
type Domain ¶
type Domain struct {
// contains filtered or unexported fields
}
func (*Domain) AbortJob ¶
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainAbortJob
func (*Domain) AbortJobFlags ¶ added in v1.8005.0
func (d *Domain) AbortJobFlags(flags DomainAbortJobFlags) error
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainAbortJobFlags
func (*Domain) AddIOThread ¶
func (d *Domain) AddIOThread(id uint, flags DomainModificationImpact) error
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainAddIOThread
func (*Domain) AgentSetResponseTimeout ¶
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainAgentSetResponseTimeout
func (*Domain) AttachDevice ¶
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) AuthorizedSSHKeysGet ¶
func (d *Domain) AuthorizedSSHKeysGet(user string, flags DomainAuthorizedSSHKeysFlags) ([]string, error)
func (*Domain) AuthorizedSSHKeysSet ¶
func (d *Domain) AuthorizedSSHKeysSet(user string, keys []string, flags DomainAuthorizedSSHKeysFlags) error
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 ¶
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) BlockCopy ¶
func (d *Domain) BlockCopy(disk string, destxml string, params *DomainBlockCopyParameters, flags DomainBlockCopyFlags) error
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainBlockCopy
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 ¶
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) CoreDump ¶
func (d *Domain) CoreDump(to string, flags DomainCoreDumpFlags) error
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainCoreDump
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 ¶
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainCreate
func (*Domain) CreateCheckpointXML ¶
func (d *Domain) CreateCheckpointXML(xml string, flags DomainCheckpointCreateFlags) (*DomainCheckpoint, error)
See also https://libvirt.org/html/libvirt-libvirt-domain-checkpoint.html#virDomainCheckpointCreateXML
func (*Domain) CreateSnapshotXML ¶
func (d *Domain) CreateSnapshotXML(xml string, flags DomainSnapshotCreateFlags) (*DomainSnapshot, error)
See also https://libvirt.org/html/libvirt-libvirt-domain-snapshot.html#virDomainSnapshotCreateXML
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) DelIOThread ¶
func (d *Domain) DelIOThread(id uint, flags DomainModificationImpact) error
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainDelIOThread
func (*Domain) Destroy ¶
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 ¶
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 ¶
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 (*Domain) FDAssociate ¶ added in v1.9000.0
func (*Domain) FSFreeze ¶
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainFSFreeze
func (*Domain) FSThaw ¶
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainFSThaw
func (*Domain) FSTrim ¶
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainFSTrim
func (*Domain) Free ¶
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainFree
func (*Domain) GetAutostart ¶
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetAutostart
func (*Domain) GetBlkioParameters ¶
func (d *Domain) GetBlkioParameters(flags DomainModificationImpact) (*DomainBlkioParameters, error)
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetBlkioParameters
func (*Domain) GetBlockInfo ¶
func (d *Domain) GetBlockInfo(disk string, flags uint32) (*DomainBlockInfo, error)
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetBlockInfo
func (*Domain) GetBlockIoTune ¶
func (d *Domain) GetBlockIoTune(disk string, flags DomainModificationImpact) (*DomainBlockIoTuneParameters, error)
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetBlockIoTune
func (*Domain) GetBlockJobInfo ¶
func (d *Domain) GetBlockJobInfo(disk string, flags DomainBlockJobInfoFlags) (*DomainBlockJobInfo, error)
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetBlockJobInfo
func (*Domain) GetCPUStats ¶
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) GetGuestInfo ¶
func (d *Domain) GetGuestInfo(types DomainGuestInfoTypes, flags uint32) (*DomainGuestInfo, error)
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetGuestInfo
func (*Domain) GetGuestVcpus ¶
func (d *Domain) GetGuestVcpus(flags uint32) (*DomainGuestVcpus, error)
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetGuestVcpus
func (*Domain) GetHostname ¶
func (d *Domain) GetHostname(flags DomainGetHostnameFlags) (string, error)
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetHostname
func (*Domain) GetID ¶
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetID
func (*Domain) GetIOThreadInfo ¶
func (d *Domain) GetIOThreadInfo(flags DomainModificationImpact) ([]DomainIOThreadInfo, error)
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetIOThreadInfo
func (*Domain) GetInfo ¶
func (d *Domain) GetInfo() (*DomainInfo, error)
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetInfo
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) GetJobStats ¶
func (d *Domain) GetJobStats(flags DomainGetJobStatsFlags) (*DomainJobInfo, error)
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetJobStats
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 ¶
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetMaxMemory
func (*Domain) GetMaxVcpus ¶
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetMaxVcpus
func (*Domain) GetMemoryParameters ¶
func (d *Domain) GetMemoryParameters(flags DomainModificationImpact) (*DomainMemoryParameters, error)
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetMemoryParameters
func (*Domain) GetMessages ¶
func (d *Domain) GetMessages(flags DomainMessageType) ([]string, error)
func (*Domain) GetMetadata ¶
func (d *Domain) GetMetadata(metadataType DomainMetadataType, uri string, flags DomainModificationImpact) (string, error)
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetMetadata
func (*Domain) GetName ¶
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetName
func (*Domain) GetNumaParameters ¶
func (d *Domain) GetNumaParameters(flags DomainModificationImpact) (*DomainNumaParameters, error)
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetNumaParameters
func (*Domain) GetOSType ¶
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetOSType
func (*Domain) GetPerfEvents ¶
func (d *Domain) GetPerfEvents(flags DomainModificationImpact) (*DomainPerfEvents, error)
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetPerfEvents
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) GetState ¶
func (d *Domain) GetState() (DomainState, int, error)
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetState
func (*Domain) GetTime ¶
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetTime
func (*Domain) GetUUID ¶
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetUUID
func (*Domain) GetUUIDString ¶
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) GetVcpus ¶
func (d *Domain) GetVcpus() ([]DomainVcpuInfo, error)
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainGetVcpus
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) GraphicsReload ¶ added in v1.10002.0
func (d *Domain) GraphicsReload(typ DomainGraphicsReloadType, flags uint32) error
func (*Domain) HasCurrentSnapshot ¶
See also https://libvirt.org/html/libvirt-libvirt-domain-snapshot.html#virDomainHasCurrentSnapshot
func (*Domain) HasManagedSaveImage ¶
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainHasManagedSaveImage
func (*Domain) InjectNMI ¶
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 ¶
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainIsActive
func (*Domain) IsPersistent ¶
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainIsPersistent
func (*Domain) IsUpdated ¶
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainIsUpdated
func (*Domain) ListAllCheckpoints ¶
func (d *Domain) ListAllCheckpoints(flags DomainCheckpointListFlags) ([]DomainCheckpoint, error)
See also https://libvirt.org/html/libvirt-libvirt-domain-checkpoint.html#virDomainListAllCheckpoints
func (*Domain) ListAllInterfaceAddresses ¶
func (d *Domain) ListAllInterfaceAddresses(src DomainInterfaceAddressesSource) ([]DomainInterface, error)
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainInterfaceAddresses
func (*Domain) ListAllSnapshots ¶
func (d *Domain) ListAllSnapshots(flags DomainSnapshotListFlags) ([]DomainSnapshot, error)
See also https://libvirt.org/html/libvirt-libvirt-domain-snapshot.html#virDomainListAllSnapshots
func (*Domain) LxcEnterNamespace ¶
func (*Domain) LxcOpenNamespace ¶
func (*Domain) ManagedSave ¶
func (d *Domain) ManagedSave(flags DomainSaveRestoreFlags) error
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainManagedSave
func (*Domain) ManagedSaveDefineXML ¶
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 ¶
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainManagedSaveRemove
func (*Domain) MemoryPeek ¶
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) Migrate3 ¶
func (d *Domain) Migrate3(dconn *Connect, params *DomainMigrateParameters, flags DomainMigrateFlags) (*Domain, error)
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainMigrate3
func (*Domain) MigrateGetCompressionCache ¶
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainMigrateGetCompressionCache
func (*Domain) MigrateGetMaxDowntime ¶
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 ¶
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainMigrateSetCompressionCache
func (*Domain) MigrateSetMaxDowntime ¶
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 ¶
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 ¶
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainOpenGraphics
func (*Domain) OpenGraphicsFD ¶
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 ¶
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 ¶
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)
See also https://libvirt.org/html/libvirt-libvirt-qemu.html#virDomainQemuAgentCommand
func (*Domain) QemuMonitorCommand ¶
func (d *Domain) QemuMonitorCommand(command string, flags DomainQemuMonitorCommandFlags) (string, error)
See also https://libvirt.org/html/libvirt-libvirt-qemu.html#virDomainQemuMonitorCommand
func (*Domain) QemuMonitorCommandWithFiles ¶ added in v1.8002.0
func (d *Domain) QemuMonitorCommandWithFiles(command string, infiles []os.File, flags DomainQemuMonitorCommandFlags) (string, []*os.File, error)
See also https://libvirt.org/html/libvirt-libvirt-qemu.html#virDomainQemuMonitorCommandWithFiles
func (*Domain) Reboot ¶
func (d *Domain) Reboot(flags DomainRebootFlagValues) error
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainReboot
func (*Domain) Ref ¶
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainRef
func (*Domain) Rename ¶
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainRename
func (*Domain) Reset ¶
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainReset
func (*Domain) Resume ¶
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainResume
func (*Domain) Save ¶
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) SaveParams ¶ added in v1.8004.0
func (d *Domain) SaveParams(params DomainSaveRestoreParams, flags DomainSaveRestoreFlags) error
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainSaveParams
func (*Domain) Screenshot ¶
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainScreenshot
func (*Domain) SendKey ¶
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 ¶
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) SetBlockIoTune ¶
func (d *Domain) SetBlockIoTune(disk string, params *DomainBlockIoTuneParameters, flags DomainModificationImpact) error
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainSetBlockIoTune
func (*Domain) SetBlockThreshold ¶
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainSetBlockThreshold
func (*Domain) SetGuestVcpus ¶
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) SetLaunchSecurityState ¶ added in v1.8000.0
func (d *Domain) SetLaunchSecurityState(params *DomainLaunchSecurityStateParameters, flags uint32) error
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainSetLaunchSecurityState
func (*Domain) SetLifecycleAction ¶
func (d *Domain) SetLifecycleAction(lifecycleType DomainLifecycle, action DomainLifecycleAction, flags uint32) error
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainSetLifecycleAction
func (*Domain) SetMaxMemory ¶
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainSetMaxMemory
func (*Domain) SetMemory ¶
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) SetPerfEvents ¶
func (d *Domain) SetPerfEvents(params *DomainPerfEvents, flags DomainModificationImpact) error
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainSetPerfEvents
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 ¶
See also https://libvirt.org/html/libvirt-libvirt-domain.html#virDomainSetVcpu
func (*Domain) SetVcpus ¶
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 ¶
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) SnapshotNum ¶
func (d *Domain) SnapshotNum(flags DomainSnapshotListFlags) (int, error)
See also https://libvirt.org/html/libvirt-libvirt-domain-snapshot.html#virDomainSnapshotNum
func (*Domain) StartDirtyRateCalc ¶
func (d *Domain) StartDirtyRateCalc(secs int, flags DomainDirtyRateCalcFlags) error