errors

package
v0.13.7 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2019 License: Apache-2.0 Imports: 2 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

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