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: 17 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Gress_RewriteHostByHeader_RewritePolicy_name = map[int32]string{
		0: "RewriteHostWithHeader",
		1: "RewriteNamespaceWithHeader",
		2: "RewriteHostWithSpecifiedHost",
	}
	Gress_RewriteHostByHeader_RewritePolicy_value = map[string]int32{
		"RewriteHostWithHeader":        0,
		"RewriteNamespaceWithHeader":   1,
		"RewriteHostWithSpecifiedHost": 2,
	}
)

Enum value maps for Gress_RewriteHostByHeader_RewritePolicy.

View Source
var File_kuscia_api_filters_http_kuscia_gress_v3_gress_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Gress

type Gress struct {
	Instance                      string                       `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"`
	SelfNamespace                 string                       `protobuf:"bytes,2,opt,name=self_namespace,json=selfNamespace,proto3" json:"self_namespace,omitempty"`
	RewriteHostConfig             []*Gress_RewriteHostByHeader `protobuf:"bytes,3,rep,name=rewrite_host_config,json=rewriteHostConfig,proto3" json:"rewrite_host_config,omitempty"`
	AddOriginSource               bool                         `protobuf:"varint,4,opt,name=add_origin_source,json=addOriginSource,proto3" json:"add_origin_source,omitempty"`
	MaxLoggingBodySizePerReqeuest int32                        `` /* 157-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Gress) Descriptor deprecated

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

Deprecated: Use Gress.ProtoReflect.Descriptor instead.

func (*Gress) GetAddOriginSource

func (x *Gress) GetAddOriginSource() bool

func (*Gress) GetInstance

func (x *Gress) GetInstance() string

func (*Gress) GetMaxLoggingBodySizePerReqeuest

func (x *Gress) GetMaxLoggingBodySizePerReqeuest() int32

func (*Gress) GetRewriteHostConfig

func (x *Gress) GetRewriteHostConfig() []*Gress_RewriteHostByHeader

func (*Gress) GetSelfNamespace

func (x *Gress) GetSelfNamespace() string

func (*Gress) ProtoMessage

func (*Gress) ProtoMessage()

func (*Gress) ProtoReflect

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

func (*Gress) Reset

func (x *Gress) Reset()

func (*Gress) String

func (x *Gress) String() string

func (*Gress) Validate

func (m *Gress) Validate() error

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

func (m *Gress) ValidateAll() error

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

type GressMultiError

type GressMultiError []error

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

func (GressMultiError) AllErrors

func (m GressMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GressMultiError) Error

func (m GressMultiError) Error() string

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

type GressValidationError

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

GressValidationError is the validation error returned by Gress.Validate if the designated constraints aren't met.

func (GressValidationError) Cause

func (e GressValidationError) Cause() error

Cause function returns cause value.

func (GressValidationError) Error

func (e GressValidationError) Error() string

Error satisfies the builtin error interface

func (GressValidationError) ErrorName

func (e GressValidationError) ErrorName() string

ErrorName returns error name.

func (GressValidationError) Field

func (e GressValidationError) Field() string

Field function returns field value.

func (GressValidationError) Key

func (e GressValidationError) Key() bool

Key function returns key value.

func (GressValidationError) Reason

func (e GressValidationError) Reason() string

Reason function returns reason value.

type Gress_RewriteHostByHeader

type Gress_RewriteHostByHeader struct {
	RewritePolicy Gress_RewriteHostByHeader_RewritePolicy `` /* 192-byte string literal not displayed */
	Header        string                                  `protobuf:"bytes,2,opt,name=header,proto3" json:"header,omitempty"`
	PathMatchers  []*v3.PathMatcher                       `protobuf:"bytes,3,rep,name=path_matchers,json=pathMatchers,proto3" json:"path_matchers,omitempty"`
	SpecifiedHost string                                  `protobuf:"bytes,4,opt,name=specified_host,json=specifiedHost,proto3" json:"specified_host,omitempty"`
	// contains filtered or unexported fields
}

func (*Gress_RewriteHostByHeader) Descriptor deprecated

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

Deprecated: Use Gress_RewriteHostByHeader.ProtoReflect.Descriptor instead.

func (*Gress_RewriteHostByHeader) GetHeader

func (x *Gress_RewriteHostByHeader) GetHeader() string

func (*Gress_RewriteHostByHeader) GetPathMatchers

func (x *Gress_RewriteHostByHeader) GetPathMatchers() []*v3.PathMatcher

func (*Gress_RewriteHostByHeader) GetRewritePolicy

func (*Gress_RewriteHostByHeader) GetSpecifiedHost

func (x *Gress_RewriteHostByHeader) GetSpecifiedHost() string

func (*Gress_RewriteHostByHeader) ProtoMessage

func (*Gress_RewriteHostByHeader) ProtoMessage()

func (*Gress_RewriteHostByHeader) ProtoReflect

func (*Gress_RewriteHostByHeader) Reset

func (x *Gress_RewriteHostByHeader) Reset()

func (*Gress_RewriteHostByHeader) String

func (x *Gress_RewriteHostByHeader) String() string

func (*Gress_RewriteHostByHeader) Validate

func (m *Gress_RewriteHostByHeader) Validate() error

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

func (m *Gress_RewriteHostByHeader) ValidateAll() error

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

type Gress_RewriteHostByHeaderMultiError

type Gress_RewriteHostByHeaderMultiError []error

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

func (Gress_RewriteHostByHeaderMultiError) AllErrors

AllErrors returns a list of validation violation errors.

func (Gress_RewriteHostByHeaderMultiError) Error

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

type Gress_RewriteHostByHeaderValidationError

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

Gress_RewriteHostByHeaderValidationError is the validation error returned by Gress_RewriteHostByHeader.Validate if the designated constraints aren't met.

func (Gress_RewriteHostByHeaderValidationError) Cause

Cause function returns cause value.

func (Gress_RewriteHostByHeaderValidationError) Error

Error satisfies the builtin error interface

func (Gress_RewriteHostByHeaderValidationError) ErrorName

ErrorName returns error name.

func (Gress_RewriteHostByHeaderValidationError) Field

Field function returns field value.

func (Gress_RewriteHostByHeaderValidationError) Key

Key function returns key value.

func (Gress_RewriteHostByHeaderValidationError) Reason

Reason function returns reason value.

type Gress_RewriteHostByHeader_RewritePolicy

type Gress_RewriteHostByHeader_RewritePolicy int32
const (
	Gress_RewriteHostByHeader_RewriteHostWithHeader        Gress_RewriteHostByHeader_RewritePolicy = 0
	Gress_RewriteHostByHeader_RewriteNamespaceWithHeader   Gress_RewriteHostByHeader_RewritePolicy = 1
	Gress_RewriteHostByHeader_RewriteHostWithSpecifiedHost Gress_RewriteHostByHeader_RewritePolicy = 2
)

func (Gress_RewriteHostByHeader_RewritePolicy) Descriptor

func (Gress_RewriteHostByHeader_RewritePolicy) Enum

func (Gress_RewriteHostByHeader_RewritePolicy) EnumDescriptor deprecated

func (Gress_RewriteHostByHeader_RewritePolicy) EnumDescriptor() ([]byte, []int)

Deprecated: Use Gress_RewriteHostByHeader_RewritePolicy.Descriptor instead.

func (Gress_RewriteHostByHeader_RewritePolicy) Number

func (Gress_RewriteHostByHeader_RewritePolicy) String

func (Gress_RewriteHostByHeader_RewritePolicy) Type

Jump to

Keyboard shortcuts

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