wasm

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2020 License: Apache-2.0 Imports: 13 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var FilterStage_Predicate_name = map[int32]string{
	0: "During",
	1: "Before",
	2: "After",
}
View Source
var FilterStage_Predicate_value = map[string]int32{
	"During": 0,
	"Before": 1,
	"After":  2,
}
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",
}
View Source
var FilterStage_Stage_value = map[string]int32{
	"FaultStage":     0,
	"CorsStage":      1,
	"WafStage":       2,
	"AuthNStage":     3,
	"AuthZStage":     4,
	"RateLimitStage": 5,
	"AcceptedStage":  6,
	"OutAuthStage":   7,
	"RouteStage":     8,
}
View Source
var WasmFilter_VmType_name = map[int32]string{
	0: "V8",
	1: "WAVM",
}
View Source
var WasmFilter_VmType_value = map[string]int32{
	"V8":   0,
	"WAVM": 1,
}

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"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

func (*FilterStage) Descriptor added in v1.2.13

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

func (*FilterStage) Equal added in v1.2.13

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

func (*FilterStage) GetPredicate added in v1.2.13

func (m *FilterStage) GetPredicate() FilterStage_Predicate

func (*FilterStage) GetStage added in v1.2.13

func (m *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) Reset added in v1.2.13

func (m *FilterStage) Reset()

func (*FilterStage) String added in v1.2.13

func (m *FilterStage) String() string

func (*FilterStage) XXX_DiscardUnknown added in v1.2.13

func (m *FilterStage) XXX_DiscardUnknown()

func (*FilterStage) XXX_Marshal added in v1.2.13

func (m *FilterStage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FilterStage) XXX_Merge added in v1.2.13

func (m *FilterStage) XXX_Merge(src proto.Message)

func (*FilterStage) XXX_Size added in v1.2.13

func (m *FilterStage) XXX_Size() int

func (*FilterStage) XXX_Unmarshal added in v1.2.13

func (m *FilterStage) XXX_Unmarshal(b []byte) error

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) EnumDescriptor added in v1.2.13

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

func (FilterStage_Predicate) String added in v1.2.13

func (x FilterStage_Predicate) String() string

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) EnumDescriptor added in v1.2.13

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

func (FilterStage_Stage) String added in v1.2.13

func (x FilterStage_Stage) String() string

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"`
	XXX_NoUnkeyedLiteral struct{}      `json:"-"`
	XXX_unrecognized     []byte        `json:"-"`
	XXX_sizecache        int32         `json:"-"`
}

Options config for WASM filters

func (*PluginSource) Descriptor

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

func (*PluginSource) Equal

func (this *PluginSource) Equal(that interface{}) bool

func (*PluginSource) GetFilters added in v1.2.13

func (m *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) Reset

func (m *PluginSource) Reset()

func (*PluginSource) String

func (m *PluginSource) String() string

func (*PluginSource) XXX_DiscardUnknown

func (m *PluginSource) XXX_DiscardUnknown()

func (*PluginSource) XXX_Marshal

func (m *PluginSource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*PluginSource) XXX_Merge

func (m *PluginSource) XXX_Merge(src proto.Message)

func (*PluginSource) XXX_Size

func (m *PluginSource) XXX_Size() int

func (*PluginSource) XXX_Unmarshal

func (m *PluginSource) XXX_Unmarshal(b []byte) error

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 *types.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 */
	XXX_NoUnkeyedLiteral struct{}          `json:"-"`
	XXX_unrecognized     []byte            `json:"-"`
	XXX_sizecache        int32             `json:"-"`
}

This message defines a single Envoy WASM filter to be placed into the filter chain

func (*WasmFilter) Descriptor added in v1.2.13

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

func (*WasmFilter) Equal added in v1.2.13

func (this *WasmFilter) Equal(that interface{}) bool

func (*WasmFilter) GetConfig added in v1.2.13

func (m *WasmFilter) GetConfig() *types.Any

func (*WasmFilter) GetFilterStage added in v1.2.13

func (m *WasmFilter) GetFilterStage() *FilterStage

func (*WasmFilter) GetImage added in v1.2.13

func (m *WasmFilter) GetImage() string

func (*WasmFilter) GetName added in v1.2.13

func (m *WasmFilter) GetName() string

func (*WasmFilter) GetRootId added in v1.2.13

func (m *WasmFilter) GetRootId() string

func (*WasmFilter) GetVmType added in v1.2.13

func (m *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) Reset added in v1.2.13

func (m *WasmFilter) Reset()

func (*WasmFilter) String added in v1.2.13

func (m *WasmFilter) String() string

func (*WasmFilter) XXX_DiscardUnknown added in v1.2.13

func (m *WasmFilter) XXX_DiscardUnknown()

func (*WasmFilter) XXX_Marshal added in v1.2.13

func (m *WasmFilter) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*WasmFilter) XXX_Merge added in v1.2.13

func (m *WasmFilter) XXX_Merge(src proto.Message)

func (*WasmFilter) XXX_Size added in v1.2.13

func (m *WasmFilter) XXX_Size() int

func (*WasmFilter) XXX_Unmarshal added in v1.2.13

func (m *WasmFilter) XXX_Unmarshal(b []byte) error

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) EnumDescriptor added in v1.2.13

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

func (WasmFilter_VmType) String added in v1.2.13

func (x WasmFilter_VmType) String() string

Jump to

Keyboard shortcuts

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