errors

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const Delivery = "delivery"
View Source
const NoJsonpathContext = "<no jsonpath context>"
View Source
const SupplyChain = "supply chain"

Variables

This section is empty.

Functions

func IsUnhandledError

func IsUnhandledError(err error) bool

func IsUnhandledErrorType

func IsUnhandledErrorType(err error) bool

func NewUnhandledError

func NewUnhandledError(err error) error

NewUnhandledError should be used if the reconciler should return an error and requeue. Otherwise, the reconciler assumes the error is handled, will not requeue, and wait until it is called to reconcile again via informers.

func WrapUnhandledError added in v0.5.4

func WrapUnhandledError(err error) error

Types

type ApplyStampedObjectError

type ApplyStampedObjectError struct {
	Err           error
	StampedObject *unstructured.Unstructured
	ResourceName  string
	BlueprintName string
	BlueprintType string
}

func (ApplyStampedObjectError) Error

func (e ApplyStampedObjectError) Error() string

type GetTemplateError

type GetTemplateError struct {
	Err           error
	ResourceName  string
	TemplateName  string
	BlueprintName string
	BlueprintType string
}

func (GetTemplateError) Error

func (e GetTemplateError) Error() string

type JsonPathErrorContext

type JsonPathErrorContext interface {
	JsonPathExpression() string
}

type ListCreatedObjectsError added in v0.6.0

type ListCreatedObjectsError struct {
	Err       error
	Namespace string
	Labels    map[string]string
}

func (ListCreatedObjectsError) Error added in v0.6.0

func (e ListCreatedObjectsError) Error() string

type ResolveTemplateOptionError

type ResolveTemplateOptionError struct {
	Err           error
	ResourceName  string
	OptionName    string
	BlueprintName string
	BlueprintType string
}

func (ResolveTemplateOptionError) Error

type RetrieveOutputError

type RetrieveOutputError struct {
	Err               error
	ResourceName      string
	StampedObject     *unstructured.Unstructured
	BlueprintName     string
	BlueprintType     string
	QualifiedResource string
	PassThroughInput  string
}

func (RetrieveOutputError) Error

func (e RetrieveOutputError) Error() string

func (RetrieveOutputError) GetQualifiedResource added in v0.6.0

func (e RetrieveOutputError) GetQualifiedResource() string

func (RetrieveOutputError) GetResourceName

func (e RetrieveOutputError) GetResourceName() string

func (RetrieveOutputError) JsonPathExpression

func (e RetrieveOutputError) JsonPathExpression() string

type RunnableApplyStampedObjectError

type RunnableApplyStampedObjectError struct {
	Err           error
	StampedObject *unstructured.Unstructured
	TemplateRef   *v1alpha1.TemplateReference
}

func (RunnableApplyStampedObjectError) Error

type RunnableGetRunTemplateError

type RunnableGetRunTemplateError struct {
	Err         error
	TemplateRef *v1alpha1.TemplateReference
}

func (RunnableGetRunTemplateError) Error

type RunnableResolveSelectorError

type RunnableResolveSelectorError struct {
	Err      error
	Selector *v1alpha1.ResourceSelector
}

func (RunnableResolveSelectorError) Error

type RunnableRetrieveOutputError

type RunnableRetrieveOutputError struct {
	Err               error
	StampedObject     *unstructured.Unstructured
	TemplateRef       *v1alpha1.TemplateReference
	QualifiedResource string
}

func (RunnableRetrieveOutputError) Error

type RunnableStampError

type RunnableStampError struct {
	Err         error
	TemplateRef *v1alpha1.TemplateReference
}

func (RunnableStampError) Error

func (e RunnableStampError) Error() string

type StampError

type StampError struct {
	Err           error
	ResourceName  string
	TemplateName  string
	TemplateKind  string
	BlueprintName string
	BlueprintType string
}

func (StampError) Error

func (e StampError) Error() string

type TemplateOptionsMatchError

type TemplateOptionsMatchError struct {
	ResourceName  string
	OptionNames   []string
	BlueprintName string
	BlueprintType string
}

func (TemplateOptionsMatchError) Error

Jump to

Keyboard shortcuts

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