errors

package
v0.44.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package errors contains generic controller and reconciler runtime errors to be used by GitOps Toolkit components.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GarbageCollectionError

type GarbageCollectionError struct {
	Kind           string
	NamespacedName types.NamespacedName
	Err            error
}

GarbageCollectionError is describes a garbage collection error for a resources, it includes the Kind and NamespacedName of the resource, and the underlying Err.

func (*GarbageCollectionError) Error

func (e *GarbageCollectionError) Error() string

func (*GarbageCollectionError) Unwrap

func (e *GarbageCollectionError) Unwrap() error

type ReconciliationError

type ReconciliationError struct {
	Kind           string
	NamespacedName types.NamespacedName
	Err            error
}

ReconciliationError is describes a generic reconciliation error for a resource, it includes the Kind and NamespacedName of the resource, and any underlying Err.

func (*ReconciliationError) Error

func (e *ReconciliationError) Error() string

func (*ReconciliationError) Unwrap

func (e *ReconciliationError) Unwrap() error

type ResourceNotFoundError added in v0.13.0

type ResourceNotFoundError struct {
	Kind           string
	NamespacedName types.NamespacedName
	Err            error
}

ResourceNotFoundError describes an error in which a referred resource could not be found, it includes the Kind and NamespacedName, and any underlying Err.

func (*ResourceNotFoundError) Error added in v0.13.0

func (e *ResourceNotFoundError) Error() string

type ResourceNotReadyError added in v0.13.0

type ResourceNotReadyError struct {
	Kind           string
	NamespacedName types.NamespacedName
	Err            error
}

ResourceNotReadyError describes an error in which a referred resource is not in a meta.ReadyCondition state, it includes the Kind and NamespacedName, and any underlying Err.

func (*ResourceNotReadyError) Error added in v0.13.0

func (e *ResourceNotReadyError) Error() string

func (*ResourceNotReadyError) Unwrap added in v0.13.0

func (e *ResourceNotReadyError) Unwrap() error

type UnsupportedResourceKindError added in v0.13.0

type UnsupportedResourceKindError struct {
	Kind           string
	NamespacedName types.NamespacedName
	SupportedKinds []string
}

UnsupportedResourceKindError describes an error in which a referred resource is of an unsupported kind, it includes the Kind and NamespacedName of the resource, and any underlying Err.

func (*UnsupportedResourceKindError) Error added in v0.13.0

Jump to

Keyboard shortcuts

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