aws

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DestinationSpec_InvocationStyle_name = map[int32]string{
	0: "SYNC",
	1: "ASYNC",
}
View Source
var DestinationSpec_InvocationStyle_value = map[string]int32{
	"SYNC":  0,
	"ASYNC": 1,
}

Functions

This section is empty.

Types

type DestinationSpec

type DestinationSpec struct {
	// The Logical Name of the LambdaFunctionSpec to be invoked.
	LogicalName string `protobuf:"bytes,1,opt,name=logical_name,json=logicalName,proto3" json:"logical_name,omitempty"`
	// Can be either Sync or Async.
	InvocationStyle DestinationSpec_InvocationStyle `` /* 169-byte string literal not displayed */
	// de-jsonify response bodies returned from aws lambda
	ResponseTransformation bool     `` /* 128-byte string literal not displayed */
	XXX_NoUnkeyedLiteral   struct{} `json:"-"`
	XXX_unrecognized       []byte   `json:"-"`
	XXX_sizecache          int32    `json:"-"`
}

Each Lambda Function Spec contains data necessary for Gloo to invoke Lambda functions

func (*DestinationSpec) Descriptor

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

func (*DestinationSpec) Equal

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

func (*DestinationSpec) GetInvocationStyle

func (m *DestinationSpec) GetInvocationStyle() DestinationSpec_InvocationStyle

func (*DestinationSpec) GetLogicalName

func (m *DestinationSpec) GetLogicalName() string

func (*DestinationSpec) GetResponseTransformation

func (m *DestinationSpec) GetResponseTransformation() bool

func (*DestinationSpec) ProtoMessage

func (*DestinationSpec) ProtoMessage()

func (*DestinationSpec) Reset

func (m *DestinationSpec) Reset()

func (*DestinationSpec) String

func (m *DestinationSpec) String() string

func (*DestinationSpec) XXX_DiscardUnknown

func (m *DestinationSpec) XXX_DiscardUnknown()

func (*DestinationSpec) XXX_Marshal

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

func (*DestinationSpec) XXX_Merge

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

func (*DestinationSpec) XXX_Size

func (m *DestinationSpec) XXX_Size() int

func (*DestinationSpec) XXX_Unmarshal

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

type DestinationSpec_InvocationStyle

type DestinationSpec_InvocationStyle int32
const (
	DestinationSpec_SYNC  DestinationSpec_InvocationStyle = 0
	DestinationSpec_ASYNC DestinationSpec_InvocationStyle = 1
)

func (DestinationSpec_InvocationStyle) EnumDescriptor

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

func (DestinationSpec_InvocationStyle) String

type LambdaFunctionSpec

type LambdaFunctionSpec struct {
	// the logical name gloo should associate with this function. if left empty, it will default to
	// lambda_function_name+qualifier
	LogicalName string `protobuf:"bytes,1,opt,name=logical_name,json=logicalName,proto3" json:"logical_name,omitempty"`
	// The Name of the Lambda Function as it appears in the AWS Lambda Portal
	LambdaFunctionName string `protobuf:"bytes,2,opt,name=lambda_function_name,json=lambdaFunctionName,proto3" json:"lambda_function_name,omitempty"`
	// The Qualifier for the Lambda Function. Qualifiers act as a kind of version
	// for Lambda Functions. See https://docs.aws.amazon.com/lambda/latest/dg/API_Invoke.html for more info.
	Qualifier            string   `protobuf:"bytes,3,opt,name=qualifier,proto3" json:"qualifier,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Each Lambda Function Spec contains data necessary for Gloo to invoke Lambda functions: - name of the function - qualifier for the function

func (*LambdaFunctionSpec) Descriptor

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

func (*LambdaFunctionSpec) Equal

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

func (*LambdaFunctionSpec) GetLambdaFunctionName

func (m *LambdaFunctionSpec) GetLambdaFunctionName() string

func (*LambdaFunctionSpec) GetLogicalName

func (m *LambdaFunctionSpec) GetLogicalName() string

func (*LambdaFunctionSpec) GetQualifier

func (m *LambdaFunctionSpec) GetQualifier() string

func (*LambdaFunctionSpec) ProtoMessage

func (*LambdaFunctionSpec) ProtoMessage()

func (*LambdaFunctionSpec) Reset

func (m *LambdaFunctionSpec) Reset()

func (*LambdaFunctionSpec) String

func (m *LambdaFunctionSpec) String() string

func (*LambdaFunctionSpec) XXX_DiscardUnknown

func (m *LambdaFunctionSpec) XXX_DiscardUnknown()

func (*LambdaFunctionSpec) XXX_Marshal

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

func (*LambdaFunctionSpec) XXX_Merge

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

func (*LambdaFunctionSpec) XXX_Size

func (m *LambdaFunctionSpec) XXX_Size() int

func (*LambdaFunctionSpec) XXX_Unmarshal

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

type UpstreamSpec

type UpstreamSpec struct {
	// The AWS Region where the desired Lambda Functions exxist
	Region string `protobuf:"bytes,1,opt,name=region,proto3" json:"region,omitempty"`
	// A [Gloo Secret Ref](https://gloo.solo.io/introduction/concepts/#Secrets) to an AWS Secret
	// AWS Secrets can be created with `glooctl secret create aws ...`
	// If the secret is created manually, it must conform to the following structure:
	//  “`
	//  access_key: <aws access key>
	//  secret_key: <aws secret key>
	//  “`
	SecretRef core.ResourceRef `protobuf:"bytes,2,opt,name=secret_ref,json=secretRef,proto3" json:"secret_ref"`
	// The list of Lambda Functions contained within this region.
	// This list will be automatically populated by Gloo if discovery is enabled for AWS Lambda Functions
	LambdaFunctions      []*LambdaFunctionSpec `protobuf:"bytes,3,rep,name=lambda_functions,json=lambdaFunctions,proto3" json:"lambda_functions,omitempty"`
	XXX_NoUnkeyedLiteral struct{}              `json:"-"`
	XXX_unrecognized     []byte                `json:"-"`
	XXX_sizecache        int32                 `json:"-"`
}

Upstream Spec for AWS Lambda Upstreams AWS Upstreams represent a collection of Lambda Functions for a particular AWS Account (IAM Role or User account) in a particular region

func (*UpstreamSpec) Descriptor

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

func (*UpstreamSpec) Equal

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

func (*UpstreamSpec) GetLambdaFunctions

func (m *UpstreamSpec) GetLambdaFunctions() []*LambdaFunctionSpec

func (*UpstreamSpec) GetRegion

func (m *UpstreamSpec) GetRegion() string

func (*UpstreamSpec) GetSecretRef

func (m *UpstreamSpec) GetSecretRef() core.ResourceRef

func (*UpstreamSpec) ProtoMessage

func (*UpstreamSpec) ProtoMessage()

func (*UpstreamSpec) Reset

func (m *UpstreamSpec) Reset()

func (*UpstreamSpec) String

func (m *UpstreamSpec) String() string

func (*UpstreamSpec) XXX_DiscardUnknown

func (m *UpstreamSpec) XXX_DiscardUnknown()

func (*UpstreamSpec) XXX_Marshal

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

func (*UpstreamSpec) XXX_Merge

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

func (*UpstreamSpec) XXX_Size

func (m *UpstreamSpec) XXX_Size() int

func (*UpstreamSpec) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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