errors

package
v1.1.0-rc.0 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2023 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