utils

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplySecret

func ApplySecret(lv *libvirt.Libvirt, secret *libvirtxml.Secret, value []byte) error

func Connect

func Connect(lv *libvirt.Libvirt, uri string) error

func GetDialer

func GetDialer(socket, address string) (socket.Dialer, error)

func GetLibvirt

func GetLibvirt(socket, address, uri string) (*libvirt.Libvirt, error)

func IgnoreErrorCode

func IgnoreErrorCode(err error, codes ...libvirt.ErrorNumber) error

func IsConnected

func IsConnected(clnt Connector) error

func IsErrorCode

func IsErrorCode(err error, codes ...libvirt.ErrorNumber) bool

func UUIDStringToBytes

func UUIDStringToBytes(uid string) libvirt.UUID

Types

type Connector added in v0.6.0

type Connector interface {
	IsConnected() bool
}

Connector is the subset of *libvirt.Libvirt used by IsConnected.

Jump to

Keyboard shortcuts

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