go-control-plane: github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/aws_lambda/v3 Index | Files

package envoy_extensions_filters_http_aws_lambda_v3

import "github.com/envoyproxy/go-control-plane/envoy/extensions/filters/http/aws_lambda/v3"

Index

Package Files

aws_lambda.pb.go aws_lambda.pb.validate.go

Variables

var (
    Config_InvocationMode_name = map[int32]string{
        0:  "SYNCHRONOUS",
        1:  "ASYNCHRONOUS",
    }
    Config_InvocationMode_value = map[string]int32{
        "SYNCHRONOUS":  0,
        "ASYNCHRONOUS": 1,
    }
)

Enum value maps for Config_InvocationMode.

var File_envoy_extensions_filters_http_aws_lambda_v3_aws_lambda_proto protoreflect.FileDescriptor

type Config Uses

type Config struct {

    // The ARN of the AWS Lambda to invoke when the filter is engaged
    // Must be in the following format:
    // arn:<partition>:lambda:<region>:<account-number>:function:<function-name>
    Arn string `protobuf:"bytes,1,opt,name=arn,proto3" json:"arn,omitempty"`
    // Whether to transform the request (headers and body) to a JSON payload or pass it as is.
    PayloadPassthrough bool `protobuf:"varint,2,opt,name=payload_passthrough,json=payloadPassthrough,proto3" json:"payload_passthrough,omitempty"`
    // Determines the way to invoke the Lambda function.
    InvocationMode Config_InvocationMode `protobuf:"varint,3,opt,name=invocation_mode,json=invocationMode,proto3,enum=envoy.extensions.filters.http.aws_lambda.v3.Config_InvocationMode" json:"invocation_mode,omitempty"`
    // contains filtered or unexported fields
}

AWS Lambda filter config

func (*Config) Descriptor Uses

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

Deprecated: Use Config.ProtoReflect.Descriptor instead.

func (*Config) GetArn Uses

func (x *Config) GetArn() string

func (*Config) GetInvocationMode Uses

func (x *Config) GetInvocationMode() Config_InvocationMode

func (*Config) GetPayloadPassthrough Uses

func (x *Config) GetPayloadPassthrough() bool

func (*Config) ProtoMessage Uses

func (*Config) ProtoMessage()

func (*Config) ProtoReflect Uses

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

func (*Config) Reset Uses

func (x *Config) Reset()

func (*Config) String Uses

func (x *Config) String() string

func (*Config) Validate Uses

func (m *Config) Validate() error

Validate checks the field values on Config with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type ConfigValidationError Uses

type ConfigValidationError struct {
    // contains filtered or unexported fields
}

ConfigValidationError is the validation error returned by Config.Validate if the designated constraints aren't met.

func (ConfigValidationError) Cause Uses

func (e ConfigValidationError) Cause() error

Cause function returns cause value.

func (ConfigValidationError) Error Uses

func (e ConfigValidationError) Error() string

Error satisfies the builtin error interface

func (ConfigValidationError) ErrorName Uses

func (e ConfigValidationError) ErrorName() string

ErrorName returns error name.

func (ConfigValidationError) Field Uses

func (e ConfigValidationError) Field() string

Field function returns field value.

func (ConfigValidationError) Key Uses

func (e ConfigValidationError) Key() bool

Key function returns key value.

func (ConfigValidationError) Reason Uses

func (e ConfigValidationError) Reason() string

Reason function returns reason value.

type Config_InvocationMode Uses

type Config_InvocationMode int32
const (
    // This is the more common mode of invocation, in which Lambda responds after it has completed the function. In
    // this mode the output of the Lambda function becomes the response of the HTTP request.
    Config_SYNCHRONOUS Config_InvocationMode = 0
    // In this mode Lambda responds immediately but continues to process the function asynchronously. This mode can be
    // used to signal events for example. In this mode, Lambda responds with an acknowledgment that it received the
    // call which is translated to an HTTP 200 OK by the filter.
    Config_ASYNCHRONOUS Config_InvocationMode = 1
)

func (Config_InvocationMode) Descriptor Uses

func (Config_InvocationMode) Descriptor() protoreflect.EnumDescriptor

func (Config_InvocationMode) Enum Uses

func (x Config_InvocationMode) Enum() *Config_InvocationMode

func (Config_InvocationMode) EnumDescriptor Uses

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

Deprecated: Use Config_InvocationMode.Descriptor instead.

func (Config_InvocationMode) Number Uses

func (x Config_InvocationMode) Number() protoreflect.EnumNumber

func (Config_InvocationMode) String Uses

func (x Config_InvocationMode) String() string

func (Config_InvocationMode) Type Uses

func (Config_InvocationMode) Type() protoreflect.EnumType

type PerRouteConfig Uses

type PerRouteConfig struct {
    InvokeConfig *Config `protobuf:"bytes,1,opt,name=invoke_config,json=invokeConfig,proto3" json:"invoke_config,omitempty"`
    // contains filtered or unexported fields
}

Per-route configuration for AWS Lambda. This can be useful when invoking a different Lambda function or a different version of the same Lambda depending on the route.

func (*PerRouteConfig) Descriptor Uses

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

Deprecated: Use PerRouteConfig.ProtoReflect.Descriptor instead.

func (*PerRouteConfig) GetInvokeConfig Uses

func (x *PerRouteConfig) GetInvokeConfig() *Config

func (*PerRouteConfig) ProtoMessage Uses

func (*PerRouteConfig) ProtoMessage()

func (*PerRouteConfig) ProtoReflect Uses

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

func (*PerRouteConfig) Reset Uses

func (x *PerRouteConfig) Reset()

func (*PerRouteConfig) String Uses

func (x *PerRouteConfig) String() string

func (*PerRouteConfig) Validate Uses

func (m *PerRouteConfig) Validate() error

Validate checks the field values on PerRouteConfig with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.

type PerRouteConfigValidationError Uses

type PerRouteConfigValidationError struct {
    // contains filtered or unexported fields
}

PerRouteConfigValidationError is the validation error returned by PerRouteConfig.Validate if the designated constraints aren't met.

func (PerRouteConfigValidationError) Cause Uses

func (e PerRouteConfigValidationError) Cause() error

Cause function returns cause value.

func (PerRouteConfigValidationError) Error Uses

func (e PerRouteConfigValidationError) Error() string

Error satisfies the builtin error interface

func (PerRouteConfigValidationError) ErrorName Uses

func (e PerRouteConfigValidationError) ErrorName() string

ErrorName returns error name.

func (PerRouteConfigValidationError) Field Uses

func (e PerRouteConfigValidationError) Field() string

Field function returns field value.

func (PerRouteConfigValidationError) Key Uses

func (e PerRouteConfigValidationError) Key() bool

Key function returns key value.

func (PerRouteConfigValidationError) Reason Uses

func (e PerRouteConfigValidationError) Reason() string

Reason function returns reason value.

Package envoy_extensions_filters_http_aws_lambda_v3 imports 18 packages (graph) and is imported by 6 packages. Updated 2021-01-08. Refresh now. Tools for package owners.