errors

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNotFoundError

func IsNotFoundError(err error) bool

IsNotFoundError checks whether the given error is of type NotFound.

func NewImageServerError

func NewImageServerError(err error) diag.Diagnostic

NewImageServerError converts an error into diagnostic indicating that provider failed to retrieve Incus image server client.

func NewInstanceServerError

func NewInstanceServerError(err error) diag.Diagnostic

NewInstanceServerError converts an error into diagnostic indicating that provider failed to retrieve Incus instance server client.

func NewProviderDataTypeError

func NewProviderDataTypeError(value any) diag.Diagnostic

NewProviderDataTypeError returns a diagnostic error indicating that a resource has received provider data of unexpected type.

Types

This section is empty.

Jump to

Keyboard shortcuts

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