spi

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2021 License: UPL-1.0 Imports: 3 Imported by: 0

Documentation

Overview

Copyright (c) 2021, Oracle and/or its affiliates. Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RetryableError

type RetryableError struct {
	// The source of the error
	Source string
	// The operation type
	Operation string
	// The root cause error
	Cause error
	// An optional Result type to return to the controllerruntime
	Result controllerruntime.Result
}

RetryableError an error that can be used to indicate to a controller that a requeue is needed, with an optional custom result

func (RetryableError) Error

func (r RetryableError) Error() string

Error implements the basic Go error contract

func (RetryableError) HasCause

func (r RetryableError) HasCause() bool

HasCause indicates whether or not the error has a root cause

Jump to

Keyboard shortcuts

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