Documentation ¶
Index ¶
- Variables
- type PluginConfig
- func (*PluginConfig) Descriptor() ([]byte, []int)
- func (m *PluginConfig) GetConfiguration() *types.Any
- func (m *PluginConfig) GetGroupName() string
- func (m *PluginConfig) GetInlineVmConfig() *VmConfig
- func (m *PluginConfig) GetName() string
- func (m *PluginConfig) GetVmConfig() isPluginConfig_VmConfig
- func (m *PluginConfig) Marshal() (dAtA []byte, err error)
- func (m *PluginConfig) MarshalTo(dAtA []byte) (int, error)
- func (m *PluginConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PluginConfig) ProtoMessage()
- func (m *PluginConfig) Reset()
- func (m *PluginConfig) Size() (n int)
- func (m *PluginConfig) String() string
- func (m *PluginConfig) Unmarshal(dAtA []byte) error
- func (m *PluginConfig) Validate() error
- func (m *PluginConfig) XXX_DiscardUnknown()
- func (m *PluginConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PluginConfig) XXX_Merge(src proto.Message)
- func (*PluginConfig) XXX_OneofWrappers() []interface{}
- func (m *PluginConfig) XXX_Size() int
- func (m *PluginConfig) XXX_Unmarshal(b []byte) error
- type PluginConfigValidationError
- func (e PluginConfigValidationError) Cause() error
- func (e PluginConfigValidationError) Error() string
- func (e PluginConfigValidationError) ErrorName() string
- func (e PluginConfigValidationError) Field() string
- func (e PluginConfigValidationError) Key() bool
- func (e PluginConfigValidationError) Reason() string
- type PluginConfig_InlineVmConfig
- type VmConfig
- func (*VmConfig) Descriptor() ([]byte, []int)
- func (m *VmConfig) GetAllowPrecompiled() bool
- func (m *VmConfig) GetCode() *v3.AsyncDataSource
- func (m *VmConfig) GetConfiguration() *types.Any
- func (m *VmConfig) GetRuntime() string
- func (m *VmConfig) GetVmId() string
- func (m *VmConfig) Marshal() (dAtA []byte, err error)
- func (m *VmConfig) MarshalTo(dAtA []byte) (int, error)
- func (m *VmConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*VmConfig) ProtoMessage()
- func (m *VmConfig) Reset()
- func (m *VmConfig) Size() (n int)
- func (m *VmConfig) String() string
- func (m *VmConfig) Unmarshal(dAtA []byte) error
- func (m *VmConfig) Validate() error
- func (m *VmConfig) XXX_DiscardUnknown()
- func (m *VmConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VmConfig) XXX_Merge(src proto.Message)
- func (m *VmConfig) XXX_Size() int
- func (m *VmConfig) XXX_Unmarshal(b []byte) error
- type VmConfigValidationError
- type WasmService
- func (*WasmService) Descriptor() ([]byte, []int)
- func (m *WasmService) GetConfig() *PluginConfig
- func (m *WasmService) GetSingleton() bool
- func (m *WasmService) Marshal() (dAtA []byte, err error)
- func (m *WasmService) MarshalTo(dAtA []byte) (int, error)
- func (m *WasmService) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*WasmService) ProtoMessage()
- func (m *WasmService) Reset()
- func (m *WasmService) Size() (n int)
- func (m *WasmService) String() string
- func (m *WasmService) Unmarshal(dAtA []byte) error
- func (m *WasmService) Validate() error
- func (m *WasmService) XXX_DiscardUnknown()
- func (m *WasmService) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *WasmService) XXX_Merge(src proto.Message)
- func (m *WasmService) XXX_Size() int
- func (m *WasmService) XXX_Unmarshal(b []byte) error
- type WasmServiceValidationError
- func (e WasmServiceValidationError) Cause() error
- func (e WasmServiceValidationError) Error() string
- func (e WasmServiceValidationError) ErrorName() string
- func (e WasmServiceValidationError) Field() string
- func (e WasmServiceValidationError) Key() bool
- func (e WasmServiceValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type PluginConfig ¶
type PluginConfig struct { // A unique name for a filters/services in a VM for use in identifying the filter/service if // multiple filters/services are handled by the same *vm_id* and *group_name* and for // logging/debugging. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // A unique ID for a set of filters/services in a VM which will share a RootContext and Contexts // if applicable (e.g. an Wasm HttpFilter and an Wasm AccessLog). If left blank, all // filters/services with a blank group_name with the same *vm_id* will share Context(s). GroupName string `protobuf:"bytes,2,opt,name=group_name,json=groupName,proto3" json:"group_name,omitempty"` // Configuration for finding or starting VM. // // Types that are valid to be assigned to VmConfig: // *PluginConfig_InlineVmConfig VmConfig isPluginConfig_VmConfig `protobuf_oneof:"vm_config"` // Filter/service configuration used to configure or reconfigure a plugin // (proxy_on_configuration). Configuration *types.Any `protobuf:"bytes,5,opt,name=configuration,proto3" json:"configuration,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Base Configuration for Wasm Plugins e.g. filters and services. [#next-free-field: 6] [#not-implemented-hide:] pending implementation.
func (*PluginConfig) Descriptor ¶
func (*PluginConfig) Descriptor() ([]byte, []int)
func (*PluginConfig) GetConfiguration ¶
func (m *PluginConfig) GetConfiguration() *types.Any
func (*PluginConfig) GetGroupName ¶
func (m *PluginConfig) GetGroupName() string
func (*PluginConfig) GetInlineVmConfig ¶
func (m *PluginConfig) GetInlineVmConfig() *VmConfig
func (*PluginConfig) GetName ¶
func (m *PluginConfig) GetName() string
func (*PluginConfig) GetVmConfig ¶
func (m *PluginConfig) GetVmConfig() isPluginConfig_VmConfig
func (*PluginConfig) Marshal ¶
func (m *PluginConfig) Marshal() (dAtA []byte, err error)
func (*PluginConfig) MarshalToSizedBuffer ¶
func (m *PluginConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PluginConfig) ProtoMessage ¶
func (*PluginConfig) ProtoMessage()
func (*PluginConfig) Reset ¶
func (m *PluginConfig) Reset()
func (*PluginConfig) Size ¶
func (m *PluginConfig) Size() (n int)
func (*PluginConfig) String ¶
func (m *PluginConfig) String() string
func (*PluginConfig) Unmarshal ¶
func (m *PluginConfig) Unmarshal(dAtA []byte) error
func (*PluginConfig) Validate ¶
func (m *PluginConfig) Validate() error
Validate checks the field values on PluginConfig with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*PluginConfig) XXX_DiscardUnknown ¶
func (m *PluginConfig) XXX_DiscardUnknown()
func (*PluginConfig) XXX_Marshal ¶
func (m *PluginConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PluginConfig) XXX_Merge ¶
func (m *PluginConfig) XXX_Merge(src proto.Message)
func (*PluginConfig) XXX_OneofWrappers ¶
func (*PluginConfig) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*PluginConfig) XXX_Size ¶
func (m *PluginConfig) XXX_Size() int
func (*PluginConfig) XXX_Unmarshal ¶
func (m *PluginConfig) XXX_Unmarshal(b []byte) error
type PluginConfigValidationError ¶
type PluginConfigValidationError struct {
// contains filtered or unexported fields
}
PluginConfigValidationError is the validation error returned by PluginConfig.Validate if the designated constraints aren't met.
func (PluginConfigValidationError) Cause ¶
func (e PluginConfigValidationError) Cause() error
Cause function returns cause value.
func (PluginConfigValidationError) Error ¶
func (e PluginConfigValidationError) Error() string
Error satisfies the builtin error interface
func (PluginConfigValidationError) ErrorName ¶
func (e PluginConfigValidationError) ErrorName() string
ErrorName returns error name.
func (PluginConfigValidationError) Field ¶
func (e PluginConfigValidationError) Field() string
Field function returns field value.
func (PluginConfigValidationError) Key ¶
func (e PluginConfigValidationError) Key() bool
Key function returns key value.
func (PluginConfigValidationError) Reason ¶
func (e PluginConfigValidationError) Reason() string
Reason function returns reason value.
type PluginConfig_InlineVmConfig ¶
type PluginConfig_InlineVmConfig struct {
InlineVmConfig *VmConfig `protobuf:"bytes,3,opt,name=inline_vm_config,json=inlineVmConfig,proto3,oneof" json:"inline_vm_config,omitempty"`
}
func (*PluginConfig_InlineVmConfig) MarshalTo ¶
func (m *PluginConfig_InlineVmConfig) MarshalTo(dAtA []byte) (int, error)
func (*PluginConfig_InlineVmConfig) MarshalToSizedBuffer ¶
func (m *PluginConfig_InlineVmConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PluginConfig_InlineVmConfig) Size ¶
func (m *PluginConfig_InlineVmConfig) Size() (n int)
type VmConfig ¶
type VmConfig struct { // An ID which will be used along with a hash of the wasm code (or the name of the registered Null // VM plugin) to determine which VM will be used for the plugin. All plugins which use the same // *vm_id* and code will use the same VM. May be left blank. Sharing a VM between plugins can // reduce memory utilization and make sharing of data easier which may have security implications. // See ref: "TODO: add ref" for details. VmId string `protobuf:"bytes,1,opt,name=vm_id,json=vmId,proto3" json:"vm_id,omitempty"` // The Wasm runtime type (either "v8" or "null" for code compiled into Envoy). Runtime string `protobuf:"bytes,2,opt,name=runtime,proto3" json:"runtime,omitempty"` // The Wasm code that Envoy will execute. Code *v3.AsyncDataSource `protobuf:"bytes,3,opt,name=code,proto3" json:"code,omitempty"` // The Wasm configuration used in initialization of a new VM (proxy_on_start). Configuration *types.Any `protobuf:"bytes,4,opt,name=configuration,proto3" json:"configuration,omitempty"` // Allow the wasm file to include pre-compiled code on VMs which support it. // Warning: this should only be enable for trusted sources as the precompiled code is not // verified. AllowPrecompiled bool `protobuf:"varint,5,opt,name=allow_precompiled,json=allowPrecompiled,proto3" json:"allow_precompiled,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Configuration for a Wasm VM. [#next-free-field: 6] [#not-implemented-hide:] pending implementation.
func (*VmConfig) Descriptor ¶
func (*VmConfig) GetAllowPrecompiled ¶
func (*VmConfig) GetCode ¶
func (m *VmConfig) GetCode() *v3.AsyncDataSource
func (*VmConfig) GetConfiguration ¶
func (*VmConfig) GetRuntime ¶
func (*VmConfig) MarshalToSizedBuffer ¶
func (*VmConfig) ProtoMessage ¶
func (*VmConfig) ProtoMessage()
func (*VmConfig) Validate ¶
Validate checks the field values on VmConfig with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*VmConfig) XXX_DiscardUnknown ¶
func (m *VmConfig) XXX_DiscardUnknown()
func (*VmConfig) XXX_Marshal ¶
func (*VmConfig) XXX_Unmarshal ¶
type VmConfigValidationError ¶
type VmConfigValidationError struct {
// contains filtered or unexported fields
}
VmConfigValidationError is the validation error returned by VmConfig.Validate if the designated constraints aren't met.
func (VmConfigValidationError) Cause ¶
func (e VmConfigValidationError) Cause() error
Cause function returns cause value.
func (VmConfigValidationError) Error ¶
func (e VmConfigValidationError) Error() string
Error satisfies the builtin error interface
func (VmConfigValidationError) ErrorName ¶
func (e VmConfigValidationError) ErrorName() string
ErrorName returns error name.
func (VmConfigValidationError) Field ¶
func (e VmConfigValidationError) Field() string
Field function returns field value.
func (VmConfigValidationError) Key ¶
func (e VmConfigValidationError) Key() bool
Key function returns key value.
func (VmConfigValidationError) Reason ¶
func (e VmConfigValidationError) Reason() string
Reason function returns reason value.
type WasmService ¶
type WasmService struct { // General plugin configuration. Config *PluginConfig `protobuf:"bytes,1,opt,name=config,proto3" json:"config,omitempty"` // If true, create a single VM rather than creating one VM per worker. Such a singleton can // not be used with filters. Singleton bool `protobuf:"varint,2,opt,name=singleton,proto3" json:"singleton,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
WasmService is configured as a built-in *envoy.wasm_service* :ref:`ServiceConfig <envoy_api_msg_extensions.wasm.v3.WasmService>`. This opaque configuration will be used to create a Wasm Service. [#not-implemented-hide:] pending implementation.
func (*WasmService) Descriptor ¶
func (*WasmService) Descriptor() ([]byte, []int)
func (*WasmService) GetConfig ¶
func (m *WasmService) GetConfig() *PluginConfig
func (*WasmService) GetSingleton ¶
func (m *WasmService) GetSingleton() bool
func (*WasmService) Marshal ¶
func (m *WasmService) Marshal() (dAtA []byte, err error)
func (*WasmService) MarshalToSizedBuffer ¶
func (m *WasmService) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*WasmService) ProtoMessage ¶
func (*WasmService) ProtoMessage()
func (*WasmService) Reset ¶
func (m *WasmService) Reset()
func (*WasmService) Size ¶
func (m *WasmService) Size() (n int)
func (*WasmService) String ¶
func (m *WasmService) String() string
func (*WasmService) Unmarshal ¶
func (m *WasmService) Unmarshal(dAtA []byte) error
func (*WasmService) Validate ¶
func (m *WasmService) Validate() error
Validate checks the field values on WasmService with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
func (*WasmService) XXX_DiscardUnknown ¶
func (m *WasmService) XXX_DiscardUnknown()
func (*WasmService) XXX_Marshal ¶
func (m *WasmService) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*WasmService) XXX_Merge ¶
func (m *WasmService) XXX_Merge(src proto.Message)
func (*WasmService) XXX_Size ¶
func (m *WasmService) XXX_Size() int
func (*WasmService) XXX_Unmarshal ¶
func (m *WasmService) XXX_Unmarshal(b []byte) error
type WasmServiceValidationError ¶
type WasmServiceValidationError struct {
// contains filtered or unexported fields
}
WasmServiceValidationError is the validation error returned by WasmService.Validate if the designated constraints aren't met.
func (WasmServiceValidationError) Cause ¶
func (e WasmServiceValidationError) Cause() error
Cause function returns cause value.
func (WasmServiceValidationError) Error ¶
func (e WasmServiceValidationError) Error() string
Error satisfies the builtin error interface
func (WasmServiceValidationError) ErrorName ¶
func (e WasmServiceValidationError) ErrorName() string
ErrorName returns error name.
func (WasmServiceValidationError) Field ¶
func (e WasmServiceValidationError) Field() string
Field function returns field value.
func (WasmServiceValidationError) Key ¶
func (e WasmServiceValidationError) Key() bool
Key function returns key value.
func (WasmServiceValidationError) Reason ¶
func (e WasmServiceValidationError) Reason() string
Reason function returns reason value.