Connection
Object Hierarchy:
Description:
Namespace: GVir
Package: libvirt-gobject-1.0
Content:
Properties:
- public ConnectionHandle handle { owned get; construct; }
- public string uri { get; construct; }
Creation methods:
- public Connection (string uri)
Methods:
- public void close ()
- public Domain create_domain (Domain conf) throws Error
Create the configuration file for a new persistent domain.
- public StoragePool create_storage_pool (StoragePool conf, uint flags) throws Error
- public bool fetch_domains (Cancellable? cancellable = null) throws Error
Use this method to fetch all domains managed by connection this.
- public async bool fetch_domains_async (Cancellable? cancellable) throws Error
- public bool fetch_interfaces (Cancellable? cancellable = null) throws Error
Use this method to fetch information on all network interfaces managed by connection this on host machine.
- public async bool fetch_interfaces_async (Cancellable? cancellable) throws Error
- public bool fetch_networks (Cancellable? cancellable = null) throws Error
Use this method to fetch all networks managed by connection this.
- public async bool fetch_networks_async (Cancellable? cancellable) throws Error
- public bool fetch_storage_pools (Cancellable? cancellable = null) throws Error
Use this method to fetch all storage pools managed by connection this.
- public async bool fetch_storage_pools_async (Cancellable? cancellable) throws Error
- public Domain find_domain_by_id (int id)
- public Domain find_domain_by_name (string name)
- public Interface find_interface_by_mac (string macaddr)
Get a particular interface which has MAC address
mac
. - public Network find_network_by_name (string name)
Get a particular network which has name
name
. - public StoragePool find_storage_pool_by_name (string name)
- public Capabilities get_capabilities () throws Error
- public async Capabilities get_capabilities_async (Cancellable? cancellable) throws Error
- public Domain get_domain (string uuid)
- public DomainCapabilities get_domain_capabilities (string? emulatorbin, string? arch, string? machine, string? virttype, uint flags) throws Error
- public async DomainCapabilities get_domain_capabilities_async (string? emulatorbin, string? arch, string? machine, string? virttype, uint flags, Cancellable? cancellable) throws Error
- public List<Domain> get_domains ()
Gets a list of the domains available through this .
- public string get_hypervisor_name () throws Error
Get name of current hypervisor used.
- public Interface get_interface (string name)
Get a particular interface which has name
name
. - public List<Interface> get_interfaces ()
Get a list of all the network interfaces managed by connection this on host machine.
- public Network get_network (string uuid)
Get a particular network which has UUID
uuid
. - public List<Network> get_networks ()
Get a list of all the network networks available through this.
- public NodeInfo get_node_info () throws Error
- public StoragePool get_storage_pool (string uuid)
- public List<StoragePool> get_storage_pools ()
Gets a list of the storage pools available through this.
- public Stream get_stream (uint flags)
- public unowned string get_uri ()
- public ulong get_version () throws Error
Get version of current hypervisor used.
- public bool is_open ()
- public bool is_read_only ()
- public bool open (Cancellable? cancellable = null) throws Error
- public async bool open_async (Cancellable? cancellable) throws Error
- public bool open_read_only (Cancellable? cancellable = null) throws Error
- public async bool open_read_only_async (Cancellable? cancellable) throws Error
- public bool restore_domain_from_file (string filename, Domain? custom_conf, uint flags) throws Error
Restores the domain saved with save_to_file
- public async bool restore_domain_from_file_async (string filename, Domain? custom_conf, uint flags, Cancellable? cancellable) throws Error
Asynchronous variant of restore_domain_from_file
- public Domain start_domain (Domain conf, uint flags) throws Error
Start a new transient domain without persistent configuration.
Signals:
- public virtual signal void connection_closed ()
- public virtual signal void connection_opened ()
- public virtual signal void domain_added (Domain dom)
- public virtual signal void domain_removed (Domain dom)
Inherited Members:
All known members inherited from class GLib.Object