Documentation
¶
Index ¶
- Constants
- func AlreadyExistsError(message string, a ...any) error
- func As(err error, target any) bool
- func AsInvalidJSONError(err error) (error, bool)
- func AuthError(message string, a ...any) error
- func AutogrowAlreadyAtMaxSizeError(maxSize string) error
- func AutogrowPolicyInUseError(policyName string, volumeCount int, volumes []string) error
- func AutogrowPolicyNilError() error
- func AutogrowPolicyNotFoundError(policyName string) error
- func AutogrowPolicyNotUsableError(policyName string, state string) error
- func AutogrowStuckResizeAtMaxSizeError(message string, a ...any) error
- func BootstrapError(err error) error
- func BusClosedError() error
- func ConflictError(message string, a ...any) error
- func ConnectionError(message string, a ...any) error
- func FCPSameLunNumberError(message string, a ...any) error
- func FormatError(err error) error
- func FoundError(message string, a ...any) error
- func HasResourceExhaustedError(err error) (bool, *resourceExhaustedError)
- func HasUnsupportedCapacityRangeError(err error) (bool, *unsupportedCapacityRangeError)
- func ISCSIDeviceFlushError(message string, a ...any) error
- func ISCSISameLunNumberError(message string, a ...any) error
- func InProgressError(str string) error
- func IncorrectLUKSPassphraseError(message string, a ...any) error
- func InterfaceNotSupportedError(requestedType, interfaceName string) error
- func InvalidInputError(message string, a ...any) error
- func InvalidJSONError(message string, a ...any) error
- func Is(err, target error) bool
- func IsAlreadyExistsError(err error) bool
- func IsAuthError(err error) bool
- func IsAutogrowAlreadyAtMaxSizeError(err error) bool
- func IsAutogrowPolicyInUseError(err error) bool
- func IsAutogrowPolicyNilError(err error) bool
- func IsAutogrowPolicyNotFoundError(err error) bool
- func IsAutogrowPolicyNotUsableError(err error) bool
- func IsAutogrowStuckResizeAtMaxSizeError(err error) bool
- func IsBootstrapError(err error) bool
- func IsBusClosedError(err error) bool
- func IsConflictError(err error) bool
- func IsConnectionError(err error) bool
- func IsFCPSameLunNumberError(err error) bool
- func IsFormatError(err error) bool
- func IsFoundError(err error) bool
- func IsISCSIDeviceFlushError(err error) bool
- func IsISCSISameLunNumberError(err error) bool
- func IsInProgressError(err error) bool
- func IsIncorrectLUKSPassphraseError(err error) bool
- func IsInterfaceNotSupportedError(err error) bool
- func IsInvalidInputError(err error) bool
- func IsInvalidJSONError(err error) bool
- func IsKeyError(err error) bool
- func IsMaxLimitReachedError(err error) bool
- func IsMaxWaitExceededError(err error) bool
- func IsMismatchedStorageClassError(err error) bool
- func IsMustRetryError(err error) bool
- func IsNilHandlerError(err error) bool
- func IsNodeNotSafeToPublishForBackendError(err error) bool
- func IsNotFoundError(err error) bool
- func IsNotManagedError(err error) bool
- func IsNotReadyError(err error) bool
- func IsPreconditionError(err error) bool
- func IsReconcileDeferredError(err error) bool
- func IsReconcileDeferredWithDuration(err error) bool
- func IsReconcileDeferredWithMaxDuration(err error) bool
- func IsReconcileFailedError(err error) bool
- func IsReconcileIncompleteError(err error) bool
- func IsResourceNotFoundError(err error) bool
- func IsServerBackPressureError(err error) bool
- func IsStateError(err error) bool
- func IsTempOperatorError(err error) bool
- func IsTerminalReconciliationError(err error) bool
- func IsTimeoutError(err error) bool
- func IsTooManyRequestsError(err error) bool
- func IsUnlicensedError(err error) bool
- func IsUnsupportedConfigError(err error) bool
- func IsUnsupportedError(err error) bool
- func IsUsageStatsUnavailableError(err error) bool
- func IsValueError(err error) bool
- func IsVolumeCreatingError(err error) bool
- func IsVolumeDeletingError(err error) bool
- func IsVolumeStateError(err error) bool
- func IsZeroValueError(err error) bool
- func Join(errs ...error) error
- func KeyNotFoundError(key any) error
- func MaxLimitReachedError(message string, a ...any) error
- func MaxWaitExceededError(message string, a ...any) error
- func MismatchedStorageClassError(message string, a ...any) error
- func MustRetryError(message string, a ...any) error
- func New(message string) error
- func NewStateError(state string, message string) error
- func NilHandlerError() error
- func NodeNotSafeToPublishForBackendError(node, backendType string) error
- func NotFoundError(message string, a ...any) error
- func NotManagedError(message string, a ...any) error
- func NotReadyError() error
- func PreconditionError(message string, a ...any) error
- func ReconcileDeferredError(message string, a ...any) error
- func ReconcileDeferredWithDuration(duration time.Duration, message string, a ...any) error
- func ReconcileDeferredWithDurationValue(err error) (time.Duration, bool)
- func ReconcileDeferredWithMaxDuration(maxDuration time.Duration, message string, a ...any) error
- func ReconcileDeferredWithMaxDurationValue(err error) (time.Duration, bool)
- func ReconcileFailedError(message string, a ...any) error
- func ReconcileIncompleteError(message string, a ...any) error
- func ResourceExhaustedError(err error) error
- func ServerBackPressureError(message string, a ...any) error
- func TempOperatorError(err error) error
- func TerminalReconciliationError(message string) error
- func TimeoutError(message string, a ...any) error
- func TooManyRequestsError(message string, a ...any) error
- func TypeAssertionError(assertion string) error
- func UnlicensedError(message string, a ...any) error
- func UnsupportedCapacityRangeError(err error) error
- func UnsupportedConfigError(message string, a ...any) error
- func UnsupportedError(message string, a ...any) error
- func Unwrap(err error) error
- func UsageStatsUnavailableError(message string, a ...any) error
- func ValueNotFoundError(value any, key ...any) error
- func VolumeCreatingError(message string, a ...any) error
- func VolumeDeletingError(message string, a ...any) error
- func VolumeStateError(message string, a ...any) error
- func WrapUnlicensedError(err error) error
- func WrapUnsupportedConfigError(err error) error
- func WrapWithAlreadyExistsError(err error, message string, a ...any) error
- func WrapWithConflictError(err error, message string, a ...any) error
- func WrapWithConnectionError(err error, message string, a ...any) error
- func WrapWithFoundError(err error, message string, a ...any) error
- func WrapWithMustRetryError(err error, message string, a ...any) error
- func WrapWithNotFoundError(err error, message string, a ...any) error
- func WrapWithNotManagedError(err error, message string, a ...any) error
- func WrapWithReconcileDeferredError(err error, message string, a ...any) error
- func WrapWithReconcileFailedError(err error, message string, a ...any) error
- func WrapWithReconcileIncompleteError(err error, message string, a ...any) error
- func WrapWithServerBackPressureError(err error, message string, a ...any) error
- func WrapWithTooManyRequestsError(err error, message string, a ...any) error
- func ZeroValueError(message string, a ...any) error
- type StateError
Constants ¶
const (
IsNegativeErrorMsg string = `must be greater than or equal to 0`
)
Variables ¶
This section is empty.
Functions ¶
func AlreadyExistsError ¶
func AsInvalidJSONError ¶
AsInvalidJSONError returns an InvalidJSONError, true if the error means the data cannot be unmarshaled, or the original error, false if it does not meet those conditions.
func AutogrowAlreadyAtMaxSizeError ¶
AutogrowAlreadyAtMaxSizeError creates an error when the volume is already at or above maxSize.
func AutogrowPolicyInUseError ¶
AutogrowPolicyInUseError creates an error when policy cannot be deleted because volumes are using it
func AutogrowPolicyNilError ¶
func AutogrowPolicyNilError() error
AutogrowPolicyNilError creates an error when the autogrow policy is nil.
func AutogrowPolicyNotFoundError ¶
AutogrowPolicyNotFoundError creates an error when a referenced Autogrow policy does not exist
func AutogrowPolicyNotUsableError ¶
AutogrowPolicyNotUsableError when policy exists but is in Failed/Deleting state
func AutogrowStuckResizeAtMaxSizeError ¶
AutogrowStuckResizeAtMaxSizeError creates an error when the volume cannot be autogrown because growth after capping at maxSize is below the minimum required to trigger a resize for the backend.
func BootstrapError ¶
func ConflictError ¶
ConflictError should be used when modifying a resource is disallowed due to interconnectedness or dependencies, such as when a snapshot is part of a group of snapshots.
func ConnectionError ¶
func FCPSameLunNumberError ¶
func FormatError ¶
func FoundError ¶
func ISCSIDeviceFlushError ¶
func ISCSISameLunNumberError ¶
func InProgressError ¶
func InterfaceNotSupportedError ¶
InterfaceNotSupportedError creates a new error when a requested type doesn't support the requested interface.
func InvalidInputError ¶
func InvalidJSONError ¶
func IsAlreadyExistsError ¶
func IsAuthError ¶
func IsBootstrapError ¶
func IsBusClosedError ¶
IsBusClosedError returns true if the error is a bus closed error.
func IsConflictError ¶
func IsConnectionError ¶
func IsFCPSameLunNumberError ¶
func IsFormatError ¶
func IsFoundError ¶
func IsISCSIDeviceFlushError ¶
func IsInProgressError ¶
func IsInterfaceNotSupportedError ¶
IsInterfaceNotSupportedError returns true if err is an interfaceNotSupportedError.
func IsInvalidInputError ¶
func IsInvalidJSONError ¶
func IsKeyError ¶
IsKeyError returns true if the error is a key error
func IsMaxLimitReachedError ¶
func IsMaxWaitExceededError ¶
func IsMustRetryError ¶
func IsNilHandlerError ¶
IsNilHandlerError returns true if the error is a nil handler error.
func IsNotFoundError ¶
func IsNotManagedError ¶
func IsNotReadyError ¶
func IsPreconditionError ¶
func IsReconcileFailedError ¶
func IsResourceNotFoundError ¶
func IsStateError ¶
IsStateError returns true if the error is a state error
func IsTempOperatorError ¶
func IsTimeoutError ¶
func IsTooManyRequestsError ¶
func IsUnlicensedError ¶
func IsUnsupportedError ¶
func IsValueError ¶
IsValueError returns true if the error is a value error
func IsVolumeCreatingError ¶
func IsVolumeDeletingError ¶
func IsVolumeStateError ¶
func IsZeroValueError ¶
IsZeroValueError returns true if the error is a zero value error.
func KeyNotFoundError ¶
KeyNotFoundError creates an error when a key is not found
func MaxLimitReachedError ¶
func MaxWaitExceededError ¶
func MustRetryError ¶
MustRetryError is a custom error type to indicate that an operation should be retried.
func NewStateError ¶
NewStateError creates a new error with state and optional message
func NilHandlerError ¶
func NilHandlerError() error
NilHandlerError creates a new nil handler error.
func NotFoundError ¶
func NotManagedError ¶
func NotReadyError ¶
func NotReadyError() error
func PreconditionError ¶
func ReconcileDeferredError ¶
func ReconcileDeferredWithDuration ¶
ReconcileDeferredWithDuration returns an error that carries a duration for requeuing with AddAfter(duration).
func ReconcileDeferredWithDurationValue ¶
ReconcileDeferredWithDurationValue returns the duration and true if err is a ReconcileDeferredWithDuration error; otherwise 0 and false.
func ReconcileDeferredWithMaxDuration ¶
ReconcileDeferredWithMaxDuration returns an error that carries a maximum requeue duration. The controller should use rate-limited backoff but cap the next delay by this duration so the deadline is respected.
func ReconcileDeferredWithMaxDurationValue ¶
ReconcileDeferredWithMaxDurationValue returns the max duration and true if err is a ReconcileDeferredWithMaxDuration error; otherwise 0 and false.
func ReconcileFailedError ¶
func ResourceExhaustedError ¶
func ServerBackPressureError ¶
func TempOperatorError ¶
func TimeoutError ¶
func TooManyRequestsError ¶
func TypeAssertionError ¶
func UnlicensedError ¶
func UnsupportedConfigError ¶
func UnsupportedError ¶
func ValueNotFoundError ¶
ValueNotFoundError creates an error when a value is not found If key is provided, the error message includes the key context Usage: ValueNotFoundError(value) or ValueNotFoundError(value, key)
func VolumeCreatingError ¶
func VolumeDeletingError ¶
func VolumeStateError ¶
func WrapUnlicensedError ¶
func WrapWithConnectionError ¶
func WrapWithMustRetryError ¶
func WrapWithNotManagedError ¶
func ZeroValueError ¶
ZeroValueError creates a new error when a value is a zero value.
Types ¶
type StateError ¶
type StateError struct {
State string // The state (e.g., "Starting", "Stopping", "Running", "Stopped")
Message string // Optional message
}
func (*StateError) Error ¶
func (e *StateError) Error() string