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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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