errors

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2024 License: Apache-2.0 Imports: 3 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MigrationAbortInProgressError = errors.New("Migration abort is in progress")

Functions

func FormatLibvirtError added in v0.10.0

func FormatLibvirtError(err error) string

func IsInvalidOperation added in v0.11.0

func IsInvalidOperation(err error) bool

IsInvalidOperation detects libvirt's VIR_ERR_OPERATION_INVALID. It accepts both error and libvirt.Error (as returned by GetLastError function).

func IsNotFound

func IsNotFound(err error) bool

IsNotFound detects libvirt's ERR_NO_DOMAIN. It accepts both error and libvirt.Error (as returned by GetLastError function).

func IsOk

func IsOk(err error) bool

IsOk detects libvirt's ERR_OK. It accepts both error and libvirt.Error (as returned by GetLastError function).

Types

This section is empty.

Jump to

Keyboard shortcuts

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