libvirt

package
v0.7.6 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2023 License: Apache-2.0 Imports: 35 Imported by: 7

Documentation

Overview

Package libvirt contains wrappers for converting schema ids to libvirt RFC4122 UUID type

Index

Constants

View Source
const LibVirtConIsNil string = "the libvirt connection was nil"

LibVirtConIsNil is a global string error msg.

Variables

View Source
var WaitSleepInterval = 1 * time.Second

WaitSleepInterval time.

View Source
var WaitTimeout = 5 * time.Minute

WaitTimeout time.

Functions

func CleanupLibvirtConnections

func CleanupLibvirtConnections()

CleanupLibvirtConnections closes libvirt clients for all URIs.

func HasDHCP

func HasDHCP(net libvirtxml.Network) bool

HasDHCP checks if the network has a DHCP server managed by libvirt.

func Provider

func Provider() *schema.Provider

Provider libvirt.

Types

type Client

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

Client libvirt.

type Config

type Config struct {
	URI string
}

Config struct for the libvirt-provider.

func (*Config) Client

func (c *Config) Client() (*Client, error)

Client libvirt, returns a libvirt client for a config.

Directories

Path Synopsis
helper
Deals with https://libvirt.org/uri.html go-libvirt needs a working transport to talk rpc to libvirt.
Deals with https://libvirt.org/uri.html go-libvirt needs a working transport to talk rpc to libvirt.

Jump to

Keyboard shortcuts

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