Documentation ¶
Index ¶
- Variables
- type Backend
- func (*Backend) Descriptor() ([]byte, []int)deprecated
- func (x *Backend) GetHeader() map[string]string
- func (x *Backend) GetMessage() string
- func (x *Backend) GetStatusCode() int32
- func (*Backend) ProtoMessage()
- func (x *Backend) ProtoReflect() protoreflect.Message
- func (x *Backend) Reset()
- func (x *Backend) String() string
- func (m *Backend) Validate() error
- func (m *Backend) ValidateAll() error
- type BackendMultiError
- type BackendValidationError
Constants ¶
This section is empty.
Variables ¶
var File_pkg_apis_errordetails_v2_errordetails_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Backend ¶ added in v2.0.114
type Backend struct { // Backend error message. Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // Backend HTTP response header. Header map[string]string `` /* 153-byte string literal not displayed */ // Backend HTTP status code. StatusCode int32 `protobuf:"varint,3,opt,name=status_code,json=statusCode,proto3" json:"status_code,omitempty"` // contains filtered or unexported fields }
Backend is error detail for Backend.
func (*Backend) Descriptor
deprecated
added in
v2.0.114
func (*Backend) GetMessage ¶ added in v2.0.114
func (*Backend) GetStatusCode ¶ added in v2.0.114
func (*Backend) ProtoMessage ¶ added in v2.0.114
func (*Backend) ProtoMessage()
func (*Backend) ProtoReflect ¶ added in v2.0.114
func (x *Backend) ProtoReflect() protoreflect.Message
func (*Backend) Validate ¶ added in v2.0.114
Validate checks the field values on Backend 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 (*Backend) ValidateAll ¶ added in v2.0.114
ValidateAll checks the field values on Backend 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 BackendMultiError, or nil if none found.
type BackendMultiError ¶ added in v2.0.114
type BackendMultiError []error
BackendMultiError is an error wrapping multiple validation errors returned by Backend.ValidateAll() if the designated constraints aren't met.
func (BackendMultiError) AllErrors ¶ added in v2.0.114
func (m BackendMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (BackendMultiError) Error ¶ added in v2.0.114
func (m BackendMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type BackendValidationError ¶ added in v2.0.114
type BackendValidationError struct {
// contains filtered or unexported fields
}
BackendValidationError is the validation error returned by Backend.Validate if the designated constraints aren't met.
func (BackendValidationError) Cause ¶ added in v2.0.114
func (e BackendValidationError) Cause() error
Cause function returns cause value.
func (BackendValidationError) Error ¶ added in v2.0.114
func (e BackendValidationError) Error() string
Error satisfies the builtin error interface
func (BackendValidationError) ErrorName ¶ added in v2.0.114
func (e BackendValidationError) ErrorName() string
ErrorName returns error name.
func (BackendValidationError) Field ¶ added in v2.0.114
func (e BackendValidationError) Field() string
Field function returns field value.
func (BackendValidationError) Key ¶ added in v2.0.114
func (e BackendValidationError) Key() bool
Key function returns key value.
func (BackendValidationError) Reason ¶ added in v2.0.114
func (e BackendValidationError) Reason() string
Reason function returns reason value.