virt

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const StoragePoolName = "cloudless"

StoragePoolName is the name of storage pool.

Variables

This section is empty.

Functions

func DestroyNetworks

func DestroyNetworks(ctx context.Context, l *libvirt.Libvirt, decideFun DecideFunc) error

DestroyNetworks destroys networks.

func DestroyStoragePool

func DestroyStoragePool(l *libvirt.Libvirt) error

DestroyStoragePool destroys storage pool.

func DestroyVMs

func DestroyVMs(ctx context.Context, l *libvirt.Libvirt, decideFun DecideFunc) error

DestroyVMs destroys vms.

func IsError

func IsError(err error, expectedError libvirt.ErrorNumber) bool

IsError checks if error is a particular libvirt error.

func StopDev

func StopDev(xml string) bool

StopDev is the decision function stopping resources created by cloudless.

Types

type DecideFunc

type DecideFunc func(xml string) bool

DecideFunc defines function which decides if resource should be stopped.

Jump to

Keyboard shortcuts

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