errordetails

package
v2.0.134 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 15, 2024 License: Apache-2.0 Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
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,oneof" 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) Descriptor() ([]byte, []int)

Deprecated: Use Backend.ProtoReflect.Descriptor instead.

func (*Backend) GetHeader added in v2.0.114

func (x *Backend) GetHeader() map[string]string

func (*Backend) GetMessage added in v2.0.114

func (x *Backend) GetMessage() string

func (*Backend) GetStatusCode added in v2.0.114

func (x *Backend) GetStatusCode() int32

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) Reset added in v2.0.114

func (x *Backend) Reset()

func (*Backend) String added in v2.0.114

func (x *Backend) String() string

func (*Backend) Validate added in v2.0.114

func (m *Backend) Validate() error

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

func (m *Backend) ValidateAll() error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL