v1

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: Apache-2.0 Imports: 17 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
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

Cause function returns cause value.

func (SourceErrorValidationError) Error

Error satisfies the builtin error interface

func (SourceErrorValidationError) ErrorName

func (e SourceErrorValidationError) ErrorName() string

ErrorName returns error name.

func (SourceErrorValidationError) Field

Field function returns field value.

func (SourceErrorValidationError) Key

Key function returns key value.

func (SourceErrorValidationError) Reason

Reason function returns reason value.

Directories

Path Synopsis
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.

Jump to

Keyboard shortcuts

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