Documentation ¶
Index ¶
- Constants
- func GetLastError() string
- type VirConnection
- func (c *VirConnection) CloseConnection() (int, error)
- func (c *VirConnection) DomainDefineXML(xmlConfig string) (VirDomain, error)
- func (c *VirConnection) DomainDefineXMLFromFile(xmlFile string) (VirDomain, error)
- func (c *VirConnection) GetCapabilities() (string, error)
- func (c *VirConnection) GetHostname() (string, error)
- func (c *VirConnection) GetMaxVcpus(typeAttr string) (int, error)
- func (c *VirConnection) GetNodeInfo() (VirNodeInfo, error)
- func (c *VirConnection) GetSysinfo(flags uint) (string, error)
- func (c *VirConnection) GetType() (string, error)
- func (c *VirConnection) GetURI() (string, error)
- func (c *VirConnection) InterfaceDefineXML(xmlConfig string, flags uint32) (VirInterface, error)
- func (c *VirConnection) InterfaceDefineXMLFromFile(xmlFile string) (VirInterface, error)
- func (c *VirConnection) IsAlive() (bool, error)
- func (c *VirConnection) IsEncrypted() (bool, error)
- func (c *VirConnection) IsSecure() (bool, error)
- func (c *VirConnection) ListAllInterfaces(flags uint32) ([]VirInterface, error)
- func (c *VirConnection) ListDefinedDomains() ([]string, error)
- func (c *VirConnection) ListDefinedInterfaces() ([]string, error)
- func (c *VirConnection) ListDefinedNetworks() ([]string, error)
- func (c *VirConnection) ListDefinedStoragePools() ([]string, error)
- func (c *VirConnection) ListDomains() ([]uint32, error)
- func (c *VirConnection) ListInterfaces() ([]string, error)
- func (c *VirConnection) ListNetworks() ([]string, error)
- func (c *VirConnection) ListStoragePools() ([]string, error)
- func (c *VirConnection) LookupDomainById(id uint32) (VirDomain, error)
- func (c *VirConnection) LookupDomainByName(id string) (VirDomain, error)
- func (c *VirConnection) LookupInterfaceByMACString(mac string) (VirInterface, error)
- func (c *VirConnection) LookupInterfaceByName(name string) (VirInterface, error)
- func (c *VirConnection) LookupNWFilterByName(name string) (VirNWFilter, error)
- func (c *VirConnection) LookupNWFilterByUUIDString(uuid string) (VirNWFilter, error)
- func (c *VirConnection) LookupNetworkByName(name string) (VirNetwork, error)
- func (c *VirConnection) LookupSecretByUUIDString(uuid string) (VirSecret, error)
- func (c *VirConnection) LookupSecretByUsage(usageType int, usageID string) (VirSecret, error)
- func (c *VirConnection) LookupStoragePoolByName(name string) (VirStoragePool, error)
- func (c *VirConnection) LookupStoragePoolByUUIDString(uuid string) (VirStoragePool, error)
- func (c *VirConnection) LookupStorageVolByKey(key string) (VirStorageVol, error)
- func (c *VirConnection) LookupStorageVolByPath(path string) (VirStorageVol, error)
- func (c *VirConnection) NWFilterDefineXML(xmlConfig string) (VirNWFilter, error)
- func (c *VirConnection) NWFilterDefineXMLFromFile(xmlFile string) (VirNWFilter, error)
- func (c *VirConnection) NetworkDefineXML(xmlConfig string) (VirNetwork, error)
- func (c *VirConnection) NetworkDefineXMLFromFile(xmlFile string) (VirNetwork, error)
- func (c *VirConnection) NumOfDefinedInterfaces() (int, error)
- func (c *VirConnection) NumOfDefinedNetworks() (int, error)
- func (c *VirConnection) NumOfDefinedStoragePools() (int, error)
- func (c *VirConnection) NumOfDomains() (int, error)
- func (c *VirConnection) NumOfInterfaces() (int, error)
- func (c *VirConnection) NumOfNWFilters() (int, error)
- func (c *VirConnection) NumOfNetworks() (int, error)
- func (c *VirConnection) NumOfSecrets() (int, error)
- func (conn VirConnection) Restore(srcFile string) error
- func (conn VirConnection) RestoreFlags(srcFile, xmlConf string, flags uint32) error
- func (c *VirConnection) SecretDefineXML(xmlConfig string, flags uint32) (VirSecret, error)
- func (c *VirConnection) SecretDefineXMLFromFile(xmlFile string) (VirSecret, error)
- func (c *VirConnection) StoragePoolDefineXML(xmlConfig string, flags uint32) (VirStoragePool, error)
- func (c *VirConnection) StoragePoolDefineXMLFromFile(xmlFile string) (VirStoragePool, error)
- func (c *VirConnection) UnrefAndCloseConnection() error
- type VirDomain
- func (d *VirDomain) AbortJob() error
- func (d *VirDomain) AttachDevice(xml string) error
- func (d *VirDomain) AttachDeviceFlags(xml string, flags uint) error
- func (d *VirDomain) Create() error
- func (d *VirDomain) CreateSnapshotXML(xml string, flags uint32) (VirDomainSnapshot, error)
- func (d *VirDomain) Destroy() error
- func (d *VirDomain) DestroyFlags(flags uint) error
- func (d *VirDomain) DetachDevice(xml string) error
- func (d *VirDomain) DetachDeviceFlags(xml string, flags uint) error
- func (d *VirDomain) Free() error
- func (d *VirDomain) GetAutostart() (bool, error)
- func (d *VirDomain) GetCPUStats(params *VirTypedParameters, nParams int, startCpu int, nCpus uint32, ...) (int, error)
- func (d *VirDomain) GetInfo() (VirDomainInfo, error)
- func (d *VirDomain) GetInterfaceParameters(device string, params *VirTypedParameters, nParams *int, flags uint32) (int, error)
- func (d *VirDomain) GetMetadata(tipus int, uri string, flags uint32) (string, error)
- func (d *VirDomain) GetName() (string, error)
- func (d *VirDomain) GetState() ([]int, error)
- func (d *VirDomain) GetUUID() ([]byte, error)
- func (d *VirDomain) GetUUIDString() (string, error)
- func (d *VirDomain) GetXMLDesc(flags uint32) (string, error)
- func (d *VirDomain) IsActive() (bool, error)
- func (d *VirDomain) Reboot(flags uint) error
- func (d *VirDomain) Resume() error
- func (d *VirDomain) Save(destFile string) error
- func (d *VirDomain) SaveFlags(destFile string, destXml string, flags uint32) error
- func (d *VirDomain) SetAutostart(autostart bool) error
- func (d *VirDomain) SetMaxMemory(memory uint) error
- func (d *VirDomain) SetMemory(memory uint64) error
- func (d *VirDomain) SetMemoryFlags(memory uint64, flags uint32) error
- func (d *VirDomain) SetMemoryStatsPeriod(period int, flags uint) error
- func (d *VirDomain) SetMetadata(metaDataType int, metaDataCont, uriKey, uri string, flags uint32) error
- func (d *VirDomain) SetVcpus(vcpu uint) error
- func (d *VirDomain) SetVcpusFlags(vcpu uint, flags uint) error
- func (d *VirDomain) Shutdown() error
- func (d *VirDomain) ShutdownFlags(flags uint) error
- func (d *VirDomain) Suspend() error
- func (d *VirDomain) Undefine() error
- type VirDomainInfo
- type VirDomainSnapshot
- type VirInterface
- func (n *VirInterface) Create(flags uint32) error
- func (n *VirInterface) Destroy(flags uint32) error
- func (n *VirInterface) Free() error
- func (n *VirInterface) GetMACString() (string, error)
- func (n *VirInterface) GetName() (string, error)
- func (n *VirInterface) GetXMLDesc(flags uint32) (string, error)
- func (n *VirInterface) IsActive() (bool, error)
- func (n *VirInterface) Undefine() error
- type VirNWFilter
- type VirNetwork
- func (n *VirNetwork) Create() error
- func (n *VirNetwork) Destroy() error
- func (n *VirNetwork) Free() error
- func (n *VirNetwork) GetAutostart() (bool, error)
- func (n *VirNetwork) GetBridgeName() (string, error)
- func (n *VirNetwork) GetName() (string, error)
- func (n *VirNetwork) GetUUID() ([]byte, error)
- func (n *VirNetwork) GetUUIDString() (string, error)
- func (n *VirNetwork) GetXMLDesc(flags uint32) (string, error)
- func (n *VirNetwork) IsActive() (bool, error)
- func (n *VirNetwork) IsPersistent() (bool, error)
- func (n *VirNetwork) SetAutostart(autostart bool) error
- func (n *VirNetwork) Undefine() error
- type VirNodeInfo
- func (ni *VirNodeInfo) GetCPUs() uint32
- func (ni *VirNodeInfo) GetCores() uint32
- func (ni *VirNodeInfo) GetMemoryKB() uint64
- func (ni *VirNodeInfo) GetMhz() uint32
- func (ni *VirNodeInfo) GetModel() string
- func (ni *VirNodeInfo) GetNodes() uint32
- func (ni *VirNodeInfo) GetSockets() uint32
- func (ni *VirNodeInfo) GetThreads() uint32
- type VirSecret
- func (s *VirSecret) Free() error
- func (s *VirSecret) GetUUID() ([]byte, error)
- func (s *VirSecret) GetUUIDString() (string, error)
- func (s *VirSecret) GetUsageID() (string, error)
- func (s *VirSecret) GetUsageType() (int, error)
- func (s *VirSecret) GetXMLDesc(flags uint32) (string, error)
- func (s *VirSecret) Undefine() error
- type VirStoragePool
- func (p *VirStoragePool) Build(flags uint32) error
- func (p *VirStoragePool) Create(flags uint32) error
- func (p *VirStoragePool) Delete(flags uint32) error
- func (p *VirStoragePool) Destroy() error
- func (p *VirStoragePool) Free() error
- func (p *VirStoragePool) GetAutostart() (bool, error)
- func (p *VirStoragePool) GetInfo() (VirStoragePoolInfo, error)
- func (p *VirStoragePool) GetName() (string, error)
- func (p *VirStoragePool) GetUUID() ([]byte, error)
- func (p *VirStoragePool) GetUUIDString() (string, error)
- func (p *VirStoragePool) GetXMLDesc(flags uint32) (string, error)
- func (p *VirStoragePool) IsActive() (bool, error)
- func (p *VirStoragePool) LookupStorageVolByName(name string) (VirStorageVol, error)
- func (p *VirStoragePool) Refresh(flags uint32) error
- func (p *VirStoragePool) SetAutostart(autostart bool) error
- func (p *VirStoragePool) StorageVolCreateXML(xmlConfig string, flags uint32) (VirStorageVol, error)
- func (p *VirStoragePool) StorageVolCreateXMLFromFile(xmlFile string, flags uint32) (VirStorageVol, error)
- func (p *VirStoragePool) Undefine() error
- type VirStoragePoolInfo
- type VirStorageVol
- func (v *VirStorageVol) Delete(flags uint32) error
- func (v *VirStorageVol) Free() error
- func (v *VirStorageVol) GetInfo() (VirStorageVolInfo, error)
- func (v *VirStorageVol) GetKey() (string, error)
- func (v *VirStorageVol) GetName() (string, error)
- func (v *VirStorageVol) GetPath() (string, error)
- func (v *VirStorageVol) GetXMLDesc(flags uint32) (string, error)
- func (v *VirStorageVol) Resize(capacity uint64, flags uint32) error
- func (v *VirStorageVol) Wipe(flags uint32) error
- func (v *VirStorageVol) WipePattern(algorithm uint32, flags uint32) error
- type VirStorageVolInfo
- type VirTypedParameter
- type VirTypedParameters
Constants ¶
View Source
const ( VIR_DOMAIN_NOSTATE = C.VIR_DOMAIN_NOSTATE VIR_DOMAIN_RUNNING = C.VIR_DOMAIN_RUNNING VIR_DOMAIN_BLOCKED = C.VIR_DOMAIN_BLOCKED VIR_DOMAIN_PAUSED = C.VIR_DOMAIN_PAUSED VIR_DOMAIN_SHUTDOWN = C.VIR_DOMAIN_SHUTDOWN VIR_DOMAIN_CRASHED = C.VIR_DOMAIN_CRASHED VIR_DOMAIN_PMSUSPENDED = C.VIR_DOMAIN_PMSUSPENDED VIR_DOMAIN_SHUTOFF = C.VIR_DOMAIN_SHUTOFF )
virDomainState
View Source
const ( VIR_DOMAIN_METADATA_DESCRIPTION = C.VIR_DOMAIN_METADATA_DESCRIPTION VIR_DOMAIN_METADATA_TITLE = C.VIR_DOMAIN_METADATA_TITLE VIR_DOMAIN_METADATA_ELEMENT = C.VIR_DOMAIN_METADATA_ELEMENT )
virDomainMetadataType
View Source
const ( VIR_DOMAIN_VCPU_CONFIG = C.VIR_DOMAIN_VCPU_CONFIG VIR_DOMAIN_VCPU_CURRENT = C.VIR_DOMAIN_VCPU_CURRENT VIR_DOMAIN_VCPU_LIVE = C.VIR_DOMAIN_VCPU_LIVE VIR_DOMAIN_VCPU_MAXIMUM = C.VIR_DOMAIN_VCPU_MAXIMUM VIR_DOMAIN_VCPU_GUEST = C.VIR_DOMAIN_VCPU_GUEST )
virDomainVcpuFlags
View Source
const ( VIR_DOMAIN_MEM_CONFIG = C.VIR_DOMAIN_AFFECT_CONFIG VIR_DOMAIN_MEM_CURRENT = C.VIR_DOMAIN_AFFECT_CURRENT VIR_DOMAIN_MEM_LIVE = C.VIR_DOMAIN_AFFECT_LIVE VIR_DOMAIN_MEM_MAXIMUM = C.VIR_DOMAIN_MEM_MAXIMUM )
virDomainMemoryModFlags
View Source
const ( VIR_STORAGE_POOL_INACTIVE = C.VIR_STORAGE_POOL_INACTIVE // Not running VIR_STORAGE_POOL_BUILDING = C.VIR_STORAGE_POOL_BUILDING // Initializing pool,not available VIR_STORAGE_POOL_RUNNING = C.VIR_STORAGE_POOL_RUNNING // Running normally VIR_STORAGE_POOL_DEGRADED = C.VIR_STORAGE_POOL_DEGRADED // Running degraded VIR_STORAGE_POOL_INACCESSIBLE = C.VIR_STORAGE_POOL_INACCESSIBLE // Running,but not accessible )
virStoragePoolState
View Source
const ( VIR_STORAGE_POOL_BUILD_NEW = C.VIR_STORAGE_POOL_BUILD_NEW // Regular build from scratch VIR_STORAGE_POOL_BUILD_REPAIR = C.VIR_STORAGE_POOL_BUILD_REPAIR // Repair / reinitialize VIR_STORAGE_POOL_BUILD_RESIZE = C.VIR_STORAGE_POOL_BUILD_RESIZE // Extend existing pool VIR_STORAGE_POOL_BUILD_NO_OVERWRITE = C.VIR_STORAGE_POOL_BUILD_NO_OVERWRITE // Do not overwrite existing pool VIR_STORAGE_POOL_BUILD_OVERWRITE = C.VIR_STORAGE_POOL_BUILD_OVERWRITE // Overwrite data )
virStoragePoolBuildFlags
View Source
const ( VIR_DOMAIN_DESTROY_DEFAULT = C.VIR_DOMAIN_DESTROY_DEFAULT VIR_DOMAIN_DESTROY_GRACEFUL = C.VIR_DOMAIN_DESTROY_GRACEFUL )
virDomainDestroyFlags
View Source
const ( VIR_DOMAIN_SHUTDOWN_DEFAULT = C.VIR_DOMAIN_SHUTDOWN_DEFAULT VIR_DOMAIN_SHUTDOWN_ACPI_POWER_BTN = C.VIR_DOMAIN_SHUTDOWN_ACPI_POWER_BTN VIR_DOMAIN_SHUTDOWN_GUEST_AGENT = C.VIR_DOMAIN_SHUTDOWN_GUEST_AGENT VIR_DOMAIN_SHUTDOWN_INITCTL = C.VIR_DOMAIN_SHUTDOWN_INITCTL VIR_DOMAIN_SHUTDOWN_SIGNAL = C.VIR_DOMAIN_SHUTDOWN_SIGNAL )
virDomainShutdownFlags
View Source
const ( VIR_DOMAIN_DEVICE_MODIFY_CONFIG = C.VIR_DOMAIN_AFFECT_CONFIG VIR_DOMAIN_DEVICE_MODIFY_CURRENT = C.VIR_DOMAIN_AFFECT_CURRENT VIR_DOMAIN_DEVICE_MODIFY_LIVE = C.VIR_DOMAIN_AFFECT_LIVE VIR_DOMAIN_DEVICE_MODIFY_FORCE = C.VIR_DOMAIN_DEVICE_MODIFY_FORCE )
virDomainAttachDeviceFlags
View Source
const ( VIR_STORAGE_VOL_DELETE_NORMAL = C.VIR_STORAGE_VOL_DELETE_NORMAL // Delete metadata only (fast) VIR_STORAGE_VOL_DELETE_ZEROED = C.VIR_STORAGE_VOL_DELETE_ZEROED // Clear all data to zeros (slow) )
virStorageVolDeleteFlags
View Source
const ( VIR_STORAGE_VOL_RESIZE_ALLOCATE = C.VIR_STORAGE_VOL_RESIZE_ALLOCATE // force allocation of new size VIR_STORAGE_VOL_RESIZE_DELTA = C.VIR_STORAGE_VOL_RESIZE_DELTA // size is relative to current VIR_STORAGE_VOL_RESIZE_SHRINK = C.VIR_STORAGE_VOL_RESIZE_SHRINK // allow decrease in capacity )
virStorageVolResizeFlags
View Source
const ( VIR_STORAGE_VOL_FILE = C.VIR_STORAGE_VOL_FILE // Regular file based volumes VIR_STORAGE_VOL_BLOCK = C.VIR_STORAGE_VOL_BLOCK // Block based volumes VIR_STORAGE_VOL_DIR = C.VIR_STORAGE_VOL_DIR // Directory-passthrough based volume VIR_STORAGE_VOL_NETWORK = C.VIR_STORAGE_VOL_NETWORK //Network volumes like RBD (RADOS Block Device) VIR_STORAGE_VOL_NETDIR = C.VIR_STORAGE_VOL_NETDIR // Network accessible directory that can contain other network volumes )
virStorageVolType
View Source
const ( VIR_STORAGE_VOL_WIPE_ALG_ZERO = C.VIR_STORAGE_VOL_WIPE_ALG_ZERO // 1-pass, all zeroes VIR_STORAGE_VOL_WIPE_ALG_NNSA = C.VIR_STORAGE_VOL_WIPE_ALG_NNSA // 4-pass NNSA Policy Letter NAP-14.1-C (XVI-8) VIR_STORAGE_VOL_WIPE_ALG_DOD = C.VIR_STORAGE_VOL_WIPE_ALG_DOD // 4-pass DoD 5220.22-M section 8-306 procedure VIR_STORAGE_VOL_WIPE_ALG_BSI = C.VIR_STORAGE_VOL_WIPE_ALG_BSI // 9-pass method recommended by the German Center of Security in Information Technologies VIR_STORAGE_VOL_WIPE_ALG_GUTMANN = C.VIR_STORAGE_VOL_WIPE_ALG_GUTMANN // The canonical 35-pass sequence VIR_STORAGE_VOL_WIPE_ALG_SCHNEIER = C.VIR_STORAGE_VOL_WIPE_ALG_SCHNEIER // 7-pass method described by Bruce Schneier in "Applied Cryptography" (1996) VIR_STORAGE_VOL_WIPE_ALG_PFITZNER7 = C.VIR_STORAGE_VOL_WIPE_ALG_PFITZNER7 // 7-pass random VIR_STORAGE_VOL_WIPE_ALG_PFITZNER33 = C.VIR_STORAGE_VOL_WIPE_ALG_PFITZNER33 // 33-pass random VIR_STORAGE_VOL_WIPE_ALG_RANDOM = C.VIR_STORAGE_VOL_WIPE_ALG_RANDOM // 1-pass random )
virStorageVolWipeAlgorithm
View Source
const ( VIR_SECRET_USAGE_TYPE_NONE = C.VIR_SECRET_USAGE_TYPE_NONE VIR_SECRET_USAGE_TYPE_VOLUME = C.VIR_SECRET_USAGE_TYPE_VOLUME VIR_SECRET_USAGE_TYPE_CEPH = C.VIR_SECRET_USAGE_TYPE_CEPH VIR_SECRET_USAGE_TYPE_ISCSI = C.VIR_SECRET_USAGE_TYPE_ISCSI )
virSecretUsageType
View Source
const (
VIR_STORAGE_VOL_CREATE_PREALLOC_METADATA = C.VIR_STORAGE_VOL_CREATE_PREALLOC_METADATA
)
virStorageVolCreateFlags
Variables ¶
This section is empty.
Functions ¶
func GetLastError ¶
func GetLastError() string
Types ¶
type VirConnection ¶
type VirConnection struct {
// contains filtered or unexported fields
}
func NewVirConnection ¶
func NewVirConnection(uri string) (VirConnection, error)
func NewVirConnectionReadOnly ¶ added in v1.6.0
func NewVirConnectionReadOnly(uri string) (VirConnection, error)
func (*VirConnection) CloseConnection ¶
func (c *VirConnection) CloseConnection() (int, error)
func (*VirConnection) DomainDefineXML ¶
func (c *VirConnection) DomainDefineXML(xmlConfig string) (VirDomain, error)
func (*VirConnection) DomainDefineXMLFromFile ¶
func (c *VirConnection) DomainDefineXMLFromFile(xmlFile string) (VirDomain, error)
func (*VirConnection) GetCapabilities ¶
func (c *VirConnection) GetCapabilities() (string, error)
func (*VirConnection) GetHostname ¶
func (c *VirConnection) GetHostname() (string, error)
func (*VirConnection) GetMaxVcpus ¶ added in v1.6.0
func (c *VirConnection) GetMaxVcpus(typeAttr string) (int, error)
func (*VirConnection) GetNodeInfo ¶
func (c *VirConnection) GetNodeInfo() (VirNodeInfo, error)
func (*VirConnection) GetSysinfo ¶ added in v1.5.0
func (c *VirConnection) GetSysinfo(flags uint) (string, error)
func (*VirConnection) GetType ¶ added in v1.3.0
func (c *VirConnection) GetType() (string, error)
func (*VirConnection) GetURI ¶ added in v1.5.0
func (c *VirConnection) GetURI() (string, error)
func (*VirConnection) InterfaceDefineXML ¶ added in v1.7.0
func (c *VirConnection) InterfaceDefineXML(xmlConfig string, flags uint32) (VirInterface, error)
func (*VirConnection) InterfaceDefineXMLFromFile ¶ added in v1.7.0
func (c *VirConnection) InterfaceDefineXMLFromFile(xmlFile string) (VirInterface, error)
func (*VirConnection) IsAlive ¶ added in v1.3.0
func (c *VirConnection) IsAlive() (bool, error)
func (*VirConnection) IsEncrypted ¶ added in v1.3.0
func (c *VirConnection) IsEncrypted() (bool, error)
func (*VirConnection) IsSecure ¶ added in v1.3.0
func (c *VirConnection) IsSecure() (bool, error)
func (*VirConnection) ListAllInterfaces ¶
func (c *VirConnection) ListAllInterfaces(flags uint32) ([]VirInterface, error)
func (*VirConnection) ListDefinedDomains ¶
func (c *VirConnection) ListDefinedDomains() ([]string, error)
func (*VirConnection) ListDefinedInterfaces ¶ added in v1.3.0
func (c *VirConnection) ListDefinedInterfaces() ([]string, error)
func (*VirConnection) ListDefinedNetworks ¶ added in v1.3.0
func (c *VirConnection) ListDefinedNetworks() ([]string, error)
func (*VirConnection) ListDefinedStoragePools ¶ added in v1.3.0
func (c *VirConnection) ListDefinedStoragePools() ([]string, error)
func (*VirConnection) ListDomains ¶
func (c *VirConnection) ListDomains() ([]uint32, error)
func (*VirConnection) ListInterfaces ¶ added in v1.5.0
func (c *VirConnection) ListInterfaces() ([]string, error)
func (*VirConnection) ListNetworks ¶ added in v1.5.0
func (c *VirConnection) ListNetworks() ([]string, error)
func (*VirConnection) ListStoragePools ¶ added in v1.5.0
func (c *VirConnection) ListStoragePools() ([]string, error)
func (*VirConnection) LookupDomainById ¶
func (c *VirConnection) LookupDomainById(id uint32) (VirDomain, error)
func (*VirConnection) LookupDomainByName ¶
func (c *VirConnection) LookupDomainByName(id string) (VirDomain, error)
func (*VirConnection) LookupInterfaceByMACString ¶ added in v1.7.0
func (c *VirConnection) LookupInterfaceByMACString(mac string) (VirInterface, error)
func (*VirConnection) LookupInterfaceByName ¶ added in v1.7.0
func (c *VirConnection) LookupInterfaceByName(name string) (VirInterface, error)
func (*VirConnection) LookupNWFilterByName ¶ added in v1.7.0
func (c *VirConnection) LookupNWFilterByName(name string) (VirNWFilter, error)
func (*VirConnection) LookupNWFilterByUUIDString ¶ added in v1.7.0
func (c *VirConnection) LookupNWFilterByUUIDString(uuid string) (VirNWFilter, error)
func (*VirConnection) LookupNetworkByName ¶ added in v1.3.0
func (c *VirConnection) LookupNetworkByName(name string) (VirNetwork, error)
func (*VirConnection) LookupSecretByUUIDString ¶ added in v1.8.0
func (c *VirConnection) LookupSecretByUUIDString(uuid string) (VirSecret, error)
func (*VirConnection) LookupSecretByUsage ¶ added in v1.8.0
func (c *VirConnection) LookupSecretByUsage(usageType int, usageID string) (VirSecret, error)
func (*VirConnection) LookupStoragePoolByName ¶ added in v1.7.0
func (c *VirConnection) LookupStoragePoolByName(name string) (VirStoragePool, error)
func (*VirConnection) LookupStoragePoolByUUIDString ¶ added in v1.7.0
func (c *VirConnection) LookupStoragePoolByUUIDString(uuid string) (VirStoragePool, error)
func (*VirConnection) LookupStorageVolByKey ¶ added in v1.8.0
func (c *VirConnection) LookupStorageVolByKey(key string) (VirStorageVol, error)
func (*VirConnection) LookupStorageVolByPath ¶ added in v1.8.0
func (c *VirConnection) LookupStorageVolByPath(path string) (VirStorageVol, error)
func (*VirConnection) NWFilterDefineXML ¶ added in v1.7.0
func (c *VirConnection) NWFilterDefineXML(xmlConfig string) (VirNWFilter, error)
func (*VirConnection) NWFilterDefineXMLFromFile ¶ added in v1.7.0
func (c *VirConnection) NWFilterDefineXMLFromFile(xmlFile string) (VirNWFilter, error)
func (*VirConnection) NetworkDefineXML ¶ added in v1.3.0
func (c *VirConnection) NetworkDefineXML(xmlConfig string) (VirNetwork, error)
func (*VirConnection) NetworkDefineXMLFromFile ¶ added in v1.3.0
func (c *VirConnection) NetworkDefineXMLFromFile(xmlFile string) (VirNetwork, error)
func (*VirConnection) NumOfDefinedInterfaces ¶ added in v1.3.0
func (c *VirConnection) NumOfDefinedInterfaces() (int, error)
func (*VirConnection) NumOfDefinedNetworks ¶ added in v1.3.0
func (c *VirConnection) NumOfDefinedNetworks() (int, error)
func (*VirConnection) NumOfDefinedStoragePools ¶ added in v1.3.0
func (c *VirConnection) NumOfDefinedStoragePools() (int, error)
func (*VirConnection) NumOfDomains ¶ added in v1.3.0
func (c *VirConnection) NumOfDomains() (int, error)
func (*VirConnection) NumOfInterfaces ¶ added in v1.3.0
func (c *VirConnection) NumOfInterfaces() (int, error)
func (*VirConnection) NumOfNWFilters ¶ added in v1.3.0
func (c *VirConnection) NumOfNWFilters() (int, error)
func (*VirConnection) NumOfNetworks ¶ added in v1.3.0
func (c *VirConnection) NumOfNetworks() (int, error)
func (*VirConnection) NumOfSecrets ¶ added in v1.6.0
func (c *VirConnection) NumOfSecrets() (int, error)
func (VirConnection) Restore ¶ added in v1.2.0
func (conn VirConnection) Restore(srcFile string) error
func (VirConnection) RestoreFlags ¶ added in v1.2.0
func (conn VirConnection) RestoreFlags(srcFile, xmlConf string, flags uint32) error
func (*VirConnection) SecretDefineXML ¶ added in v1.8.0
func (c *VirConnection) SecretDefineXML(xmlConfig string, flags uint32) (VirSecret, error)
func (*VirConnection) SecretDefineXMLFromFile ¶ added in v1.8.0
func (c *VirConnection) SecretDefineXMLFromFile(xmlFile string) (VirSecret, error)
func (*VirConnection) StoragePoolDefineXML ¶ added in v1.7.0
func (c *VirConnection) StoragePoolDefineXML(xmlConfig string, flags uint32) (VirStoragePool, error)
func (*VirConnection) StoragePoolDefineXMLFromFile ¶ added in v1.7.0
func (c *VirConnection) StoragePoolDefineXMLFromFile(xmlFile string) (VirStoragePool, error)
func (*VirConnection) UnrefAndCloseConnection ¶
func (c *VirConnection) UnrefAndCloseConnection() error
type VirDomain ¶
type VirDomain struct {
// contains filtered or unexported fields
}
func (*VirDomain) AttachDevice ¶ added in v1.7.0
func (*VirDomain) AttachDeviceFlags ¶ added in v1.7.0
func (*VirDomain) CreateSnapshotXML ¶
func (d *VirDomain) CreateSnapshotXML(xml string, flags uint32) (VirDomainSnapshot, error)
func (*VirDomain) DestroyFlags ¶ added in v1.7.0
func (*VirDomain) DetachDevice ¶ added in v1.7.0
func (*VirDomain) DetachDeviceFlags ¶ added in v1.7.0
func (*VirDomain) GetAutostart ¶
func (*VirDomain) GetCPUStats ¶ added in v1.8.0
func (*VirDomain) GetInfo ¶
func (d *VirDomain) GetInfo() (VirDomainInfo, error)
func (*VirDomain) GetInterfaceParameters ¶ added in v1.8.0
func (d *VirDomain) GetInterfaceParameters(device string, params *VirTypedParameters, nParams *int, flags uint32) (int, error)
Warning: No test written for this function
func (*VirDomain) GetMetadata ¶
func (*VirDomain) GetUUIDString ¶
func (*VirDomain) SetAutostart ¶
func (*VirDomain) SetMaxMemory ¶ added in v1.7.0
func (*VirDomain) SetMemoryFlags ¶ added in v1.7.0
func (*VirDomain) SetMemoryStatsPeriod ¶
func (*VirDomain) SetMetadata ¶
func (*VirDomain) SetVcpusFlags ¶ added in v1.7.0
func (*VirDomain) ShutdownFlags ¶ added in v1.7.0
type VirDomainInfo ¶
type VirDomainInfo struct {
// contains filtered or unexported fields
}
func (*VirDomainInfo) GetCpuTime ¶
func (i *VirDomainInfo) GetCpuTime() uint64
func (*VirDomainInfo) GetMaxMem ¶
func (i *VirDomainInfo) GetMaxMem() uint64
func (*VirDomainInfo) GetMemory ¶
func (i *VirDomainInfo) GetMemory() uint64
func (*VirDomainInfo) GetNrVirtCpu ¶
func (i *VirDomainInfo) GetNrVirtCpu() uint16
func (*VirDomainInfo) GetState ¶
func (i *VirDomainInfo) GetState() uint8
type VirDomainSnapshot ¶
type VirDomainSnapshot struct {
// contains filtered or unexported fields
}
func (*VirDomainSnapshot) Free ¶ added in v1.7.0
func (s *VirDomainSnapshot) Free() error
type VirInterface ¶ added in v1.7.0
type VirInterface struct {
// contains filtered or unexported fields
}
func (*VirInterface) Create ¶ added in v1.7.0
func (n *VirInterface) Create(flags uint32) error
func (*VirInterface) Destroy ¶ added in v1.7.0
func (n *VirInterface) Destroy(flags uint32) error
func (*VirInterface) Free ¶ added in v1.7.0
func (n *VirInterface) Free() error
func (*VirInterface) GetMACString ¶ added in v1.7.0
func (n *VirInterface) GetMACString() (string, error)
func (*VirInterface) GetName ¶ added in v1.7.0
func (n *VirInterface) GetName() (string, error)
func (*VirInterface) GetXMLDesc ¶ added in v1.7.0
func (n *VirInterface) GetXMLDesc(flags uint32) (string, error)
func (*VirInterface) IsActive ¶ added in v1.7.0
func (n *VirInterface) IsActive() (bool, error)
func (*VirInterface) Undefine ¶ added in v1.7.0
func (n *VirInterface) Undefine() error
type VirNWFilter ¶ added in v1.7.0
type VirNWFilter struct {
// contains filtered or unexported fields
}
func (*VirNWFilter) Free ¶ added in v1.7.0
func (f *VirNWFilter) Free() error
func (*VirNWFilter) GetName ¶ added in v1.7.0
func (f *VirNWFilter) GetName() (string, error)
func (*VirNWFilter) GetUUID ¶ added in v1.7.0
func (f *VirNWFilter) GetUUID() ([]byte, error)
func (*VirNWFilter) GetUUIDString ¶ added in v1.7.0
func (f *VirNWFilter) GetUUIDString() (string, error)
func (*VirNWFilter) GetXMLDesc ¶ added in v1.7.0
func (f *VirNWFilter) GetXMLDesc(flags uint32) (string, error)
func (*VirNWFilter) Undefine ¶ added in v1.7.0
func (f *VirNWFilter) Undefine() error
type VirNetwork ¶ added in v1.3.0
type VirNetwork struct {
// contains filtered or unexported fields
}
func (*VirNetwork) Create ¶ added in v1.3.0
func (n *VirNetwork) Create() error
func (*VirNetwork) Destroy ¶ added in v1.3.0
func (n *VirNetwork) Destroy() error
func (*VirNetwork) Free ¶ added in v1.7.0
func (n *VirNetwork) Free() error
func (*VirNetwork) GetAutostart ¶ added in v1.3.0
func (n *VirNetwork) GetAutostart() (bool, error)
func (*VirNetwork) GetBridgeName ¶ added in v1.3.0
func (n *VirNetwork) GetBridgeName() (string, error)
func (*VirNetwork) GetName ¶ added in v1.3.0
func (n *VirNetwork) GetName() (string, error)
func (*VirNetwork) GetUUID ¶ added in v1.3.0
func (n *VirNetwork) GetUUID() ([]byte, error)
func (*VirNetwork) GetUUIDString ¶ added in v1.3.0
func (n *VirNetwork) GetUUIDString() (string, error)
func (*VirNetwork) GetXMLDesc ¶ added in v1.3.0
func (n *VirNetwork) GetXMLDesc(flags uint32) (string, error)
func (*VirNetwork) IsActive ¶ added in v1.3.0
func (n *VirNetwork) IsActive() (bool, error)
func (*VirNetwork) IsPersistent ¶ added in v1.3.0
func (n *VirNetwork) IsPersistent() (bool, error)
func (*VirNetwork) SetAutostart ¶ added in v1.3.0
func (n *VirNetwork) SetAutostart(autostart bool) error
func (*VirNetwork) Undefine ¶ added in v1.3.0
func (n *VirNetwork) Undefine() error
type VirNodeInfo ¶
type VirNodeInfo struct {
// contains filtered or unexported fields
}
func (*VirNodeInfo) GetCPUs ¶
func (ni *VirNodeInfo) GetCPUs() uint32
func (*VirNodeInfo) GetCores ¶
func (ni *VirNodeInfo) GetCores() uint32
func (*VirNodeInfo) GetMemoryKB ¶
func (ni *VirNodeInfo) GetMemoryKB() uint64
func (*VirNodeInfo) GetMhz ¶
func (ni *VirNodeInfo) GetMhz() uint32
func (*VirNodeInfo) GetModel ¶
func (ni *VirNodeInfo) GetModel() string
func (*VirNodeInfo) GetNodes ¶
func (ni *VirNodeInfo) GetNodes() uint32
func (*VirNodeInfo) GetSockets ¶
func (ni *VirNodeInfo) GetSockets() uint32
func (*VirNodeInfo) GetThreads ¶
func (ni *VirNodeInfo) GetThreads() uint32
type VirSecret ¶ added in v1.8.0
type VirSecret struct {
// contains filtered or unexported fields
}
func (*VirSecret) GetUUIDString ¶ added in v1.8.0
func (*VirSecret) GetUsageID ¶ added in v1.8.0
func (*VirSecret) GetUsageType ¶ added in v1.8.0
func (*VirSecret) GetXMLDesc ¶ added in v1.8.0
type VirStoragePool ¶ added in v1.7.0
type VirStoragePool struct {
// contains filtered or unexported fields
}
func (*VirStoragePool) Build ¶ added in v1.7.0
func (p *VirStoragePool) Build(flags uint32) error
func (*VirStoragePool) Create ¶ added in v1.7.0
func (p *VirStoragePool) Create(flags uint32) error
func (*VirStoragePool) Delete ¶ added in v1.7.0
func (p *VirStoragePool) Delete(flags uint32) error
func (*VirStoragePool) Destroy ¶ added in v1.7.0
func (p *VirStoragePool) Destroy() error
func (*VirStoragePool) Free ¶ added in v1.7.0
func (p *VirStoragePool) Free() error
func (*VirStoragePool) GetAutostart ¶ added in v1.7.0
func (p *VirStoragePool) GetAutostart() (bool, error)
func (*VirStoragePool) GetInfo ¶ added in v1.7.0
func (p *VirStoragePool) GetInfo() (VirStoragePoolInfo, error)
func (*VirStoragePool) GetName ¶ added in v1.7.0
func (p *VirStoragePool) GetName() (string, error)
func (*VirStoragePool) GetUUID ¶ added in v1.7.0
func (p *VirStoragePool) GetUUID() ([]byte, error)
func (*VirStoragePool) GetUUIDString ¶ added in v1.7.0
func (p *VirStoragePool) GetUUIDString() (string, error)
func (*VirStoragePool) GetXMLDesc ¶ added in v1.7.0
func (p *VirStoragePool) GetXMLDesc(flags uint32) (string, error)
func (*VirStoragePool) IsActive ¶ added in v1.7.0
func (p *VirStoragePool) IsActive() (bool, error)
func (*VirStoragePool) LookupStorageVolByName ¶ added in v1.8.0
func (p *VirStoragePool) LookupStorageVolByName(name string) (VirStorageVol, error)
func (*VirStoragePool) Refresh ¶ added in v1.7.0
func (p *VirStoragePool) Refresh(flags uint32) error
func (*VirStoragePool) SetAutostart ¶ added in v1.7.0
func (p *VirStoragePool) SetAutostart(autostart bool) error
func (*VirStoragePool) StorageVolCreateXML ¶ added in v1.8.0
func (p *VirStoragePool) StorageVolCreateXML(xmlConfig string, flags uint32) (VirStorageVol, error)
func (*VirStoragePool) StorageVolCreateXMLFromFile ¶ added in v1.8.0
func (p *VirStoragePool) StorageVolCreateXMLFromFile(xmlFile string, flags uint32) (VirStorageVol, error)
func (*VirStoragePool) Undefine ¶ added in v1.7.0
func (p *VirStoragePool) Undefine() error
type VirStoragePoolInfo ¶ added in v1.7.0
type VirStoragePoolInfo struct {
// contains filtered or unexported fields
}
func (*VirStoragePoolInfo) GetAllocationInBytes ¶ added in v1.7.0
func (i *VirStoragePoolInfo) GetAllocationInBytes() uint64
func (*VirStoragePoolInfo) GetAvailableInBytes ¶ added in v1.7.0
func (i *VirStoragePoolInfo) GetAvailableInBytes() uint64
func (*VirStoragePoolInfo) GetCapacityInBytes ¶ added in v1.7.0
func (i *VirStoragePoolInfo) GetCapacityInBytes() uint64
func (*VirStoragePoolInfo) GetState ¶ added in v1.7.0
func (i *VirStoragePoolInfo) GetState() uint8
type VirStorageVol ¶ added in v1.8.0
type VirStorageVol struct {
// contains filtered or unexported fields
}
func (*VirStorageVol) Delete ¶ added in v1.8.0
func (v *VirStorageVol) Delete(flags uint32) error
func (*VirStorageVol) Free ¶ added in v1.8.0
func (v *VirStorageVol) Free() error
func (*VirStorageVol) GetInfo ¶ added in v1.8.0
func (v *VirStorageVol) GetInfo() (VirStorageVolInfo, error)
func (*VirStorageVol) GetKey ¶ added in v1.8.0
func (v *VirStorageVol) GetKey() (string, error)
func (*VirStorageVol) GetName ¶ added in v1.8.0
func (v *VirStorageVol) GetName() (string, error)
func (*VirStorageVol) GetPath ¶ added in v1.8.0
func (v *VirStorageVol) GetPath() (string, error)
func (*VirStorageVol) GetXMLDesc ¶ added in v1.8.0
func (v *VirStorageVol) GetXMLDesc(flags uint32) (string, error)
func (*VirStorageVol) Resize ¶ added in v1.8.0
func (v *VirStorageVol) Resize(capacity uint64, flags uint32) error
func (*VirStorageVol) Wipe ¶ added in v1.8.0
func (v *VirStorageVol) Wipe(flags uint32) error
func (*VirStorageVol) WipePattern ¶ added in v1.8.0
func (v *VirStorageVol) WipePattern(algorithm uint32, flags uint32) error
type VirStorageVolInfo ¶ added in v1.8.0
type VirStorageVolInfo struct {
// contains filtered or unexported fields
}
func (*VirStorageVolInfo) GetAllocationInBytes ¶ added in v1.8.0
func (i *VirStorageVolInfo) GetAllocationInBytes() uint64
func (*VirStorageVolInfo) GetCapacityInBytes ¶ added in v1.8.0
func (i *VirStorageVolInfo) GetCapacityInBytes() uint64
func (*VirStorageVolInfo) GetType ¶ added in v1.8.0
func (i *VirStorageVolInfo) GetType() int
type VirTypedParameter ¶ added in v1.8.0
type VirTypedParameter struct { Name string Value interface{} }
type VirTypedParameters ¶ added in v1.8.0
type VirTypedParameters []VirTypedParameter
Click to show internal directories.
Click to hide internal directories.