errors

package
v0.0.0-...-031e5ed Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: Apache-2.0 Imports: 3 Imported by: 1

Documentation

Overview

Package errors contains custom error types and error utilities for reconcilers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Handle

func Handle(err error, ctx context.Context, msg string) error

Handle inspects the received error and returns either nil or the original error depending on the nature of that error. The context and message are used to produce log entries. Used to ensure a queued item is either requeued or dropped.

func IsSkippable

func IsSkippable(e error) bool

IsSkippable returns whether the given error is skippable.

func NewSkippable

func NewSkippable(e error) error

NewSkippable wraps an error into a skippable type so it gets ignored by the reconciler.

Types

This section is empty.

Jump to

Keyboard shortcuts

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