Documentation ¶
Index ¶
- Variables
- type Gress
- func (*Gress) Descriptor() ([]byte, []int)deprecated
- func (x *Gress) GetAddOriginSource() bool
- func (x *Gress) GetInstance() string
- func (x *Gress) GetMaxLoggingBodySizePerReqeuest() int32
- func (x *Gress) GetRewriteHostConfig() []*Gress_RewriteHostByHeader
- func (x *Gress) GetSelfNamespace() string
- func (*Gress) ProtoMessage()
- func (x *Gress) ProtoReflect() protoreflect.Message
- func (x *Gress) Reset()
- func (x *Gress) String() string
- func (m *Gress) Validate() error
- func (m *Gress) ValidateAll() error
- type GressMultiError
- type GressValidationError
- type Gress_RewriteHostByHeader
- func (*Gress_RewriteHostByHeader) Descriptor() ([]byte, []int)deprecated
- func (x *Gress_RewriteHostByHeader) GetHeader() string
- func (x *Gress_RewriteHostByHeader) GetPathMatchers() []*v3.PathMatcher
- func (x *Gress_RewriteHostByHeader) GetRewritePolicy() Gress_RewriteHostByHeader_RewritePolicy
- func (x *Gress_RewriteHostByHeader) GetSpecifiedHost() string
- func (*Gress_RewriteHostByHeader) ProtoMessage()
- func (x *Gress_RewriteHostByHeader) ProtoReflect() protoreflect.Message
- func (x *Gress_RewriteHostByHeader) Reset()
- func (x *Gress_RewriteHostByHeader) String() string
- func (m *Gress_RewriteHostByHeader) Validate() error
- func (m *Gress_RewriteHostByHeader) ValidateAll() error
- type Gress_RewriteHostByHeaderMultiError
- type Gress_RewriteHostByHeaderValidationError
- func (e Gress_RewriteHostByHeaderValidationError) Cause() error
- func (e Gress_RewriteHostByHeaderValidationError) Error() string
- func (e Gress_RewriteHostByHeaderValidationError) ErrorName() string
- func (e Gress_RewriteHostByHeaderValidationError) Field() string
- func (e Gress_RewriteHostByHeaderValidationError) Key() bool
- func (e Gress_RewriteHostByHeaderValidationError) Reason() string
- type Gress_RewriteHostByHeader_RewritePolicy
- func (Gress_RewriteHostByHeader_RewritePolicy) Descriptor() protoreflect.EnumDescriptor
- func (x Gress_RewriteHostByHeader_RewritePolicy) Enum() *Gress_RewriteHostByHeader_RewritePolicy
- func (Gress_RewriteHostByHeader_RewritePolicy) EnumDescriptor() ([]byte, []int)deprecated
- func (x Gress_RewriteHostByHeader_RewritePolicy) Number() protoreflect.EnumNumber
- func (x Gress_RewriteHostByHeader_RewritePolicy) String() string
- func (Gress_RewriteHostByHeader_RewritePolicy) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
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.
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) GetAddOriginSource ¶
func (*Gress) GetInstance ¶
func (*Gress) GetMaxLoggingBodySizePerReqeuest ¶
func (*Gress) GetRewriteHostConfig ¶
func (x *Gress) GetRewriteHostConfig() []*Gress_RewriteHostByHeader
func (*Gress) GetSelfNamespace ¶
func (*Gress) ProtoMessage ¶
func (*Gress) ProtoMessage()
func (*Gress) ProtoReflect ¶
func (x *Gress) ProtoReflect() protoreflect.Message
func (*Gress) Validate ¶
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 ¶
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 (x *Gress_RewriteHostByHeader) GetRewritePolicy() Gress_RewriteHostByHeader_RewritePolicy
func (*Gress_RewriteHostByHeader) GetSpecifiedHost ¶
func (x *Gress_RewriteHostByHeader) GetSpecifiedHost() string
func (*Gress_RewriteHostByHeader) ProtoMessage ¶
func (*Gress_RewriteHostByHeader) ProtoMessage()
func (*Gress_RewriteHostByHeader) ProtoReflect ¶
func (x *Gress_RewriteHostByHeader) ProtoReflect() protoreflect.Message
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 ¶
func (m Gress_RewriteHostByHeaderMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (Gress_RewriteHostByHeaderMultiError) Error ¶
func (m Gress_RewriteHostByHeaderMultiError) Error() string
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 ¶
func (e Gress_RewriteHostByHeaderValidationError) Cause() error
Cause function returns cause value.
func (Gress_RewriteHostByHeaderValidationError) Error ¶
func (e Gress_RewriteHostByHeaderValidationError) Error() string
Error satisfies the builtin error interface
func (Gress_RewriteHostByHeaderValidationError) ErrorName ¶
func (e Gress_RewriteHostByHeaderValidationError) ErrorName() string
ErrorName returns error name.
func (Gress_RewriteHostByHeaderValidationError) Field ¶
func (e Gress_RewriteHostByHeaderValidationError) Field() string
Field function returns field value.
func (Gress_RewriteHostByHeaderValidationError) Key ¶
func (e Gress_RewriteHostByHeaderValidationError) Key() bool
Key function returns key value.
func (Gress_RewriteHostByHeaderValidationError) Reason ¶
func (e Gress_RewriteHostByHeaderValidationError) Reason() string
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) Descriptor() protoreflect.EnumDescriptor
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 (x Gress_RewriteHostByHeader_RewritePolicy) Number() protoreflect.EnumNumber
func (Gress_RewriteHostByHeader_RewritePolicy) String ¶
func (x Gress_RewriteHostByHeader_RewritePolicy) String() string
func (Gress_RewriteHostByHeader_RewritePolicy) Type ¶
func (Gress_RewriteHostByHeader_RewritePolicy) Type() protoreflect.EnumType