Documentation ¶
Index ¶
- Variables
- type UriTemplateMatchConfig
- func (*UriTemplateMatchConfig) Descriptor() ([]byte, []int)deprecated
- func (x *UriTemplateMatchConfig) GetPathTemplate() string
- func (*UriTemplateMatchConfig) ProtoMessage()
- func (x *UriTemplateMatchConfig) ProtoReflect() protoreflect.Message
- func (x *UriTemplateMatchConfig) Reset()
- func (x *UriTemplateMatchConfig) String() string
- func (m *UriTemplateMatchConfig) Validate() error
- func (m *UriTemplateMatchConfig) ValidateAll() error
- type UriTemplateMatchConfigMultiError
- type UriTemplateMatchConfigValidationError
- func (e UriTemplateMatchConfigValidationError) Cause() error
- func (e UriTemplateMatchConfigValidationError) Error() string
- func (e UriTemplateMatchConfigValidationError) ErrorName() string
- func (e UriTemplateMatchConfigValidationError) Field() string
- func (e UriTemplateMatchConfigValidationError) Key() bool
- func (e UriTemplateMatchConfigValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var File_envoy_extensions_path_match_uri_template_v3_uri_template_match_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type UriTemplateMatchConfig ¶
type UriTemplateMatchConfig 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“
func (*UriTemplateMatchConfig) Descriptor
deprecated
func (*UriTemplateMatchConfig) Descriptor() ([]byte, []int)
Deprecated: Use UriTemplateMatchConfig.ProtoReflect.Descriptor instead.
func (*UriTemplateMatchConfig) GetPathTemplate ¶
func (x *UriTemplateMatchConfig) GetPathTemplate() string
func (*UriTemplateMatchConfig) ProtoMessage ¶
func (*UriTemplateMatchConfig) ProtoMessage()
func (*UriTemplateMatchConfig) ProtoReflect ¶
func (x *UriTemplateMatchConfig) ProtoReflect() protoreflect.Message
func (*UriTemplateMatchConfig) Reset ¶
func (x *UriTemplateMatchConfig) Reset()
func (*UriTemplateMatchConfig) String ¶
func (x *UriTemplateMatchConfig) String() string
func (*UriTemplateMatchConfig) Validate ¶
func (m *UriTemplateMatchConfig) Validate() error
Validate checks the field values on UriTemplateMatchConfig 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 (*UriTemplateMatchConfig) ValidateAll ¶
func (m *UriTemplateMatchConfig) ValidateAll() error
ValidateAll checks the field values on UriTemplateMatchConfig 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 UriTemplateMatchConfigMultiError, or nil if none found.
type UriTemplateMatchConfigMultiError ¶
type UriTemplateMatchConfigMultiError []error
UriTemplateMatchConfigMultiError is an error wrapping multiple validation errors returned by UriTemplateMatchConfig.ValidateAll() if the designated constraints aren't met.
func (UriTemplateMatchConfigMultiError) AllErrors ¶
func (m UriTemplateMatchConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (UriTemplateMatchConfigMultiError) Error ¶
func (m UriTemplateMatchConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type UriTemplateMatchConfigValidationError ¶
type UriTemplateMatchConfigValidationError struct {
// contains filtered or unexported fields
}
UriTemplateMatchConfigValidationError is the validation error returned by UriTemplateMatchConfig.Validate if the designated constraints aren't met.
func (UriTemplateMatchConfigValidationError) Cause ¶
func (e UriTemplateMatchConfigValidationError) Cause() error
Cause function returns cause value.
func (UriTemplateMatchConfigValidationError) Error ¶
func (e UriTemplateMatchConfigValidationError) Error() string
Error satisfies the builtin error interface
func (UriTemplateMatchConfigValidationError) ErrorName ¶
func (e UriTemplateMatchConfigValidationError) ErrorName() string
ErrorName returns error name.
func (UriTemplateMatchConfigValidationError) Field ¶
func (e UriTemplateMatchConfigValidationError) Field() string
Field function returns field value.
func (UriTemplateMatchConfigValidationError) Key ¶
func (e UriTemplateMatchConfigValidationError) Key() bool
Key function returns key value.
func (UriTemplateMatchConfigValidationError) Reason ¶
func (e UriTemplateMatchConfigValidationError) Reason() string
Reason function returns reason value.