errors

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// StatusReasonDeprecated means the mode has been deprecated
	StatusReasonDeprecated metav1.StatusReason = "Deprecated"
)

Variables

This section is empty.

Functions

func IsDeprecated

func IsDeprecated(err error) (deprecated bool)

IsDeprecated returns true if the specified error was created by NewDeprecated.

func ReasonForError

func ReasonForError(err error) metav1.StatusReason

Types

type FluidStatusError

type FluidStatusError struct {
	// contains filtered or unexported fields
}

FluidStatusError is an error intended for consumption by the controller it's for Fluid internal error

func NewDeprecated

func NewDeprecated(qualifiedResource schema.GroupResource, key types.NamespacedName) *FluidStatusError

func (FluidStatusError) Details

func (e FluidStatusError) Details() *metav1.StatusDetails

func (FluidStatusError) Error

func (e FluidStatusError) Error() string

func (FluidStatusError) Reason

type StatusError

type StatusError interface {
	Reason() metav1.StatusReason
	Details() *metav1.StatusDetails
}

StatusError is an interface for Fluid internal error

Jump to

Keyboard shortcuts

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