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.
Click to show internal directories.
Click to hide internal directories.