errdefs

package
v2.1.2 Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2024 License: Apache-2.0 Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNotFound is returned when an object is not found
	ErrNotFound = errors.New("not found")

	// ErrInvalid is returned when a compose project is invalid
	ErrInvalid = errors.New("invalid compose project")

	// ErrUnsupported is returned when a compose project uses an unsupported attribute
	ErrUnsupported = errors.New("unsupported attribute")

	// ErrIncompatible is returned when a compose project uses an incompatible attribute
	ErrIncompatible = errors.New("incompatible attribute")

	// ErrDisabled is returned when a resource was found in model but is disabled
	ErrDisabled = errors.New("disabled")
)

Functions

func IsIncompatibleError

func IsIncompatibleError(err error) bool

IsUnsupportedError returns true if the unwrapped error is ErrIncompatible

func IsInvalidError

func IsInvalidError(err error) bool

IsInvalidError returns true if the unwrapped error is ErrInvalid

func IsNotFoundError

func IsNotFoundError(err error) bool

IsNotFoundError returns true if the unwrapped error is ErrNotFound

func IsUnsupportedError

func IsUnsupportedError(err error) bool

IsUnsupportedError returns true if the unwrapped error is ErrUnsupported

Types

This section is empty.

Jump to

Keyboard shortcuts

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