package
0.0.0-20250207191401-950a7b2d7eaf
Repository: https://github.com/digitalocean/go-libvirt.git
Documentation: pkg.go.dev

# Functions

NewAlreadyConnected is a noop dialer to simply use a connection previously established.
NewLocal is a default dialer to simply connect to a locally running libvirt's socket.
NewRemote is a dialer for connecting to libvirt running on another server.
NewSSH returns an ssh dialer for connecting to libvirt running on another server.
NewTLS is a dialer for connecting to libvirt running on another server.
UseKeyFile uses a custom key file.
UseKnownHostsFile uses a custom known_hosts file.
UsePKIPath sets the search path for TLS certificate files.
UsePort sets the port to dial for libirt on the target host server.
UseSSHPassword uses the given password for the ssh connection.
UseSSHPort uses the given port for the ssh connection.
UseSSHUsername uses the given username for the ssh connection.
UseTLSPort sets the port to dial for libirt on the target host server.
WithAcceptUnknownHostKey ignores the validity of the host certificate.
WithInsecureIgnoreHostKey ignores the validity of the host certificate.
WithInsecureNoVerify ignores the validity of the server certificate.
WithLocalTimeout sets the dial timeout.
WithRemoteSocket uses a custom remote socket.
WithRemoteTimeout sets the dial timeout.
WithSocket sets the path to the local libvirt socket.
WithSSHAuthMethods uses the specified auth methods in priority order.
WithSystemSSHDefaults uses default values for the system ssh client, rather than the defaults that libvirtclient uses with libssh.

# Structs

AlreadyConnected implements a dialer interface for a connection that was established prior to initializing the socket object.
Local implements connecting to a local libvirtd over the unix socket.
Remote implements connecting to a remote server's libvirt using tcp.
SSH implements connecting to a remote server's libvirt using ssh.
SSHAuthMethods maintains a priority list of allowed ssh auth methods.
TLS implements connecting to a remote server's libvirt using tls.

# Type aliases

LocalOption is a function for setting local socket options.
RemoteOption is a function for setting remote dialer options.
SSHOption is a function for setting ssh dialer options.
TLSOption is a function for setting remote dialer options.