virt

package
v0.0.0-...-211ae49 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 28, 2019 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Connection

type Connection struct {
	// contains filtered or unexported fields
}

Connection to libvirt. This struct maintains a pointer to the libvirt connection

func NewConnection

func NewConnection() (*Connection, error)

NewConnection establishes the libvirt connection for this server. Note that if the daemon is not available, this method returns an error.

func (*Connection) Close

func (c *Connection) Close() (int, error)

Close the connection with libvirt

func (*Connection) GetVersion

func (c *Connection) GetVersion() (map[string]uint32, error)

GetVersion from the libvirt daemon and hypervisor. This method returns an error if the daemon is not available or reachable. It contains two keys, version for the current hypervisor version and libvirt for the libvirt library version.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL