v3

package
v0.0.0-...-6005464 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 16 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_kuscia_api_filters_http_kuscia_header_decorator_v3_header_decorator_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type HeaderDecorator

type HeaderDecorator struct {
	AppendHeaders []*HeaderDecorator_SourceHeader `protobuf:"bytes,1,rep,name=append_headers,json=appendHeaders,proto3" json:"append_headers,omitempty"`
	// contains filtered or unexported fields
}

func (*HeaderDecorator) Descriptor deprecated

func (*HeaderDecorator) Descriptor() ([]byte, []int)

Deprecated: Use HeaderDecorator.ProtoReflect.Descriptor instead.

func (*HeaderDecorator) GetAppendHeaders

func (x *HeaderDecorator) GetAppendHeaders() []*HeaderDecorator_SourceHeader

func (*HeaderDecorator) ProtoMessage

func (*HeaderDecorator) ProtoMessage()

func (*HeaderDecorator) ProtoReflect

func (x *HeaderDecorator) ProtoReflect() protoreflect.Message

func (*HeaderDecorator) Reset

func (x *HeaderDecorator) Reset()

func (*HeaderDecorator) String

func (x *HeaderDecorator) String() string

func (*HeaderDecorator) Validate

func (m *HeaderDecorator) Validate() error

Validate checks the field values on HeaderDecorator 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 (*HeaderDecorator) ValidateAll

func (m *HeaderDecorator) ValidateAll() error

ValidateAll checks the field values on HeaderDecorator 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 HeaderDecoratorMultiError, or nil if none found.

type HeaderDecoratorMultiError

type HeaderDecoratorMultiError []error

HeaderDecoratorMultiError is an error wrapping multiple validation errors returned by HeaderDecorator.ValidateAll() if the designated constraints aren't met.

func (HeaderDecoratorMultiError) AllErrors

