Documentation ¶
Index ¶
- Variables
- type FilterStage
- func (*FilterStage) Descriptor() ([]byte, []int)deprecated
- func (m *FilterStage) Equal(that interface{}) bool
- func (x *FilterStage) GetPredicate() FilterStage_Predicate
- func (x *FilterStage) GetStage() FilterStage_Stage
- func (m *FilterStage) Hash(hasher hash.Hash64) (uint64, error)
- func (*FilterStage) ProtoMessage()
- func (x *FilterStage) ProtoReflect() protoreflect.Message
- func (x *FilterStage) Reset()
- func (x *FilterStage) String() string
- type FilterStage_Predicate
- func (FilterStage_Predicate) Descriptor() protoreflect.EnumDescriptor
- func (x FilterStage_Predicate) Enum() *FilterStage_Predicate
- func (FilterStage_Predicate) EnumDescriptor() ([]byte, []int)deprecated
- func (x FilterStage_Predicate) Number() protoreflect.EnumNumber
- func (x FilterStage_Predicate) String() string
- func (FilterStage_Predicate) Type() protoreflect.EnumType
- type FilterStage_Stage
- func (FilterStage_Stage) Descriptor() protoreflect.EnumDescriptor
- func (x FilterStage_Stage) Enum() *FilterStage_Stage
- func (FilterStage_Stage) EnumDescriptor() ([]byte, []int)deprecated
- func (x FilterStage_Stage) Number() protoreflect.EnumNumber
- func (x FilterStage_Stage) String() string
- func (FilterStage_Stage) Type() protoreflect.EnumType
- type PluginSource
- func (*PluginSource) Descriptor() ([]byte, []int)deprecated
- func (m *PluginSource) Equal(that interface{}) bool
- func (x *PluginSource) GetFilters() []*WasmFilter
- func (m *PluginSource) Hash(hasher hash.Hash64) (uint64, error)
- func (*PluginSource) ProtoMessage()
- func (x *PluginSource) ProtoReflect() protoreflect.Message
- func (x *PluginSource) Reset()
- func (x *PluginSource) String() string
- type WasmFilter
- func (*WasmFilter) Descriptor() ([]byte, []int)deprecated
- func (m *WasmFilter) Equal(that interface{}) bool
- func (x *WasmFilter) GetConfig() *any.Any
- func (x *WasmFilter) GetFilterStage() *FilterStage
- func (x *WasmFilter) GetImage() string
- func (x *WasmFilter) GetName() string
- func (x *WasmFilter) GetRootId() string
- func (x *WasmFilter) GetVmType() WasmFilter_VmType
- func (m *WasmFilter) Hash(hasher hash.Hash64) (uint64, error)
- func (*WasmFilter) ProtoMessage()
- func (x *WasmFilter) ProtoReflect() protoreflect.Message
- func (x *WasmFilter) Reset()
- func (x *WasmFilter) String() string
- type WasmFilter_VmType
- func (WasmFilter_VmType) Descriptor() protoreflect.EnumDescriptor
- func (x WasmFilter_VmType) Enum() *WasmFilter_VmType
- func (WasmFilter_VmType) EnumDescriptor() ([]byte, []int)deprecated
- func (x WasmFilter_VmType) Number() protoreflect.EnumNumber
- func (x WasmFilter_VmType) String() string
- func (WasmFilter_VmType) Type() protoreflect.EnumType
Constants ¶
This section is empty.
Variables ¶
var ( WasmFilter_VmType_name = map[int32]string{ 0: "V8", 1: "WAVM", } WasmFilter_VmType_value = map[string]int32{ "V8": 0, "WAVM": 1, } )
Enum value maps for WasmFilter_VmType.
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.
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.
var File_github_com_solo_io_gloo_projects_gloo_api_v1_options_wasm_wasm_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type FilterStage ¶ added in v1.2.13
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=wasm.options.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=wasm.options.gloo.solo.io.FilterStage_Predicate" json:"predicate,omitempty"` // contains filtered or unexported fields }
func (*FilterStage) Descriptor
deprecated
added in
v1.2.13
func (*FilterStage) Descriptor() ([]byte, []int)
Deprecated: Use FilterStage.ProtoReflect.Descriptor instead.
func (*FilterStage) Equal ¶ added in v1.2.13
func (m *FilterStage) Equal(that interface{}) bool
Equal function
func (*FilterStage) GetPredicate ¶ added in v1.2.13
func (x *FilterStage) GetPredicate() FilterStage_Predicate
func (*FilterStage) GetStage ¶ added in v1.2.13
func (x *FilterStage) GetStage() FilterStage_Stage
func (*FilterStage) Hash ¶ added in v1.2.13
func (m *FilterStage) Hash(hasher hash.Hash64) (uint64, error)
Hash function
func (*FilterStage) ProtoMessage ¶ added in v1.2.13
func (*FilterStage) ProtoMessage()
func (*FilterStage) ProtoReflect ¶ added in v1.6.0
func (x *FilterStage) ProtoReflect() protoreflect.Message
func (*FilterStage) Reset ¶ added in v1.2.13
func (x *FilterStage) Reset()
func (*FilterStage) String ¶ added in v1.2.13
func (x *FilterStage) String() string
type FilterStage_Predicate ¶ added in v1.2.13
type FilterStage_Predicate int32
During is the 0th member so that it is the default, even though the reading order can be a little confusing
const ( FilterStage_During FilterStage_Predicate = 0 FilterStage_Before FilterStage_Predicate = 1 FilterStage_After FilterStage_Predicate = 2 )
func (FilterStage_Predicate) Descriptor ¶ added in v1.6.0
func (FilterStage_Predicate) Descriptor() protoreflect.EnumDescriptor
func (FilterStage_Predicate) Enum ¶ added in v1.6.0
func (x FilterStage_Predicate) Enum() *FilterStage_Predicate
func (FilterStage_Predicate) EnumDescriptor
deprecated
added in
v1.2.13
func (FilterStage_Predicate) EnumDescriptor() ([]byte, []int)
Deprecated: Use FilterStage_Predicate.Descriptor instead.
func (FilterStage_Predicate) Number ¶ added in v1.6.0
func (x FilterStage_Predicate) Number() protoreflect.EnumNumber
func (FilterStage_Predicate) String ¶ added in v1.2.13
func (x FilterStage_Predicate) String() string
func (FilterStage_Predicate) Type ¶ added in v1.6.0
func (FilterStage_Predicate) Type() protoreflect.EnumType
type FilterStage_Stage ¶ added in v1.2.13
type FilterStage_Stage int32
list of filter stages which can be selected for a WASM 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 ¶ added in v1.6.0
func (FilterStage_Stage) Descriptor() protoreflect.EnumDescriptor
func (FilterStage_Stage) Enum ¶ added in v1.6.0
func (x FilterStage_Stage) Enum() *FilterStage_Stage
func (FilterStage_Stage) EnumDescriptor
deprecated
added in
v1.2.13
func (FilterStage_Stage) EnumDescriptor() ([]byte, []int)
Deprecated: Use FilterStage_Stage.Descriptor instead.
func (FilterStage_Stage) Number ¶ added in v1.6.0
func (x FilterStage_Stage) Number() protoreflect.EnumNumber
func (FilterStage_Stage) String ¶ added in v1.2.13
func (x FilterStage_Stage) String() string
func (FilterStage_Stage) Type ¶ added in v1.6.0
func (FilterStage_Stage) Type() protoreflect.EnumType
type PluginSource ¶
type PluginSource struct { // list of WASM filters to be added into the filter chain Filters []*WasmFilter `protobuf:"bytes,1,rep,name=filters,proto3" json:"filters,omitempty"` // contains filtered or unexported fields }
Options config for WASM filters
func (*PluginSource) Descriptor
deprecated
func (*PluginSource) Descriptor() ([]byte, []int)
Deprecated: Use PluginSource.ProtoReflect.Descriptor instead.
func (*PluginSource) GetFilters ¶ added in v1.2.13
func (x *PluginSource) GetFilters() []*WasmFilter
func (*PluginSource) Hash ¶ added in v1.2.13
func (m *PluginSource) Hash(hasher hash.Hash64) (uint64, error)
Hash function
func (*PluginSource) ProtoMessage ¶
func (*PluginSource) ProtoMessage()
func (*PluginSource) ProtoReflect ¶ added in v1.6.0
func (x *PluginSource) ProtoReflect() protoreflect.Message
func (*PluginSource) Reset ¶
func (x *PluginSource) Reset()
func (*PluginSource) String ¶
func (x *PluginSource) String() string
type WasmFilter ¶ added in v1.2.13
type WasmFilter struct { // name of image which houses the compiled wasm filter Image string `protobuf:"bytes,2,opt,name=image,proto3" json:"image,omitempty"` // Filter/service configuration used to configure or reconfigure a plugin // (proxy_on_configuration). // `google.protobuf.Struct` is serialized as JSON before // passing it to the plugin. `google.protobuf.BytesValue` and // `google.protobuf.StringValue` are passed directly without the wrapper. Config *any.Any `protobuf:"bytes,3,opt,name=config,proto3" json:"config,omitempty"` // the stage in the filter chain where this filter should be placed FilterStage *FilterStage `protobuf:"bytes,4,opt,name=filter_stage,json=filterStage,proto3" json:"filter_stage,omitempty"` // the name of the filter, used for logging Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` // the root_id of the filter which should be run, if this value is incorrect, or // empty the filter will crash RootId string `protobuf:"bytes,6,opt,name=root_id,json=rootId,proto3" json:"root_id,omitempty"` // selected VM type VmType WasmFilter_VmType `` /* 129-byte string literal not displayed */ // contains filtered or unexported fields }
This message defines a single Envoy WASM filter to be placed into the filter chain
func (*WasmFilter) Descriptor
deprecated
added in
v1.2.13
func (*WasmFilter) Descriptor() ([]byte, []int)
Deprecated: Use WasmFilter.ProtoReflect.Descriptor instead.
func (*WasmFilter) Equal ¶ added in v1.2.13
func (m *WasmFilter) Equal(that interface{}) bool
Equal function
func (*WasmFilter) GetConfig ¶ added in v1.2.13
func (x *WasmFilter) GetConfig() *any.Any
func (*WasmFilter) GetFilterStage ¶ added in v1.2.13
func (x *WasmFilter) GetFilterStage() *FilterStage
func (*WasmFilter) GetImage ¶ added in v1.2.13
func (x *WasmFilter) GetImage() string
func (*WasmFilter) GetName ¶ added in v1.2.13
func (x *WasmFilter) GetName() string
func (*WasmFilter) GetRootId ¶ added in v1.2.13
func (x *WasmFilter) GetRootId() string
func (*WasmFilter) GetVmType ¶ added in v1.2.13
func (x *WasmFilter) GetVmType() WasmFilter_VmType
func (*WasmFilter) Hash ¶ added in v1.2.13
func (m *WasmFilter) Hash(hasher hash.Hash64) (uint64, error)
Hash function
func (*WasmFilter) ProtoMessage ¶ added in v1.2.13
func (*WasmFilter) ProtoMessage()
func (*WasmFilter) ProtoReflect ¶ added in v1.6.0
func (x *WasmFilter) ProtoReflect() protoreflect.Message
func (*WasmFilter) Reset ¶ added in v1.2.13
func (x *WasmFilter) Reset()
func (*WasmFilter) String ¶ added in v1.2.13
func (x *WasmFilter) String() string
type WasmFilter_VmType ¶ added in v1.2.13
type WasmFilter_VmType int32
represents the different types of WASM VMs available with which envoy can run the WASM filter module
const ( WasmFilter_V8 WasmFilter_VmType = 0 WasmFilter_WAVM WasmFilter_VmType = 1 )
func (WasmFilter_VmType) Descriptor ¶ added in v1.6.0
func (WasmFilter_VmType) Descriptor() protoreflect.EnumDescriptor
func (WasmFilter_VmType) Enum ¶ added in v1.6.0
func (x WasmFilter_VmType) Enum() *WasmFilter_VmType
func (WasmFilter_VmType) EnumDescriptor
deprecated
added in
v1.2.13
func (WasmFilter_VmType) EnumDescriptor() ([]byte, []int)
Deprecated: Use WasmFilter_VmType.Descriptor instead.
func (WasmFilter_VmType) Number ¶ added in v1.6.0
func (x WasmFilter_VmType) Number() protoreflect.EnumNumber
func (WasmFilter_VmType) String ¶ added in v1.2.13
func (x WasmFilter_VmType) String() string
func (WasmFilter_VmType) Type ¶ added in v1.6.0
func (WasmFilter_VmType) Type() protoreflect.EnumType