Documentation ¶
Overview ¶
Package errors implements various error types that are used both internally, and that may be returned from the client interface.
Errors returned by the client that are not covered by these errors can be considered as general internal failures.
Index ¶
- func PanicIfErrored(err error, msgformat string, args ...interface{})
- func UpdateErrorIdentifier(err error, id interface{}) error
- type ErrorAdminPolicyConversion
- func (e *ErrorAdminPolicyConversion) BadEgressRule(rule *adminpolicy.AdminNetworkPolicyEgressRule, reason string)
- func (e *ErrorAdminPolicyConversion) BadIngressRule(rule *adminpolicy.AdminNetworkPolicyIngressRule, reason string)
- func (e ErrorAdminPolicyConversion) Error() string
- func (e ErrorAdminPolicyConversion) GetError() error
- type ErrorAdminPolicyConversionRule
- type ErrorBadHandle
- type ErrorBadSequenceNumber
- type ErrorConnectionUnauthorized
- type ErrorDatastoreError
- type ErrorInsufficientIdentifiers
- type ErrorOperationNotSupported
- type ErrorParsingDatastoreEntry
- type ErrorPartialFailure
- type ErrorPolicyConversion
- func (e *ErrorPolicyConversion) BadEgressRule(rule *networkingv1.NetworkPolicyEgressRule, reason string)
- func (e *ErrorPolicyConversion) BadIngressRule(rule *networkingv1.NetworkPolicyIngressRule, reason string)
- func (e ErrorPolicyConversion) Error() string
- func (e ErrorPolicyConversion) GetError() error
- type ErrorPolicyConversionRule
- type ErrorResourceAlreadyExists
- type ErrorResourceDoesNotExist
- type ErrorResourceUpdateConflict
- type ErrorValidation
- type ErroredField
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PanicIfErrored ¶
PanicIfErrored logs and panics if the supplied error is non-nil.
func UpdateErrorIdentifier ¶
UpdateErrorIdentifier modifies the supplied error to use the new resource identifier.
Types ¶
type ErrorAdminPolicyConversion ¶
type ErrorAdminPolicyConversion struct { PolicyName string Rules []ErrorAdminPolicyConversionRule }
func (*ErrorAdminPolicyConversion) BadEgressRule ¶
func (e *ErrorAdminPolicyConversion) BadEgressRule(rule *adminpolicy.AdminNetworkPolicyEgressRule, reason string)
func (*ErrorAdminPolicyConversion) BadIngressRule ¶
func (e *ErrorAdminPolicyConversion) BadIngressRule(rule *adminpolicy.AdminNetworkPolicyIngressRule, reason string)
func (ErrorAdminPolicyConversion) Error ¶
func (e ErrorAdminPolicyConversion) Error() string
func (ErrorAdminPolicyConversion) GetError ¶
func (e ErrorAdminPolicyConversion) GetError() error
type ErrorAdminPolicyConversionRule ¶
type ErrorAdminPolicyConversionRule struct { EgressRule *adminpolicy.AdminNetworkPolicyEgressRule IngressRule *adminpolicy.AdminNetworkPolicyIngressRule Reason string }
func (ErrorAdminPolicyConversionRule) String ¶
func (e ErrorAdminPolicyConversionRule) String() string
type ErrorBadHandle ¶
Error indicating that the caller has attempted to release an IP address using outdated information.
func (ErrorBadHandle) Error ¶
func (e ErrorBadHandle) Error() string
type ErrorBadSequenceNumber ¶
Error indicating that the caller has attempted to release an IP address using outdated information.
func (ErrorBadSequenceNumber) Error ¶
func (e ErrorBadSequenceNumber) Error() string
type ErrorConnectionUnauthorized ¶
type ErrorConnectionUnauthorized struct {
}Error indicating a problem connecting to the backend.
func (ErrorConnectionUnauthorized) Error ¶
func (e ErrorConnectionUnauthorized) Error() string
type ErrorDatastoreError ¶
type ErrorDatastoreError struct { Err error Identifier interface{} }
Error indicating a problem connecting to the backend.
func (ErrorDatastoreError) Error ¶
func (e ErrorDatastoreError) Error() string
func (ErrorDatastoreError) Status ¶
func (e ErrorDatastoreError) Status() metav1.Status
type ErrorInsufficientIdentifiers ¶
type ErrorInsufficientIdentifiers struct {
Name string
}
Error indicating insufficient identifiers have been supplied on a resource management request (create, apply, update, get, delete).
func (ErrorInsufficientIdentifiers) Error ¶
func (e ErrorInsufficientIdentifiers) Error() string
type ErrorOperationNotSupported ¶
Error indicating an operation is not supported.
func (ErrorOperationNotSupported) Error ¶
func (e ErrorOperationNotSupported) Error() string
type ErrorParsingDatastoreEntry ¶
Error indicating the datastore has failed to parse an entry.
func (ErrorParsingDatastoreEntry) Error ¶
func (e ErrorParsingDatastoreEntry) Error() string
type ErrorPartialFailure ¶
type ErrorPartialFailure struct {
Err error
}
Error indicating that the operation may have partially succeeded, then failed, without rolling back. A common example is when a function failed in an acceptable way after it successfully wrote some data to the datastore.
func (ErrorPartialFailure) Error ¶
func (e ErrorPartialFailure) Error() string
type ErrorPolicyConversion ¶
type ErrorPolicyConversion struct { PolicyName string Rules []ErrorPolicyConversionRule }
func (*ErrorPolicyConversion) BadEgressRule ¶
func (e *ErrorPolicyConversion) BadEgressRule(rule *networkingv1.NetworkPolicyEgressRule, reason string)
func (*ErrorPolicyConversion) BadIngressRule ¶
func (e *ErrorPolicyConversion) BadIngressRule( rule *networkingv1.NetworkPolicyIngressRule, reason string)
func (ErrorPolicyConversion) Error ¶
func (e ErrorPolicyConversion) Error() string
func (ErrorPolicyConversion) GetError ¶
func (e ErrorPolicyConversion) GetError() error
type ErrorPolicyConversionRule ¶
type ErrorPolicyConversionRule struct { EgressRule *networkingv1.NetworkPolicyEgressRule IngressRule *networkingv1.NetworkPolicyIngressRule Reason string }
func (ErrorPolicyConversionRule) String ¶
func (e ErrorPolicyConversionRule) String() string
type ErrorResourceAlreadyExists ¶
type ErrorResourceAlreadyExists struct { Err error Identifier interface{} }
Error indicating a resource already exists. Used when attempting to create a resource that already exists.
func (ErrorResourceAlreadyExists) Error ¶
func (e ErrorResourceAlreadyExists) Error() string
type ErrorResourceDoesNotExist ¶
type ErrorResourceDoesNotExist struct { Err error Identifier interface{} }
Error indicating a resource does not exist. Used when attempting to delete or update a nonexistent resource.
func (ErrorResourceDoesNotExist) Error ¶
func (e ErrorResourceDoesNotExist) Error() string
type ErrorResourceUpdateConflict ¶
type ErrorResourceUpdateConflict struct { Err error Identifier interface{} }
Error indicating an atomic update attempt that failed due to a update conflict.
func (ErrorResourceUpdateConflict) Error ¶
func (e ErrorResourceUpdateConflict) Error() string
type ErrorValidation ¶
type ErrorValidation struct {
ErroredFields []ErroredField
}
Validation error containing the fields that are failed validation.
func (ErrorValidation) Error ¶
func (e ErrorValidation) Error() string
type ErroredField ¶
func (ErroredField) String ¶
func (e ErroredField) String() string