Documentation ¶
Index ¶
- Variables
- type Config
- func (*Config) Descriptor() ([]byte, []int)
- func (m *Config) GetArn() string
- func (m *Config) GetInvocationMode() Config_InvocationMode
- func (m *Config) GetPayloadPassthrough() bool
- func (m *Config) Marshal() (dAtA []byte, err error)
- func (m *Config) MarshalTo(dAtA []byte) (int, error)
- func (m *Config) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Config) ProtoMessage()
- func (m *Config) Reset()
- func (m *Config) Size() (n int)
- func (m *Config) String() string
- func (m *Config) Unmarshal(dAtA []byte) error
- func (m *Config) Validate() error
- func (m *Config) XXX_DiscardUnknown()
- func (m *Config) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Config) XXX_Merge(src proto.Message)
- func (m *Config) XXX_Size() int
- func (m *Config) XXX_Unmarshal(b []byte) error
- type ConfigValidationError
- type Config_InvocationMode
- type PerRouteConfig
- func (*PerRouteConfig) Descriptor() ([]byte, []int)
- func (m *PerRouteConfig) GetInvokeConfig() *Config
- func (m *PerRouteConfig) Marshal() (dAtA []byte, err error)
- func (m *PerRouteConfig) MarshalTo(dAtA []byte) (int, error)
- func (m *PerRouteConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PerRouteConfig) ProtoMessage()
- func (m *PerRouteConfig) Reset()
- func (m *PerRouteConfig) Size() (n int)
- func (m *PerRouteConfig) String() string
- func (m *PerRouteConfig) Unmarshal(dAtA []byte) error
- func (m *PerRouteConfig) Validate() error
- func (m *PerRouteConfig) XXX_DiscardUnknown()
- func (m *PerRouteConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PerRouteConfig) XXX_Merge(src proto.Message)
- func (m *PerRouteConfig) XXX_Size() int
- func (m *PerRouteConfig) XXX_Unmarshal(b []byte) error
- type PerRouteConfigValidationError
- func (e PerRouteConfigValidationError) Cause() error
- func (e PerRouteConfigValidationError) Error() string
- func (e PerRouteConfigValidationError) ErrorName() string
- func (e PerRouteConfigValidationError) Field() string
- func (e PerRouteConfigValidationError) Key() bool
- func (e PerRouteConfigValidationError) Reason() string
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthAwsLambda = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowAwsLambda = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupAwsLambda = fmt.Errorf("proto: unexpected end of group") )
var Config_InvocationMode_name = map[int32]string{
0: "SYNCHRONOUS",
1: "ASYNCHRONOUS",
}
var Config_InvocationMode_value = map[string]int32{
"SYNCHRONOUS": 0,
"ASYNCHRONOUS": 1,
}
Functions ¶
This section is empty.
Types ¶
type Config ¶
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 `` /* 175-byte string literal not displayed */ XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
AWS Lambda filter config
func (*Config) Descriptor ¶
func (*Config) GetInvocationMode ¶
func (m *Config) GetInvocationMode() Config_InvocationMode
func (*Config) GetPayloadPassthrough ¶
func (*Config) MarshalToSizedBuffer ¶
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) Validate ¶
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.
func (*Config) XXX_DiscardUnknown ¶
func (m *Config) XXX_DiscardUnknown()
func (*Config) XXX_Marshal ¶
func (*Config) XXX_Unmarshal ¶
type ConfigValidationError ¶
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 ¶
func (e ConfigValidationError) Cause() error
Cause function returns cause value.
func (ConfigValidationError) Error ¶
func (e ConfigValidationError) Error() string
Error satisfies the builtin error interface
func (ConfigValidationError) ErrorName ¶
func (e ConfigValidationError) ErrorName() string
ErrorName returns error name.
func (ConfigValidationError) Field ¶
func (e ConfigValidationError) Field() string
Field function returns field value.
func (ConfigValidationError) Key ¶
func (e ConfigValidationError) Key() bool
Key function returns key value.
func (ConfigValidationError) Reason ¶
func (e ConfigValidationError) Reason() string
Reason function returns reason value.
type Config_InvocationMode ¶
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) EnumDescriptor ¶
func (Config_InvocationMode) EnumDescriptor() ([]byte, []int)
func (Config_InvocationMode) String ¶
func (x Config_InvocationMode) String() string
type PerRouteConfig ¶
type PerRouteConfig struct { InvokeConfig *Config `protobuf:"bytes,1,opt,name=invoke_config,json=invokeConfig,proto3" json:"invoke_config,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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 ¶
func (*PerRouteConfig) Descriptor() ([]byte, []int)
func (*PerRouteConfig) GetInvokeConfig ¶
func (m *PerRouteConfig) GetInvokeConfig() *Config
func (*PerRouteConfig) Marshal ¶
func (m *PerRouteConfig) Marshal() (dAtA []byte, err error)
func (*PerRouteConfig) MarshalToSizedBuffer ¶
func (m *PerRouteConfig) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PerRouteConfig) ProtoMessage ¶
func (*PerRouteConfig) ProtoMessage()
func (*PerRouteConfig) Reset ¶
func (m *PerRouteConfig) Reset()
func (*PerRouteConfig) Size ¶
func (m *PerRouteConfig) Size() (n int)
func (*PerRouteConfig) String ¶
func (m *PerRouteConfig) String() string
func (*PerRouteConfig) Unmarshal ¶
func (m *PerRouteConfig) Unmarshal(dAtA []byte) error
func (*PerRouteConfig) Validate ¶
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.
func (*PerRouteConfig) XXX_DiscardUnknown ¶
func (m *PerRouteConfig) XXX_DiscardUnknown()
func (*PerRouteConfig) XXX_Marshal ¶
func (m *PerRouteConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PerRouteConfig) XXX_Merge ¶
func (m *PerRouteConfig) XXX_Merge(src proto.Message)
func (*PerRouteConfig) XXX_Size ¶
func (m *PerRouteConfig) XXX_Size() int
func (*PerRouteConfig) XXX_Unmarshal ¶
func (m *PerRouteConfig) XXX_Unmarshal(b []byte) error
type PerRouteConfigValidationError ¶
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 ¶
func (e PerRouteConfigValidationError) Cause() error
Cause function returns cause value.
func (PerRouteConfigValidationError) Error ¶
func (e PerRouteConfigValidationError) Error() string
Error satisfies the builtin error interface
func (PerRouteConfigValidationError) ErrorName ¶
func (e PerRouteConfigValidationError) ErrorName() string
ErrorName returns error name.
func (PerRouteConfigValidationError) Field ¶
func (e PerRouteConfigValidationError) Field() string
Field function returns field value.
func (PerRouteConfigValidationError) Key ¶
func (e PerRouteConfigValidationError) Key() bool
Key function returns key value.
func (PerRouteConfigValidationError) Reason ¶
func (e PerRouteConfigValidationError) Reason() string
Reason function returns reason value.