filters

package
v1.16.10 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	FilterStage_Stage_name = map[int32]string{
		0: "FaultStage",
		1: "CorsStage",
		2: "WafStage",
		3: "AuthNStage",
		4: "AuthZStage",
		5: "RateLimitStage",
		6: "AcceptedStage",
		7: "OutAuthStage",
		8: "RouteStage",
	}
	FilterStage_Stage_value = map[string]int32{
		"FaultStage":     0,
		"CorsStage":      1,
		"WafStage":       2,
		"AuthNStage":     3,
		"AuthZStage":     4,
		"RateLimitStage": 5,
		"AcceptedStage":  6,
		"OutAuthStage":   7,
		"RouteStage":     8,
	}
)

Enum value maps for FilterStage_Stage.

View Source
var (
	FilterStage_Predicate_name = map[int32]string{
		0: "During",
		1: "Before",
		2: "After",
	}
	FilterStage_Predicate_value = map[string]int32{
		"During": 0,
		"Before": 1,
		"After":  2,
	}
)

Enum value maps for FilterStage_Predicate.

View Source
var File_github_com_solo_io_gloo_projects_gloo_api_v1_filters_stages_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type FilterStage

type FilterStage struct {

	// Stage of the filter chain in which the selected filter should be added.
	Stage FilterStage_Stage `protobuf:"varint,1,opt,name=stage,proto3,enum=filters.gloo.solo.io.FilterStage_Stage" json:"stage,omitempty"`
	// How this filter should be placed relative to the stage.
	Predicate FilterStage_Predicate `protobuf:"varint,2,opt,name=predicate,proto3,enum=filters.gloo.solo.io.FilterStage_Predicate" json:"predicate,omitempty"`
	// contains filtered or unexported fields
}

FilterStage allows configuration of where in a filter chain a given HTTP filter is inserted, relative to one of the pre-defined stages.

func (*FilterStage) Clone

func (m *FilterStage) Clone() proto.Message

Clone function

func (*FilterStage) Descriptor deprecated

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

Deprecated: Use FilterStage.ProtoReflect.Descriptor instead.

func (*FilterStage) Equal

func (m *FilterStage) Equal(that interface{}) bool

Equal function

func (*FilterStage) GetPredicate

func (x *FilterStage) GetPredicate() FilterStage_Predicate

func (*FilterStage) GetStage

func (x *FilterStage) GetStage() FilterStage_Stage

func (*FilterStage) Hash

func (m *FilterStage) Hash(hasher hash.Hash64) (uint64, error)

Hash function

func (*FilterStage) ProtoMessage

func (*FilterStage) ProtoMessage()

func (*FilterStage) ProtoReflect

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

func (*FilterStage) Reset

func (x *FilterStage) Reset()

func (*FilterStage) String

func (x *FilterStage) String() string

type FilterStage_Predicate

type FilterStage_Predicate int32

Desired placement of the HTTP filter relative to the stage. The default is `During`.

const (
	FilterStage_During FilterStage_Predicate = 0
	FilterStage_Before FilterStage_Predicate = 1
	FilterStage_After  FilterStage_Predicate = 2
)

func (FilterStage_Predicate) Descriptor

func (FilterStage_Predicate) Enum

func (FilterStage_Predicate) EnumDescriptor deprecated

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

Deprecated: Use FilterStage_Predicate.Descriptor instead.

func (FilterStage_Predicate) Number

func (FilterStage_Predicate) String

func (x FilterStage_Predicate) String() string

func (FilterStage_Predicate) Type

type FilterStage_Stage

type FilterStage_Stage int32

List of filter stages which can be selected for a HTTP filter.

const (
	FilterStage_FaultStage     FilterStage_Stage = 0
	FilterStage_CorsStage      FilterStage_Stage = 1
	FilterStage_WafStage       FilterStage_Stage = 2
	FilterStage_AuthNStage     FilterStage_Stage = 3
	FilterStage_AuthZStage     FilterStage_Stage = 4
	FilterStage_RateLimitStage FilterStage_Stage = 5
	FilterStage_AcceptedStage  FilterStage_Stage = 6
	FilterStage_OutAuthStage   FilterStage_Stage = 7
	FilterStage_RouteStage     FilterStage_Stage = 8
)

func (FilterStage_Stage) Descriptor

func (FilterStage_Stage) Enum

func (FilterStage_Stage) EnumDescriptor deprecated

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

Deprecated: Use FilterStage_Stage.Descriptor instead.

func (FilterStage_Stage) Number

func (FilterStage_Stage) String

func (x FilterStage_Stage) String() string

func (FilterStage_Stage) Type

Jump to

Keyboard shortcuts

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