libvirt

package
v0.0.1-alpha Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrVolumeNotFound = errors.New("Domain not found")

ErrVolumeNotFound is returned when a domain is not found

Functions

func CreateDomain

func CreateDomain(ctx context.Context, libvirtClient *libvirtClient, v *vmConfig) (result *createDomainOutput, err error)

func DeleteDomain

func DeleteDomain(ctx context.Context, libvirtClient *libvirtClient, id string) (err error)

func NewLibvirtClient

func NewLibvirtClient(libvirtCfg Config) (*libvirtClient, error)

func NewProvider

func NewProvider(config *Config) (cloud.Provider, error)

Types

type Config

type Config struct {
	URI         string
	PoolName    string
	NetworkName string
	DataDir     string
}

Jump to

Keyboard shortcuts

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