var File_http_route_proto protoreflect.FileDescriptor
Describes how to match a header by name and value.
type HeaderMatch struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Types that are assignable to Value: // // *HeaderMatch_Exact // *HeaderMatch_Regex Value isHeaderMatch_Value `protobuf_oneof:"value"` // contains filtered or unexported fields }
func (*HeaderMatch) Descriptor() ([]byte, []int)
Deprecated: Use HeaderMatch.ProtoReflect.Descriptor instead.
func (x *HeaderMatch) GetExact() []byte
func (x *HeaderMatch) GetName() string
func (x *HeaderMatch) GetRegex() string
func (m *HeaderMatch) GetValue() isHeaderMatch_Value
func (*HeaderMatch) ProtoMessage()
func (x *HeaderMatch) ProtoReflect() protoreflect.Message
func (x *HeaderMatch) Reset()
func (x *HeaderMatch) String() string
type HeaderMatch_Exact struct { Exact []byte `protobuf:"bytes,2,opt,name=exact,proto3,oneof"` }
type HeaderMatch_Regex struct { Regex string `protobuf:"bytes,3,opt,name=regex,proto3,oneof"` }
Describes how to match an `:authority` or `host` header.
type HostMatch struct { // Types that are assignable to Match: // // *HostMatch_Exact // *HostMatch_Suffix_ Match isHostMatch_Match `protobuf_oneof:"match"` // contains filtered or unexported fields }
func (*HostMatch) Descriptor() ([]byte, []int)
Deprecated: Use HostMatch.ProtoReflect.Descriptor instead.
func (x *HostMatch) GetExact() string
func (m *HostMatch) GetMatch() isHostMatch_Match
func (x *HostMatch) GetSuffix() *HostMatch_Suffix
func (*HostMatch) ProtoMessage()
func (x *HostMatch) ProtoReflect() protoreflect.Message
func (x *HostMatch) Reset()
func (x *HostMatch) String() string
type HostMatch_Exact struct { // Match an exact hostname, e.g. www.example.com. Exact string `protobuf:"bytes,1,opt,name=exact,proto3,oneof"` }
A match like `*.example.com` is encoded as [com, example].
type HostMatch_Suffix struct { ReverseLabels []string `protobuf:"bytes,1,rep,name=reverse_labels,json=reverseLabels,proto3" json:"reverse_labels,omitempty"` // contains filtered or unexported fields }
func (*HostMatch_Suffix) Descriptor() ([]byte, []int)
Deprecated: Use HostMatch_Suffix.ProtoReflect.Descriptor instead.
func (x *HostMatch_Suffix) GetReverseLabels() []string
func (*HostMatch_Suffix) ProtoMessage()
func (x *HostMatch_Suffix) ProtoReflect() protoreflect.Message
func (x *HostMatch_Suffix) Reset()
func (x *HostMatch_Suffix) String() string
type HostMatch_Suffix_ struct { // Match a hostname as a wildcard suffix, e.g. *.example.com. Suffix *HostMatch_Suffix `protobuf:"bytes,2,opt,name=suffix,proto3,oneof"` }
Configures a route to respond with a fixed response.
type HttpFailureInjector struct { // The status code to use in the HTTP response. Must be specified. Status uint32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"` // An error message to log and include in the `l5d-proxy-err` header. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // If specified, the rate of requests that should be failed. If not specified, // ALL requests are failed. Ratio *Ratio `protobuf:"bytes,3,opt,name=ratio,proto3" json:"ratio,omitempty"` // contains filtered or unexported fields }
func (*HttpFailureInjector) Descriptor() ([]byte, []int)
Deprecated: Use HttpFailureInjector.ProtoReflect.Descriptor instead.
func (x *HttpFailureInjector) GetMessage() string
func (x *HttpFailureInjector) GetRatio() *Ratio
func (x *HttpFailureInjector) GetStatus() uint32
func (*HttpFailureInjector) ProtoMessage()
func (x *HttpFailureInjector) ProtoReflect() protoreflect.Message
func (x *HttpFailureInjector) Reset()
func (x *HttpFailureInjector) String() string
Describes a set of matches, ALL of which must apply.
type HttpRouteMatch struct { // Matches requests by path. Path *PathMatch `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // A set of header value matches that must be satisified. This match is not // comprehensive, so requests may include headers that are not covered by this // match. Headers []*HeaderMatch `protobuf:"bytes,2,rep,name=headers,proto3" json:"headers,omitempty"` // A set of query parmaeter value matches that must be satisified. This match // is not comprehensive, so requests may include query parameters that are not // covered by this match. QueryParams []*QueryParamMatch `protobuf:"bytes,3,rep,name=query_params,json=queryParams,proto3" json:"query_params,omitempty"` // If specified, restricts the match to a single HTTP method. Method *http_types.HttpMethod `protobuf:"bytes,4,opt,name=method,proto3" json:"method,omitempty"` // contains filtered or unexported fields }
func (*HttpRouteMatch) Descriptor() ([]byte, []int)
Deprecated: Use HttpRouteMatch.ProtoReflect.Descriptor instead.
func (x *HttpRouteMatch) GetHeaders() []*HeaderMatch
func (x *HttpRouteMatch) GetMethod() *http_types.HttpMethod
func (x *HttpRouteMatch) GetPath() *PathMatch
func (x *HttpRouteMatch) GetQueryParams() []*QueryParamMatch
func (*HttpRouteMatch) ProtoMessage()
func (x *HttpRouteMatch) ProtoReflect() protoreflect.Message
func (x *HttpRouteMatch) Reset()
func (x *HttpRouteMatch) String() string
Describes how to match a path.
type PathMatch struct { // Types that are assignable to Kind: // // *PathMatch_Exact // *PathMatch_Prefix // *PathMatch_Regex Kind isPathMatch_Kind `protobuf_oneof:"kind"` // contains filtered or unexported fields }
func (*PathMatch) Descriptor() ([]byte, []int)
Deprecated: Use PathMatch.ProtoReflect.Descriptor instead.
func (x *PathMatch) GetExact() string
func (m *PathMatch) GetKind() isPathMatch_Kind
func (x *PathMatch) GetPrefix() string
func (x *PathMatch) GetRegex() string
func (*PathMatch) ProtoMessage()
func (x *PathMatch) ProtoReflect() protoreflect.Message
func (x *PathMatch) Reset()
func (x *PathMatch) String() string
type PathMatch_Exact struct { Exact string `protobuf:"bytes,1,opt,name=exact,proto3,oneof"` }
type PathMatch_Prefix struct { Prefix string `protobuf:"bytes,2,opt,name=prefix,proto3,oneof"` }
type PathMatch_Regex struct { Regex string `protobuf:"bytes,3,opt,name=regex,proto3,oneof"` }
Describes how a path value may be rewritten in a route.
type PathModifier struct { // Types that are assignable to Replace: // // *PathModifier_Full // *PathModifier_Prefix Replace isPathModifier_Replace `protobuf_oneof:"replace"` // contains filtered or unexported fields }
func (*PathModifier) Descriptor() ([]byte, []int)
Deprecated: Use PathModifier.ProtoReflect.Descriptor instead.
func (x *PathModifier) GetFull() string
func (x *PathModifier) GetPrefix() string
func (m *PathModifier) GetReplace() isPathModifier_Replace
func (*PathModifier) ProtoMessage()
func (x *PathModifier) ProtoReflect() protoreflect.Message
func (x *PathModifier) Reset()
func (x *PathModifier) String() string
type PathModifier_Full struct { // Indicates that the path should be replaced with the given value. Full string `protobuf:"bytes,1,opt,name=full,proto3,oneof"` }
type PathModifier_Prefix struct { // Indicates that the path prefix should be replaced with the given // value. When used, the route MUST match the request with PathMatch // prefix match. Server implementations SHOULD prevent the useof prefix // modifiers on routes that do use a PathMatch prefix match. Proxyies // MUST not process requests for routes where this condition is not // satisfied. Prefix string `protobuf:"bytes,2,opt,name=prefix,proto3,oneof"` }
Describes how to match a query parameter by name and value.
type QueryParamMatch struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Types that are assignable to Value: // // *QueryParamMatch_Exact // *QueryParamMatch_Regex Value isQueryParamMatch_Value `protobuf_oneof:"value"` // contains filtered or unexported fields }
func (*QueryParamMatch) Descriptor() ([]byte, []int)
Deprecated: Use QueryParamMatch.ProtoReflect.Descriptor instead.
func (x *QueryParamMatch) GetExact() string
func (x *QueryParamMatch) GetName() string
func (x *QueryParamMatch) GetRegex() string
func (m *QueryParamMatch) GetValue() isQueryParamMatch_Value
func (*QueryParamMatch) ProtoMessage()
func (x *QueryParamMatch) ProtoReflect() protoreflect.Message
func (x *QueryParamMatch) Reset()
func (x *QueryParamMatch) String() string
type QueryParamMatch_Exact struct { Exact string `protobuf:"bytes,2,opt,name=exact,proto3,oneof"` }
type QueryParamMatch_Regex struct { Regex string `protobuf:"bytes,3,opt,name=regex,proto3,oneof"` }
A ratio (i.e., of requests) to which an filter should be applied.
Represents fractional values on [0, 1].
type Ratio struct { Numerator uint32 `protobuf:"varint,1,opt,name=numerator,proto3" json:"numerator,omitempty"` // MUST not be zero. Denominator uint32 `protobuf:"varint,2,opt,name=denominator,proto3" json:"denominator,omitempty"` // contains filtered or unexported fields }
func (*Ratio) Descriptor() ([]byte, []int)
Deprecated: Use Ratio.ProtoReflect.Descriptor instead.
func (x *Ratio) GetDenominator() uint32
func (x *Ratio) GetNumerator() uint32
func (*Ratio) ProtoMessage()
func (x *Ratio) ProtoReflect() protoreflect.Message
func (x *Ratio) Reset()
func (x *Ratio) String() string
Configures a route to modify a request's headers.
Modifications are to be applied in the order they are described here: additions apply first, then sets, and then removals.
type RequestHeaderModifier struct { // A list of headers name-value pairs to set on requests, augmenting any // existing values for the header. Add *http_types.Headers `protobuf:"bytes,1,opt,name=add,proto3" json:"add,omitempty"` // A list of headers name-value pairs to set on requests, replacing any // existing values for the header. Set *http_types.Headers `protobuf:"bytes,2,opt,name=set,proto3" json:"set,omitempty"` // A list of headers names to be removed from requests. Remove []string `protobuf:"bytes,3,rep,name=remove,proto3" json:"remove,omitempty"` // contains filtered or unexported fields }
func (*RequestHeaderModifier) Descriptor() ([]byte, []int)
Deprecated: Use RequestHeaderModifier.ProtoReflect.Descriptor instead.
func (x *RequestHeaderModifier) GetAdd() *http_types.Headers
func (x *RequestHeaderModifier) GetRemove() []string
func (x *RequestHeaderModifier) GetSet() *http_types.Headers
func (*RequestHeaderModifier) ProtoMessage()
func (x *RequestHeaderModifier) ProtoReflect() protoreflect.Message
func (x *RequestHeaderModifier) Reset()
func (x *RequestHeaderModifier) String() string
Configures a route to respond with a redirect response. The `location` header is set with the given URL parameters.
type RequestRedirect struct { // The scheme value to be used in the `location` header. If not specified, // the original request's scheme is used. Scheme *http_types.Scheme `protobuf:"bytes,1,opt,name=scheme,proto3" json:"scheme,omitempty"` // The host value to be used in the `location` header. If not specified, the // original request's host is used. Host string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"` // If set, configures how the request's path should be modified for use in // the `location` header. If not specified, the original request's path is // used. Path *PathModifier `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"` // If set, specifies the port to use in the `location` header. Port uint32 `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"` // The status code to use in the HTTP response. If not specified, 301 is // used. Status uint32 `protobuf:"varint,5,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*RequestRedirect) Descriptor() ([]byte, []int)
Deprecated: Use RequestRedirect.ProtoReflect.Descriptor instead.
func (x *RequestRedirect) GetHost() string
func (x *RequestRedirect) GetPath() *PathModifier
func (x *RequestRedirect) GetPort() uint32
func (x *RequestRedirect) GetScheme() *http_types.Scheme
func (x *RequestRedirect) GetStatus() uint32
func (*RequestRedirect) ProtoMessage()
func (x *RequestRedirect) ProtoReflect() protoreflect.Message
func (x *RequestRedirect) Reset()
func (x *RequestRedirect) String() string
Configures a route to modify a response's headers.
Modifications are to be applied in the order they are described here: additions apply first, then sets, and then removals.
type ResponseHeaderModifier struct { // A list of headers name-value pairs to set on responses, augmenting any // existing values for the header. Add *http_types.Headers `protobuf:"bytes,1,opt,name=add,proto3" json:"add,omitempty"` // A list of headers name-value pairs to set on responses, replacing any // existing values for the header. Set *http_types.Headers `protobuf:"bytes,2,opt,name=set,proto3" json:"set,omitempty"` // A list of headers names to be removed from responses. Remove []string `protobuf:"bytes,3,rep,name=remove,proto3" json:"remove,omitempty"` // contains filtered or unexported fields }
func (*ResponseHeaderModifier) Descriptor() ([]byte, []int)
Deprecated: Use ResponseHeaderModifier.ProtoReflect.Descriptor instead.
func (x *ResponseHeaderModifier) GetAdd() *http_types.Headers
func (x *ResponseHeaderModifier) GetRemove() []string
func (x *ResponseHeaderModifier) GetSet() *http_types.Headers
func (*ResponseHeaderModifier) ProtoMessage()
func (x *ResponseHeaderModifier) ProtoReflect() protoreflect.Message
func (x *ResponseHeaderModifier) Reset()
func (x *ResponseHeaderModifier) String() string