Documentation ¶
Index ¶
- Variables
- type SourceError
- func (*SourceError) Descriptor() ([]byte, []int)deprecated
- func (x *SourceError) GetMetadata() *v1.ExtendAttribute
- func (x *SourceError) GetTemporary() bool
- func (*SourceError) ProtoMessage()
- func (x *SourceError) ProtoReflect() protoreflect.Message
- func (x *SourceError) Reset()
- func (x *SourceError) String() string
- func (m *SourceError) Validate() error
- func (m *SourceError) ValidateAll() error
- type SourceErrorMultiError
- type SourceErrorValidationError
- func (e SourceErrorValidationError) Cause() error
- func (e SourceErrorValidationError) Error() string
- func (e SourceErrorValidationError) ErrorName() string
- func (e SourceErrorValidationError) Field() string
- func (e SourceErrorValidationError) Key() bool
- func (e SourceErrorValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_pkg_apis_errordetails_v1_errordetails_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type SourceError ¶
type SourceError struct { Temporary bool `protobuf:"varint,1,opt,name=temporary,proto3" json:"temporary,omitempty"` // source response metadata, eg: HTTP Status Code, HTTP Status, HTTP Header Metadata *v1.ExtendAttribute `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"` // contains filtered or unexported fields }
func (*SourceError) Descriptor
deprecated
func (*SourceError) Descriptor() ([]byte, []int)
Deprecated: Use SourceError.ProtoReflect.Descriptor instead.
func (*SourceError) GetMetadata ¶
func (x *SourceError) GetMetadata() *v1.ExtendAttribute
func (*SourceError) GetTemporary ¶
func (x *SourceError) GetTemporary() bool
func (*SourceError) ProtoMessage ¶
func (*SourceError) ProtoMessage()
func (*SourceError) ProtoReflect ¶
func (x *SourceError) ProtoReflect() protoreflect.Message
func (*SourceError) Reset ¶
func (x *SourceError) Reset()
func (*SourceError) String ¶
func (x *SourceError) String() string
func (*SourceError) Validate ¶
func (m *SourceError) Validate() error
Validate checks the field values on SourceError with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*SourceError) ValidateAll ¶
func (m *SourceError) ValidateAll() error
ValidateAll checks the field values on SourceError with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in SourceErrorMultiError, or nil if none found.
type SourceErrorMultiError ¶
type SourceErrorMultiError []error
SourceErrorMultiError is an error wrapping multiple validation errors returned by SourceError.ValidateAll() if the designated constraints aren't met.
func (SourceErrorMultiError) AllErrors ¶
func (m SourceErrorMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (SourceErrorMultiError) Error ¶
func (m SourceErrorMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type SourceErrorValidationError ¶
type SourceErrorValidationError struct {
// contains filtered or unexported fields
}
SourceErrorValidationError is the validation error returned by SourceError.Validate if the designated constraints aren't met.
func (SourceErrorValidationError) Cause ¶
func (e SourceErrorValidationError) Cause() error
Cause function returns cause value.
func (SourceErrorValidationError) Error ¶
func (e SourceErrorValidationError) Error() string
Error satisfies the builtin error interface
func (SourceErrorValidationError) ErrorName ¶
func (e SourceErrorValidationError) ErrorName() string
ErrorName returns error name.
func (SourceErrorValidationError) Field ¶
func (e SourceErrorValidationError) Field() string
Field function returns field value.
func (SourceErrorValidationError) Key ¶
func (e SourceErrorValidationError) Key() bool
Key function returns key value.
func (SourceErrorValidationError) Reason ¶
func (e SourceErrorValidationError) Reason() string
Reason function returns reason value.