Documentation ¶
Index ¶
- Constants
- func EncodeFunctionSpec(spec FunctionSpec) *types.Struct
- func EncodeUpstreamSpec(spec UpstreamSpec) *types.Struct
- func GetExecutionStyle(routeExtensions *types.Struct) (string, error)
- type FunctionSpec
- type Plugin
- func (p *Plugin) GetDependencies(cfg *v1.Config) *plugin.Dependencies
- func (p *Plugin) HttpFilters(params *plugin.FilterPluginParams) []plugin.StagedFilter
- func (p *Plugin) ParseFunctionSpec(params *plugin.FunctionPluginParams, in v1.FunctionSpec) (*types.Struct, error)
- func (p *Plugin) ProcessRoute(_ *plugin.RoutePluginParams, in *v1.Route, out *envoyroute.Route) error
- func (p *Plugin) ProcessUpstream(params *plugin.UpstreamPluginParams, in *v1.Upstream, out *envoyapi.Cluster) error
- type UpstreamSpec
Constants ¶
View Source
const ( // define Upstream type name UpstreamTypeAws = "aws" // upstream-specific metadata AwsAccessKey = "access_key" AwsSecretKey = "secret_key" )
View Source
const ( ExecutionStyleNone = "none" ExecutionStyleSync = "sync" ExecutionStyleAsync = "async" )
View Source
const (
// TODO: execution_type should be moved to a separate package
RoutePluginKeyExecutionStyle = "execution_style"
)
Variables ¶
This section is empty.
Functions ¶
func EncodeFunctionSpec ¶
func EncodeFunctionSpec(spec FunctionSpec) *types.Struct
func EncodeUpstreamSpec ¶
func EncodeUpstreamSpec(spec UpstreamSpec) *types.Struct
Types ¶
type FunctionSpec ¶
type FunctionSpec struct { FunctionName string `json:"function_name"` Qualifier string `json:"qualifier"` }
func DecodeFunctionSpec ¶
func DecodeFunctionSpec(generic v1.FunctionSpec) (*FunctionSpec, error)
func (*FunctionSpec) ValidateLambda ¶
func (s *FunctionSpec) ValidateLambda() error
type Plugin ¶
type Plugin struct {
// contains filtered or unexported fields
}
func (*Plugin) GetDependencies ¶
func (p *Plugin) GetDependencies(cfg *v1.Config) *plugin.Dependencies
func (*Plugin) HttpFilters ¶
func (p *Plugin) HttpFilters(params *plugin.FilterPluginParams) []plugin.StagedFilter
func (*Plugin) ParseFunctionSpec ¶
func (p *Plugin) ParseFunctionSpec(params *plugin.FunctionPluginParams, in v1.FunctionSpec) (*types.Struct, error)
func (*Plugin) ProcessRoute ¶
func (p *Plugin) ProcessRoute(_ *plugin.RoutePluginParams, in *v1.Route, out *envoyroute.Route) error
func (*Plugin) ProcessUpstream ¶
type UpstreamSpec ¶
func DecodeUpstreamSpec ¶
func DecodeUpstreamSpec(generic v1.UpstreamSpec) (*UpstreamSpec, error)
func (*UpstreamSpec) GetLambdaHostname ¶
func (s *UpstreamSpec) GetLambdaHostname() string
Click to show internal directories.
Click to hide internal directories.