func (m HeaderDecoratorMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (HeaderDecoratorMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type HeaderDecoratorValidationError

type HeaderDecoratorValidationError struct {
	// contains filtered or unexported fields
}

HeaderDecoratorValidationError is the validation error returned by HeaderDecorator.Validate if the designated constraints aren't met.

func (HeaderDecoratorValidationError) Cause

Cause function returns cause value.

func (HeaderDecoratorValidationError) Error

Error satisfies the builtin error interface

func (HeaderDecoratorValidationError) ErrorName

func (e HeaderDecoratorValidationError) ErrorName() string

ErrorName returns error name.

func (HeaderDecoratorValidationError) Field

Field function returns field value.

func (HeaderDecoratorValidationError) Key

Key function returns key value.

func (HeaderDecoratorValidationError) Reason

Reason function returns reason value.

type HeaderDecorator_HeaderEntry

type HeaderDecorator_HeaderEntry struct {
	Key   string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (*HeaderDecorator_HeaderEntry) Descriptor deprecated

func (*HeaderDecorator_HeaderEntry) Descriptor() ([]byte, []int)

Deprecated: Use HeaderDecorator_HeaderEntry.ProtoReflect.Descriptor instead.

func (*HeaderDecorator_HeaderEntry) GetKey

func (x *HeaderDecorator_HeaderEntry) GetKey() string

func (*HeaderDecorator_HeaderEntry) GetValue

func (x *HeaderDecorator_HeaderEntry) GetValue() string

func (*HeaderDecorator_HeaderEntry) ProtoMessage

func (*HeaderDecorator_HeaderEntry) ProtoMessage()

func (*HeaderDecorator_HeaderEntry) ProtoReflect

func (*HeaderDecorator_HeaderEntry) Reset

func (x *HeaderDecorator_HeaderEntry) Reset()

func (*HeaderDecorator_HeaderEntry) String

func (x *HeaderDecorator_HeaderEntry) String() string

func (*HeaderDecorator_HeaderEntry) Validate

func (m *HeaderDecorator_HeaderEntry) Validate() error

Validate checks the field values on HeaderDecorator_HeaderEntry 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 (*HeaderDecorator_HeaderEntry) ValidateAll

func (m *HeaderDecorator_HeaderEntry) ValidateAll() error

ValidateAll checks the field values on HeaderDecorator_HeaderEntry 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 HeaderDecorator_HeaderEntryMultiError, or nil if none found.

type HeaderDecorator_HeaderEntryMultiError

type HeaderDecorator_HeaderEntryMultiError []error

HeaderDecorator_HeaderEntryMultiError is an error wrapping multiple validation errors returned by HeaderDecorator_HeaderEntry.ValidateAll() if the designated constraints aren't met.

func (HeaderDecorator_HeaderEntryMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (HeaderDecorator_HeaderEntryMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type HeaderDecorator_HeaderEntryValidationError

type HeaderDecorator_HeaderEntryValidationError struct {
	// contains filtered or unexported fields
}

HeaderDecorator_HeaderEntryValidationError is the validation error returned by HeaderDecorator_HeaderEntry.Validate if the designated constraints aren't met.

func (HeaderDecorator_HeaderEntryValidationError) Cause

Cause function returns cause value.

func (HeaderDecorator_HeaderEntryValidationError) Error

Error satisfies the builtin error interface

func (HeaderDecorator_HeaderEntryValidationError) ErrorName

ErrorName returns error name.

func (HeaderDecorator_HeaderEntryValidationError) Field

Field function returns field value.

func (HeaderDecorator_HeaderEntryValidationError) Key

Key function returns key value.

func (HeaderDecorator_HeaderEntryValidationError) Reason

Reason function returns reason value.

type HeaderDecorator_SourceHeader

type HeaderDecorator_SourceHeader struct {
	Source  string                         `protobuf:"bytes,1,opt,name=source,proto3" json:"source,omitempty"`
	Headers []*HeaderDecorator_HeaderEntry `protobuf:"bytes,2,rep,name=headers,proto3" json:"headers,omitempty"`
	// contains filtered or unexported fields
}

func (*HeaderDecorator_SourceHeader) Descriptor deprecated

func (*HeaderDecorator_SourceHeader) Descriptor() ([]byte, []int)

Deprecated: Use HeaderDecorator_SourceHeader.ProtoReflect.Descriptor instead.

func (*HeaderDecorator_SourceHeader) GetHeaders

func (*HeaderDecorator_SourceHeader) GetSource

func (x *HeaderDecorator_SourceHeader) GetSource() string

func (*HeaderDecorator_SourceHeader) ProtoMessage

func (*HeaderDecorator_SourceHeader) ProtoMessage()

func (*HeaderDecorator_SourceHeader) ProtoReflect

func (*HeaderDecorator_SourceHeader) Reset

func (x *HeaderDecorator_SourceHeader) Reset()

func (*HeaderDecorator_SourceHeader) String

func (*HeaderDecorator_SourceHeader) Validate

func (m *HeaderDecorator_SourceHeader) Validate() error

Validate checks the field values on HeaderDecorator_SourceHeader 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 (*HeaderDecorator_SourceHeader) ValidateAll

func (m *HeaderDecorator_SourceHeader) ValidateAll() error

ValidateAll checks the field values on HeaderDecorator_SourceHeader 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 HeaderDecorator_SourceHeaderMultiError, or nil if none found.

type HeaderDecorator_SourceHeaderMultiError

type HeaderDecorator_SourceHeaderMultiError []error

HeaderDecorator_SourceHeaderMultiError is an error wrapping multiple validation errors returned by HeaderDecorator_SourceHeader.ValidateAll() if the designated constraints aren't met.

func (HeaderDecorator_SourceHeaderMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (HeaderDecorator_SourceHeaderMultiError) Error

Error returns a concatenation of all the error messages it wraps.

type HeaderDecorator_SourceHeaderValidationError

type HeaderDecorator_SourceHeaderValidationError struct {
	// contains filtered or unexported fields
}

HeaderDecorator_SourceHeaderValidationError is the validation error returned by HeaderDecorator_SourceHeader.Validate if the designated constraints aren't met.

func (HeaderDecorator_SourceHeaderValidationError) Cause

Cause function returns cause value.

func (HeaderDecorator_SourceHeaderValidationError) Error

Error satisfies the builtin error interface

func (HeaderDecorator_SourceHeaderValidationError) ErrorName

ErrorName returns error name.

func (HeaderDecorator_SourceHeaderValidationError) Field

Field function returns field value.

func (HeaderDecorator_SourceHeaderValidationError) Key

Key function returns key value.

func (HeaderDecorator_SourceHeaderValidationError) Reason

Reason function returns reason value.

Jump to

Keyboard shortcuts

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