package http_route
import (
duration "github.com/golang/protobuf/ptypes/duration"
http_types "github.com/linkerd/linkerd2-proxy-api/go/http_types"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
reflect "reflect"
sync "sync"
unsafe "unsafe"
)
const (
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
type HostMatch struct {
state protoimpl.MessageState `protogen:"open.v1"`
Match isHostMatch_Match `protobuf_oneof:"match"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *HostMatch) Reset() {
*x = HostMatch{}
mi := &file_http_route_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *HostMatch) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*HostMatch) ProtoMessage() {}
func (x *HostMatch) ProtoReflect() protoreflect.Message {
mi := &file_http_route_proto_msgTypes[0]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
func (*HostMatch) Descriptor() ([]byte, []int) {
return file_http_route_proto_rawDescGZIP(), []int{0}
}
func (x *HostMatch) GetMatch() isHostMatch_Match {
if x != nil {
return x.Match
}
return nil
}
func (x *HostMatch) GetExact() string {
if x != nil {
if x, ok := x.Match.(*HostMatch_Exact); ok {
return x.Exact
}
}
return ""
}
func (x *HostMatch) GetSuffix() *HostMatch_Suffix {
if x != nil {
if x, ok := x.Match.(*HostMatch_Suffix_); ok {
return x.Suffix
}
}
return nil
}
type isHostMatch_Match interface {
isHostMatch_Match()
}
type HostMatch_Exact struct {
Exact string `protobuf:"bytes,1,opt,name=exact,proto3,oneof"`
}
type HostMatch_Suffix_ struct {
Suffix *HostMatch_Suffix `protobuf:"bytes,2,opt,name=suffix,proto3,oneof"`
}
func (*HostMatch_Exact) isHostMatch_Match() {}
func (*HostMatch_Suffix_) isHostMatch_Match() {}
type HttpRouteMatch struct {
state protoimpl.MessageState `protogen:"open.v1"`
Path *PathMatch `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"`
Headers []*HeaderMatch `protobuf:"bytes,2,rep,name=headers,proto3" json:"headers,omitempty"`
QueryParams []*QueryParamMatch `protobuf:"bytes,3,rep,name=query_params,json=queryParams,proto3" json:"query_params,omitempty"`
Method *http_types.HttpMethod `protobuf:"bytes,4,opt,name=method,proto3" json:"method,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *HttpRouteMatch) Reset() {
*x = HttpRouteMatch{}
mi := &file_http_route_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *HttpRouteMatch) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*HttpRouteMatch) ProtoMessage() {}
func (x *HttpRouteMatch) ProtoReflect() protoreflect.Message {
mi := &file_http_route_proto_msgTypes[1]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
func (*HttpRouteMatch) Descriptor() ([]byte, []int) {
return file_http_route_proto_rawDescGZIP(), []int{1}
}
func (x *HttpRouteMatch) GetPath() *PathMatch {
if x != nil {
return x.Path
}
return nil
}
func (x *HttpRouteMatch) GetHeaders() []*HeaderMatch {
if x != nil {
return x.Headers
}
return nil
}
func (x *HttpRouteMatch) GetQueryParams() []*QueryParamMatch {
if x != nil {
return x.QueryParams
}
return nil
}
func (x *HttpRouteMatch) GetMethod() *http_types.HttpMethod {
if x != nil {
return x.Method
}
return nil
}
type PathMatch struct {
state protoimpl.MessageState `protogen:"open.v1"`
Kind isPathMatch_Kind `protobuf_oneof:"kind"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PathMatch) Reset() {
*x = PathMatch{}
mi := &file_http_route_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PathMatch) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PathMatch) ProtoMessage() {}
func (x *PathMatch) ProtoReflect() protoreflect.Message {
mi := &file_http_route_proto_msgTypes[2]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
func (*PathMatch) Descriptor() ([]byte, []int) {
return file_http_route_proto_rawDescGZIP(), []int{2}
}
func (x *PathMatch) GetKind() isPathMatch_Kind {
if x != nil {
return x.Kind
}
return nil
}
func (x *PathMatch) GetExact() string {
if x != nil {
if x, ok := x.Kind.(*PathMatch_Exact); ok {
return x.Exact
}
}
return ""
}
func (x *PathMatch) GetPrefix() string {
if x != nil {
if x, ok := x.Kind.(*PathMatch_Prefix); ok {
return x.Prefix
}
}
return ""
}
func (x *PathMatch) GetRegex() string {
if x != nil {
if x, ok := x.Kind.(*PathMatch_Regex); ok {
return x.Regex
}
}
return ""
}
type isPathMatch_Kind interface {
isPathMatch_Kind()
}
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"`
}
func (*PathMatch_Exact) isPathMatch_Kind() {}
func (*PathMatch_Prefix) isPathMatch_Kind() {}
func (*PathMatch_Regex) isPathMatch_Kind() {}
type HeaderMatch struct {
state protoimpl.MessageState `protogen:"open.v1"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Value isHeaderMatch_Value `protobuf_oneof:"value"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *HeaderMatch) Reset() {
*x = HeaderMatch{}
mi := &file_http_route_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *HeaderMatch) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*HeaderMatch) ProtoMessage() {}
func (x *HeaderMatch) ProtoReflect() protoreflect.Message {
mi := &file_http_route_proto_msgTypes[3]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
func (*HeaderMatch) Descriptor() ([]byte, []int) {
return file_http_route_proto_rawDescGZIP(), []int{3}
}
func (x *HeaderMatch) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *HeaderMatch) GetValue() isHeaderMatch_Value {
if x != nil {
return x.Value
}
return nil
}
func (x *HeaderMatch) GetExact() []byte {
if x != nil {
if x, ok := x.Value.(*HeaderMatch_Exact); ok {
return x.Exact
}
}
return nil
}
func (x *HeaderMatch) GetRegex() string {
if x != nil {
if x, ok := x.Value.(*HeaderMatch_Regex); ok {
return x.Regex
}
}
return ""
}
type isHeaderMatch_Value interface {
isHeaderMatch_Value()
}
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"`
}
func (*HeaderMatch_Exact) isHeaderMatch_Value() {}
func (*HeaderMatch_Regex) isHeaderMatch_Value() {}
type QueryParamMatch struct {
state protoimpl.MessageState `protogen:"open.v1"`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Value isQueryParamMatch_Value `protobuf_oneof:"value"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *QueryParamMatch) Reset() {
*x = QueryParamMatch{}
mi := &file_http_route_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *QueryParamMatch) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*QueryParamMatch) ProtoMessage() {}
func (x *QueryParamMatch) ProtoReflect() protoreflect.Message {
mi := &file_http_route_proto_msgTypes[4]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
func (*QueryParamMatch) Descriptor() ([]byte, []int) {
return file_http_route_proto_rawDescGZIP(), []int{4}
}
func (x *QueryParamMatch) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *QueryParamMatch) GetValue() isQueryParamMatch_Value {
if x != nil {
return x.Value
}
return nil
}
func (x *QueryParamMatch) GetExact() string {
if x != nil {
if x, ok := x.Value.(*QueryParamMatch_Exact); ok {
return x.Exact
}
}
return ""
}
func (x *QueryParamMatch) GetRegex() string {
if x != nil {
if x, ok := x.Value.(*QueryParamMatch_Regex); ok {
return x.Regex
}
}
return ""
}
type isQueryParamMatch_Value interface {
isQueryParamMatch_Value()
}
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"`
}
func (*QueryParamMatch_Exact) isQueryParamMatch_Value() {}
func (*QueryParamMatch_Regex) isQueryParamMatch_Value() {}
type RequestHeaderModifier struct {
state protoimpl.MessageState `protogen:"open.v1"`
Add *http_types.Headers `protobuf:"bytes,1,opt,name=add,proto3" json:"add,omitempty"`
Set *http_types.Headers `protobuf:"bytes,2,opt,name=set,proto3" json:"set,omitempty"`
Remove []string `protobuf:"bytes,3,rep,name=remove,proto3" json:"remove,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *RequestHeaderModifier) Reset() {
*x = RequestHeaderModifier{}
mi := &file_http_route_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *RequestHeaderModifier) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RequestHeaderModifier) ProtoMessage() {}
func (x *RequestHeaderModifier) ProtoReflect() protoreflect.Message {
mi := &file_http_route_proto_msgTypes[5]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
func (*RequestHeaderModifier) Descriptor() ([]byte, []int) {
return file_http_route_proto_rawDescGZIP(), []int{5}
}
func (x *RequestHeaderModifier) GetAdd() *http_types.Headers {
if x != nil {
return x.Add
}
return nil
}
func (x *RequestHeaderModifier) GetSet() *http_types.Headers {
if x != nil {
return x.Set
}
return nil
}
func (x *RequestHeaderModifier) GetRemove() []string {
if x != nil {
return x.Remove
}
return nil
}
type ResponseHeaderModifier struct {
state protoimpl.MessageState `protogen:"open.v1"`
Add *http_types.Headers `protobuf:"bytes,1,opt,name=add,proto3" json:"add,omitempty"`
Set *http_types.Headers `protobuf:"bytes,2,opt,name=set,proto3" json:"set,omitempty"`
Remove []string `protobuf:"bytes,3,rep,name=remove,proto3" json:"remove,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *ResponseHeaderModifier) Reset() {
*x = ResponseHeaderModifier{}
mi := &file_http_route_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *ResponseHeaderModifier) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ResponseHeaderModifier) ProtoMessage() {}
func (x *ResponseHeaderModifier) ProtoReflect() protoreflect.Message {
mi := &file_http_route_proto_msgTypes[6]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
func (*ResponseHeaderModifier) Descriptor() ([]byte, []int) {
return file_http_route_proto_rawDescGZIP(), []int{6}
}
func (x *ResponseHeaderModifier) GetAdd() *http_types.Headers {
if x != nil {
return x.Add
}
return nil
}
func (x *ResponseHeaderModifier) GetSet() *http_types.Headers {
if x != nil {
return x.Set
}
return nil
}
func (x *ResponseHeaderModifier) GetRemove() []string {
if x != nil {
return x.Remove
}
return nil
}
type RequestRedirect struct {
state protoimpl.MessageState `protogen:"open.v1"`
Scheme *http_types.Scheme `protobuf:"bytes,1,opt,name=scheme,proto3" json:"scheme,omitempty"`
Host string `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"`
Path *PathModifier `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
Port uint32 `protobuf:"varint,4,opt,name=port,proto3" json:"port,omitempty"`
Status uint32 `protobuf:"varint,5,opt,name=status,proto3" json:"status,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *RequestRedirect) Reset() {
*x = RequestRedirect{}
mi := &file_http_route_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *RequestRedirect) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*RequestRedirect) ProtoMessage() {}
func (x *RequestRedirect) ProtoReflect() protoreflect.Message {
mi := &file_http_route_proto_msgTypes[7]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
func (*RequestRedirect) Descriptor() ([]byte, []int) {
return file_http_route_proto_rawDescGZIP(), []int{7}
}
func (x *RequestRedirect) GetScheme() *http_types.Scheme {
if x != nil {
return x.Scheme
}
return nil
}
func (x *RequestRedirect) GetHost() string {
if x != nil {
return x.Host
}
return ""
}
func (x *RequestRedirect) GetPath() *PathModifier {
if x != nil {
return x.Path
}
return nil
}
func (x *RequestRedirect) GetPort() uint32 {
if x != nil {
return x.Port
}
return 0
}
func (x *RequestRedirect) GetStatus() uint32 {
if x != nil {
return x.Status
}
return 0
}
type PathModifier struct {
state protoimpl.MessageState `protogen:"open.v1"`
Replace isPathModifier_Replace `protobuf_oneof:"replace"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *PathModifier) Reset() {
*x = PathModifier{}
mi := &file_http_route_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *PathModifier) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PathModifier) ProtoMessage() {}
func (x *PathModifier) ProtoReflect() protoreflect.Message {
mi := &file_http_route_proto_msgTypes[8]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
func (*PathModifier) Descriptor() ([]byte, []int) {
return file_http_route_proto_rawDescGZIP(), []int{8}
}
func (x *PathModifier) GetReplace() isPathModifier_Replace {
if x != nil {
return x.Replace
}
return nil
}
func (x *PathModifier) GetFull() string {
if x != nil {
if x, ok := x.Replace.(*PathModifier_Full); ok {
return x.Full
}
}
return ""
}
func (x *PathModifier) GetPrefix() string {
if x != nil {
if x, ok := x.Replace.(*PathModifier_Prefix); ok {
return x.Prefix
}
}
return ""
}
type isPathModifier_Replace interface {
isPathModifier_Replace()
}
type PathModifier_Full struct {
Full string `protobuf:"bytes,1,opt,name=full,proto3,oneof"`
}
type PathModifier_Prefix struct {
Prefix string `protobuf:"bytes,2,opt,name=prefix,proto3,oneof"`
}
func (*PathModifier_Full) isPathModifier_Replace() {}
func (*PathModifier_Prefix) isPathModifier_Replace() {}
type HttpFailureInjector struct {
state protoimpl.MessageState `protogen:"open.v1"`
Status uint32 `protobuf:"varint,1,opt,name=status,proto3" json:"status,omitempty"`
Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
Ratio *Ratio `protobuf:"bytes,3,opt,name=ratio,proto3" json:"ratio,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *HttpFailureInjector) Reset() {
*x = HttpFailureInjector{}
mi := &file_http_route_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *HttpFailureInjector) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*HttpFailureInjector) ProtoMessage() {}
func (x *HttpFailureInjector) ProtoReflect() protoreflect.Message {
mi := &file_http_route_proto_msgTypes[9]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
func (*HttpFailureInjector) Descriptor() ([]byte, []int) {
return file_http_route_proto_rawDescGZIP(), []int{9}
}
func (x *HttpFailureInjector) GetStatus() uint32 {
if x != nil {
return x.Status
}
return 0
}
func (x *HttpFailureInjector) GetMessage() string {
if x != nil {
return x.Message
}
return ""
}
func (x *HttpFailureInjector) GetRatio() *Ratio {
if x != nil {
return x.Ratio
}
return nil
}
type Ratio struct {
state protoimpl.MessageState `protogen:"open.v1"`
Numerator uint32 `protobuf:"varint,1,opt,name=numerator,proto3" json:"numerator,omitempty"`
Denominator uint32 `protobuf:"varint,2,opt,name=denominator,proto3" json:"denominator,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Ratio) Reset() {
*x = Ratio{}
mi := &file_http_route_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Ratio) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Ratio) ProtoMessage() {}
func (x *Ratio) ProtoReflect() protoreflect.Message {
mi := &file_http_route_proto_msgTypes[10]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
func (*Ratio) Descriptor() ([]byte, []int) {
return file_http_route_proto_rawDescGZIP(), []int{10}
}
func (x *Ratio) GetNumerator() uint32 {
if x != nil {
return x.Numerator
}
return 0
}
func (x *Ratio) GetDenominator() uint32 {
if x != nil {
return x.Denominator
}
return 0
}
type Timeouts struct {
state protoimpl.MessageState `protogen:"open.v1"`
Response *duration.Duration `protobuf:"bytes,1,opt,name=response,proto3" json:"response,omitempty"`
Request *duration.Duration `protobuf:"bytes,2,opt,name=request,proto3" json:"request,omitempty"`
Idle *duration.Duration `protobuf:"bytes,3,opt,name=idle,proto3" json:"idle,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *Timeouts) Reset() {
*x = Timeouts{}
mi := &file_http_route_proto_msgTypes[11]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *Timeouts) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Timeouts) ProtoMessage() {}
func (x *Timeouts) ProtoReflect() protoreflect.Message {
mi := &file_http_route_proto_msgTypes[11]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
func (*Timeouts) Descriptor() ([]byte, []int) {
return file_http_route_proto_rawDescGZIP(), []int{11}
}
func (x *Timeouts) GetResponse() *duration.Duration {
if x != nil {
return x.Response
}
return nil
}
func (x *Timeouts) GetRequest() *duration.Duration {
if x != nil {
return x.Request
}
return nil
}
func (x *Timeouts) GetIdle() *duration.Duration {
if x != nil {
return x.Idle
}
return nil
}
type HostMatch_Suffix struct {
state protoimpl.MessageState `protogen:"open.v1"`
ReverseLabels []string `protobuf:"bytes,1,rep,name=reverse_labels,json=reverseLabels,proto3" json:"reverse_labels,omitempty"`
unknownFields protoimpl.UnknownFields
sizeCache protoimpl.SizeCache
}
func (x *HostMatch_Suffix) Reset() {
*x = HostMatch_Suffix{}
mi := &file_http_route_proto_msgTypes[12]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
func (x *HostMatch_Suffix) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*HostMatch_Suffix) ProtoMessage() {}
func (x *HostMatch_Suffix) ProtoReflect() protoreflect.Message {
mi := &file_http_route_proto_msgTypes[12]
if x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
func (*HostMatch_Suffix) Descriptor() ([]byte, []int) {
return file_http_route_proto_rawDescGZIP(), []int{0, 0}
}
func (x *HostMatch_Suffix) GetReverseLabels() []string {
if x != nil {
return x.ReverseLabels
}
return nil
}
var File_http_route_proto protoreflect.FileDescriptor
const file_http_route_proto_rawDesc = "" +
"\n" +
"\x10http_route.proto\x12\x1bio.linkerd.proxy.http_route\x1a\x10http_types.proto\x1a\x1egoogle/protobuf/duration.proto\"\xa6\x01\n" +
"\tHostMatch\x12\x16\n" +
"\x05exact\x18\x01 \x01(\tH\x00R\x05exact\x12G\n" +
"\x06suffix\x18\x02 \x01(\v2-.io.linkerd.proxy.http_route.HostMatch.SuffixH\x00R\x06suffix\x1a/\n" +
"\x06Suffix\x12%\n" +
"\x0ereverse_labels\x18\x01 \x03(\tR\rreverseLabelsB\a\n" +
"\x05match\"\xa2\x02\n" +
"\x0eHttpRouteMatch\x12:\n" +
"\x04path\x18\x01 \x01(\v2&.io.linkerd.proxy.http_route.PathMatchR\x04path\x12B\n" +
"\aheaders\x18\x02 \x03(\v2(.io.linkerd.proxy.http_route.HeaderMatchR\aheaders\x12O\n" +
"\fquery_params\x18\x03 \x03(\v2,.io.linkerd.proxy.http_route.QueryParamMatchR\vqueryParams\x12?\n" +
"\x06method\x18\x04 \x01(\v2'.io.linkerd.proxy.http_types.HttpMethodR\x06method\"]\n" +
"\tPathMatch\x12\x16\n" +
"\x05exact\x18\x01 \x01(\tH\x00R\x05exact\x12\x18\n" +
"\x06prefix\x18\x02 \x01(\tH\x00R\x06prefix\x12\x16\n" +
"\x05regex\x18\x03 \x01(\tH\x00R\x05regexB\x06\n" +
"\x04kind\"Z\n" +
"\vHeaderMatch\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12\x16\n" +
"\x05exact\x18\x02 \x01(\fH\x00R\x05exact\x12\x16\n" +
"\x05regex\x18\x03 \x01(\tH\x00R\x05regexB\a\n" +
"\x05value\"^\n" +
"\x0fQueryParamMatch\x12\x12\n" +
"\x04name\x18\x01 \x01(\tR\x04name\x12\x16\n" +
"\x05exact\x18\x02 \x01(\tH\x00R\x05exact\x12\x16\n" +
"\x05regex\x18\x03 \x01(\tH\x00R\x05regexB\a\n" +
"\x05value\"\x9f\x01\n" +
"\x15RequestHeaderModifier\x126\n" +
"\x03add\x18\x01 \x01(\v2$.io.linkerd.proxy.http_types.HeadersR\x03add\x126\n" +
"\x03set\x18\x02 \x01(\v2$.io.linkerd.proxy.http_types.HeadersR\x03set\x12\x16\n" +
"\x06remove\x18\x03 \x03(\tR\x06remove\"\xa0\x01\n" +
"\x16ResponseHeaderModifier\x126\n" +
"\x03add\x18\x01 \x01(\v2$.io.linkerd.proxy.http_types.HeadersR\x03add\x126\n" +
"\x03set\x18\x02 \x01(\v2$.io.linkerd.proxy.http_types.HeadersR\x03set\x12\x16\n" +
"\x06remove\x18\x03 \x03(\tR\x06remove\"\xcd\x01\n" +
"\x0fRequestRedirect\x12;\n" +
"\x06scheme\x18\x01 \x01(\v2#.io.linkerd.proxy.http_types.SchemeR\x06scheme\x12\x12\n" +
"\x04host\x18\x02 \x01(\tR\x04host\x12=\n" +
"\x04path\x18\x03 \x01(\v2).io.linkerd.proxy.http_route.PathModifierR\x04path\x12\x12\n" +
"\x04port\x18\x04 \x01(\rR\x04port\x12\x16\n" +
"\x06status\x18\x05 \x01(\rR\x06status\"I\n" +
"\fPathModifier\x12\x14\n" +
"\x04full\x18\x01 \x01(\tH\x00R\x04full\x12\x18\n" +
"\x06prefix\x18\x02 \x01(\tH\x00R\x06prefixB\t\n" +
"\areplace\"\x81\x01\n" +
"\x13HttpFailureInjector\x12\x16\n" +
"\x06status\x18\x01 \x01(\rR\x06status\x12\x18\n" +
"\amessage\x18\x02 \x01(\tR\amessage\x128\n" +
"\x05ratio\x18\x03 \x01(\v2\".io.linkerd.proxy.http_route.RatioR\x05ratio\"G\n" +
"\x05Ratio\x12\x1c\n" +
"\tnumerator\x18\x01 \x01(\rR\tnumerator\x12 \n" +
"\vdenominator\x18\x02 \x01(\rR\vdenominator\"\xa5\x01\n" +
"\bTimeouts\x125\n" +
"\bresponse\x18\x01 \x01(\v2\x19.google.protobuf.DurationR\bresponse\x123\n" +
"\arequest\x18\x02 \x01(\v2\x19.google.protobuf.DurationR\arequest\x12-\n" +
"\x04idle\x18\x03 \x01(\v2\x19.google.protobuf.DurationR\x04idleB5Z3github.com/linkerd/linkerd2-proxy-api/go/http_routeb\x06proto3"
var (
file_http_route_proto_rawDescOnce sync.Once
file_http_route_proto_rawDescData []byte
)
func file_http_route_proto_rawDescGZIP() []byte {
file_http_route_proto_rawDescOnce.Do(func() {
file_http_route_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_http_route_proto_rawDesc), len(file_http_route_proto_rawDesc)))
})
return file_http_route_proto_rawDescData
}
var file_http_route_proto_msgTypes = make([]protoimpl.MessageInfo, 13)
var file_http_route_proto_goTypes = []any{
(*HostMatch)(nil), (*HttpRouteMatch)(nil), (*PathMatch)(nil), (*HeaderMatch)(nil), (*QueryParamMatch)(nil), (*RequestHeaderModifier)(nil), (*ResponseHeaderModifier)(nil), (*RequestRedirect)(nil), (*PathModifier)(nil), (*HttpFailureInjector)(nil), (*Ratio)(nil), (*Timeouts)(nil), (*HostMatch_Suffix)(nil), (*http_types.HttpMethod)(nil), (*http_types.Headers)(nil), (*http_types.Scheme)(nil), (*duration.Duration)(nil), }
var file_http_route_proto_depIdxs = []int32{
12, 2, 3, 4, 13, 14, 14, 14, 14, 15, 8, 10, 16, 16, 16, 15, 15, 15, 15, 0, }
func init() { file_http_route_proto_init() }
func file_http_route_proto_init() {
if File_http_route_proto != nil {
return
}
file_http_route_proto_msgTypes[0].OneofWrappers = []any{
(*HostMatch_Exact)(nil),
(*HostMatch_Suffix_)(nil),
}
file_http_route_proto_msgTypes[2].OneofWrappers = []any{
(*PathMatch_Exact)(nil),
(*PathMatch_Prefix)(nil),
(*PathMatch_Regex)(nil),
}
file_http_route_proto_msgTypes[3].OneofWrappers = []any{
(*HeaderMatch_Exact)(nil),
(*HeaderMatch_Regex)(nil),
}
file_http_route_proto_msgTypes[4].OneofWrappers = []any{
(*QueryParamMatch_Exact)(nil),
(*QueryParamMatch_Regex)(nil),
}
file_http_route_proto_msgTypes[8].OneofWrappers = []any{
(*PathModifier_Full)(nil),
(*PathModifier_Prefix)(nil),
}
type x struct{}
out := protoimpl.TypeBuilder{
File: protoimpl.DescBuilder{
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
RawDescriptor: unsafe.Slice(unsafe.StringData(file_http_route_proto_rawDesc), len(file_http_route_proto_rawDesc)),
NumEnums: 0,
NumMessages: 13,
NumExtensions: 0,
NumServices: 0,
},
GoTypes: file_http_route_proto_goTypes,
DependencyIndexes: file_http_route_proto_depIdxs,
MessageInfos: file_http_route_proto_msgTypes,
}.Build()
File_http_route_proto = out.File
file_http_route_proto_goTypes = nil
file_http_route_proto_depIdxs = nil
}