v1alpha1

package
v1.0.0-beta2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 22, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	StatusCodeMatcher_Comparator_name = map[int32]string{
		0: "EQ",
		1: "GE",
		2: "LE",
	}
	StatusCodeMatcher_Comparator_value = map[string]int32{
		"EQ": 0,
		"GE": 1,
		"LE": 2,
	}
)

Enum value maps for StatusCodeMatcher_Comparator.

View Source
var File_github_com_solo_io_gloo_mesh_api_common_v1alpha1_request_matchers_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type HeaderMatcher

type HeaderMatcher struct {

	// Specifies the name of the header in the request.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	//
	//Specifies the value of the header. If the value is absent a request that
	//has the name header will match, regardless of the header’s value.
	Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	// Specifies whether the header value should be treated as regex or not.
	Regex bool `protobuf:"varint,3,opt,name=regex,proto3" json:"regex,omitempty"`
	//
	//If set to true, the result of the match will be inverted. Defaults to false.
	//
	//Examples:
	// name=foo, invert_match=true: matches if no header named `foo` is present
	// name=foo, value=bar, invert_match=true: matches if no header named `foo` with value `bar` is present
	// name=foo, value=“\d{3}“, regex=true, invert_match=true: matches if no header named `foo` with a value consisting of three integers is present
	InvertMatch bool `protobuf:"varint,4,opt,name=invert_match,json=invertMatch,proto3" json:"invert_match,omitempty"`
	// contains filtered or unexported fields
}

Describes a matcher against HTTP request headers.

func (*HeaderMatcher) Descriptor deprecated

func (*HeaderMatcher) Descriptor() ([]byte, []int)

Deprecated: Use HeaderMatcher.ProtoReflect.Descriptor instead.

func (*HeaderMatcher) GetInvertMatch

func (x *HeaderMatcher) GetInvertMatch() bool

func (*HeaderMatcher) GetName

func (x *HeaderMatcher) GetName() string

func (*HeaderMatcher) GetRegex

func (x *HeaderMatcher) GetRegex() bool

func (*HeaderMatcher) GetValue

func (x *HeaderMatcher) GetValue() string

func (*HeaderMatcher) ProtoMessage

func (*HeaderMatcher) ProtoMessage()

func (*HeaderMatcher) ProtoReflect

func (x *HeaderMatcher) ProtoReflect() protoreflect.Message

func (*HeaderMatcher) Reset

func (x *HeaderMatcher) Reset()

func (*HeaderMatcher) String

func (x *HeaderMatcher) String() string

type StatusCodeMatcher

type StatusCodeMatcher struct {

	// the status code value to match against
	Value uint32 `protobuf:"varint,1,opt,name=value,proto3" json:"value,omitempty"`
	// the comparison type used for matching
	Comparator StatusCodeMatcher_Comparator `` /* 133-byte string literal not displayed */
	// contains filtered or unexported fields
}

Describes a matcher against HTTP response status codes.

func (*StatusCodeMatcher) Descriptor deprecated

func (*StatusCodeMatcher) Descriptor() ([]byte, []int)

Deprecated: Use StatusCodeMatcher.ProtoReflect.Descriptor instead.

func (*StatusCodeMatcher) GetComparator

func (*StatusCodeMatcher) GetValue

func (x *StatusCodeMatcher) GetValue() uint32

func (*StatusCodeMatcher) ProtoMessage

func (*StatusCodeMatcher) ProtoMessage()

func (*StatusCodeMatcher) ProtoReflect

func (x *StatusCodeMatcher) ProtoReflect() protoreflect.Message

func (*StatusCodeMatcher) Reset

func (x *StatusCodeMatcher) Reset()

func (*StatusCodeMatcher) String

func (x *StatusCodeMatcher) String() string

type StatusCodeMatcher_Comparator

type StatusCodeMatcher_Comparator int32
const (
	// default, strict equality
	StatusCodeMatcher_EQ StatusCodeMatcher_Comparator = 0
	// greater than or equal to
	StatusCodeMatcher_GE StatusCodeMatcher_Comparator = 1
	// less than or equal to
	StatusCodeMatcher_LE StatusCodeMatcher_Comparator = 2
)

func (StatusCodeMatcher_Comparator) Descriptor

func (StatusCodeMatcher_Comparator) Enum

func (StatusCodeMatcher_Comparator) EnumDescriptor deprecated

func (StatusCodeMatcher_Comparator) EnumDescriptor() ([]byte, []int)

Deprecated: Use StatusCodeMatcher_Comparator.Descriptor instead.

func (StatusCodeMatcher_Comparator) Number

func (StatusCodeMatcher_Comparator) String

func (StatusCodeMatcher_Comparator) Type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL