Documentation
¶
Index ¶
- Variables
- type PatternTemplateMatchConfig
- func (*PatternTemplateMatchConfig) Descriptor() ([]byte, []int)deprecated
- func (x *PatternTemplateMatchConfig) GetPathTemplate() string
- func (*PatternTemplateMatchConfig) ProtoMessage()
- func (x *PatternTemplateMatchConfig) ProtoReflect() protoreflect.Message
- func (x *PatternTemplateMatchConfig) Reset()
- func (x *PatternTemplateMatchConfig) String() string
- func (m *PatternTemplateMatchConfig) Validate() error
- func (m *PatternTemplateMatchConfig) ValidateAll() error
- type PatternTemplateMatchConfigMultiError
- type PatternTemplateMatchConfigValidationError
- func (e PatternTemplateMatchConfigValidationError) Cause() error
- func (e PatternTemplateMatchConfigValidationError) Error() string
- func (e PatternTemplateMatchConfigValidationError) ErrorName() string
- func (e PatternTemplateMatchConfigValidationError) Field() string
- func (e PatternTemplateMatchConfigValidationError) Key() bool
- func (e PatternTemplateMatchConfigValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_envoy_extensions_path_match_pattern_template_v3_pattern_template_match_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type PatternTemplateMatchConfig ¶
type PatternTemplateMatchConfig struct { PathTemplate string `protobuf:"bytes,1,opt,name=path_template,json=pathTemplate,proto3" json:"path_template,omitempty"` // contains filtered or unexported fields }
If specified, the route is a template match rule meaning that the “:path“ header (without the query string) must match the given “path_template“ pattern.
Path template matching types:
* “*“ : Matches a single path component, up to the next path separator: /
* “**“ : Matches zero or more path segments. If present, must be the last operator.
* “{name} or {name=*}“ : A named variable matching one path segment up to the next path separator: /.
- “{name=videos/*}“ : A named variable matching more than one path segment. The path component matching videos/* is captured as the named variable.
* “{name=**}“ : A named variable matching zero or more path segments.
For example:
* “/videos/*/*/*.m4s“ would match “videos/123414/hls/1080p5000_00001.m4s“
* “/videos/{file}“ would match “/videos/1080p5000_00001.m4s“
* “/**.mpd“ would match “/content/123/india/dash/55/manifest.mpd“ [#not-implemented-hide:]
func (*PatternTemplateMatchConfig) Descriptor
deprecated
func (*PatternTemplateMatchConfig) Descriptor() ([]byte, []int)
Deprecated: Use PatternTemplateMatchConfig.ProtoReflect.Descriptor instead.
func (*PatternTemplateMatchConfig) GetPathTemplate ¶
func (x *PatternTemplateMatchConfig) GetPathTemplate() string
func (*PatternTemplateMatchConfig) ProtoMessage ¶
func (*PatternTemplateMatchConfig) ProtoMessage()
func (*PatternTemplateMatchConfig) ProtoReflect ¶
func (x *PatternTemplateMatchConfig) ProtoReflect() protoreflect.Message
func (*PatternTemplateMatchConfig) Reset ¶
func (x *PatternTemplateMatchConfig) Reset()
func (*PatternTemplateMatchConfig) String ¶
func (x *PatternTemplateMatchConfig) String() string
func (*PatternTemplateMatchConfig) Validate ¶
func (m *PatternTemplateMatchConfig) Validate() error
Validate checks the field values on PatternTemplateMatchConfig 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 (*PatternTemplateMatchConfig) ValidateAll ¶
func (m *PatternTemplateMatchConfig) ValidateAll() error
ValidateAll checks the field values on PatternTemplateMatchConfig 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 PatternTemplateMatchConfigMultiError, or nil if none found.
type PatternTemplateMatchConfigMultiError ¶
type PatternTemplateMatchConfigMultiError []error
PatternTemplateMatchConfigMultiError is an error wrapping multiple validation errors returned by PatternTemplateMatchConfig.ValidateAll() if the designated constraints aren't met.
func (PatternTemplateMatchConfigMultiError) AllErrors ¶
func (m PatternTemplateMatchConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PatternTemplateMatchConfigMultiError) Error ¶
func (m PatternTemplateMatchConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PatternTemplateMatchConfigValidationError ¶
type PatternTemplateMatchConfigValidationError struct {
// contains filtered or unexported fields
}
PatternTemplateMatchConfigValidationError is the validation error returned by PatternTemplateMatchConfig.Validate if the designated constraints aren't met.
func (PatternTemplateMatchConfigValidationError) Cause ¶
func (e PatternTemplateMatchConfigValidationError) Cause() error
Cause function returns cause value.
func (PatternTemplateMatchConfigValidationError) Error ¶
func (e PatternTemplateMatchConfigValidationError) Error() string
Error satisfies the builtin error interface
func (PatternTemplateMatchConfigValidationError) ErrorName ¶
func (e PatternTemplateMatchConfigValidationError) ErrorName() string
ErrorName returns error name.
func (PatternTemplateMatchConfigValidationError) Field ¶
func (e PatternTemplateMatchConfigValidationError) Field() string
Field function returns field value.
func (PatternTemplateMatchConfigValidationError) Key ¶
func (e PatternTemplateMatchConfigValidationError) Key() bool
Key function returns key value.
func (PatternTemplateMatchConfigValidationError) Reason ¶
func (e PatternTemplateMatchConfigValidationError) Reason() string
Reason function returns reason value.