Documentation ¶
Overview ¶
Deals with https://libvirt.org/uri.html go-libvirt needs a working transport to talk rpc to libvirt. This module deals with setting up those transports
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnectionURI ¶
func Parse ¶
func Parse(uriStr string) (*ConnectionURI, error)
func (*ConnectionURI) Dial ¶ added in v0.7.2
func (u *ConnectionURI) Dial() (net.Conn, error)
Dial implements go-libvirt Dialer interface, which is used to retrieve connections to talk via RPC to libvirtd.
For example, a qemu+ssh:/// uri would return a SSH connection to localhost, and a new URI to qemu+unix:///system dials the transport for this connection URI.
func (ConnectionURI) RemoteName ¶
func (u ConnectionURI) RemoteName() string
According to https://libvirt.org/uri.html The name passed to the remote virConnectOpen function is formed by removing transport, hostname, port number, username and extra parameters from the remote URI unless the name option is specified.