aws

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2021 License: Apache-2.0 Imports: 17 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

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

Enum value maps for DestinationSpec_InvocationStyle.

View Source
var File_github_com_solo_io_gloo_projects_gloo_api_v1_options_aws_aws_proto protoreflect.FileDescriptor

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 */
	// Include headers, querystring, request path, and request method in the event payload sent to aws lambda
	RequestTransformation bool `protobuf:"varint,6,opt,name=request_transformation,json=requestTransformation,proto3" json:"request_transformation,omitempty"`
	// de-jsonify response bodies returned from aws lambda
	ResponseTransformation bool `` /* 128-byte string literal not displayed */
	// contains filtered or unexported fields
}

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

func (*DestinationSpec) Descriptor deprecated

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

Deprecated: Use DestinationSpec.ProtoReflect.Descriptor instead.

func (*DestinationSpec) Equal

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

Equal function

func (*DestinationSpec) GetInvocationStyle

func (x *DestinationSpec) GetInvocationStyle() DestinationSpec_InvocationStyle

func (*DestinationSpec) GetLogicalName

func (x *DestinationSpec) GetLogicalName() string

func (*DestinationSpec) GetRequestTransformation added in v1.9.0

func (x *DestinationSpec) GetRequestTransformation() bool

func (*DestinationSpec) GetResponseTransformation

func (x *DestinationSpec) GetResponseTransformation() bool

func (*DestinationSpec) Hash added in v1.2.13

func (m *DestinationSpec) Hash(hasher hash.Hash64) (uint64, error)

Hash function

func (*DestinationSpec) ProtoMessage

func (*DestinationSpec) ProtoMessage()

func (*DestinationSpec) ProtoReflect added in v1.6.0

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

func (*DestinationSpec) Reset

func (x *DestinationSpec) Reset()

func (*DestinationSpec) String

func (x *DestinationSpec) String() string

type DestinationSpec_InvocationStyle

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

func (DestinationSpec_InvocationStyle) Descriptor added in v1.6.0

func (DestinationSpec_InvocationStyle) Enum added in v1.6.0

func (DestinationSpec_InvocationStyle) EnumDescriptor deprecated

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

Deprecated: Use DestinationSpec_InvocationStyle.Descriptor instead.

func (DestinationSpec_InvocationStyle) Number added in v1.6.0

func (DestinationSpec_InvocationStyle) String

func (DestinationSpec_InvocationStyle) Type added in v1.6.0

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"`
	// contains filtered or unexported fields
}

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

func (*LambdaFunctionSpec) Descriptor deprecated

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

Deprecated: Use LambdaFunctionSpec.ProtoReflect.Descriptor instead.

func (*LambdaFunctionSpec) Equal

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

Equal function

func (*LambdaFunctionSpec) GetLambdaFunctionName

func (x *LambdaFunctionSpec) GetLambdaFunctionName() string

func (*LambdaFunctionSpec) GetLogicalName

func (x *LambdaFunctionSpec) GetLogicalName() string

func (*LambdaFunctionSpec) GetQualifier

func (x *LambdaFunctionSpec) GetQualifier() string

func (*LambdaFunctionSpec) Hash added in v1.2.13

func (m *LambdaFunctionSpec) Hash(hasher hash.Hash64) (uint64, error)

Hash function

func (*LambdaFunctionSpec) ProtoMessage

func (*LambdaFunctionSpec) ProtoMessage()

func (*LambdaFunctionSpec) ProtoReflect added in v1.6.0

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

func (*LambdaFunctionSpec) Reset

func (x *LambdaFunctionSpec) Reset()

func (*LambdaFunctionSpec) String

func (x *LambdaFunctionSpec) String() string

type UpstreamSpec

type UpstreamSpec struct {

	// The AWS Region where the desired Lambda Functions exist
	Region string `protobuf:"bytes,1,opt,name=region,proto3" json:"region,omitempty"`
	// A [Gloo Secret Ref](https://docs.solo.io/gloo-edge/latest/reference/cli/glooctl_create_secret_aws/) 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>
	//  session_token: <(optional) aws session token>
	//  “`
	SecretRef *core.ResourceRef `protobuf:"bytes,2,opt,name=secret_ref,json=secretRef,proto3" json:"secret_ref,omitempty"`
	// 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"`
	// (Optional): role_arn to use when assuming a role for a given request via STS.
	// If set this role_arn will override the value found in AWS_ROLE_ARN
	// This option will only be respected if STS credentials are enabled.
	// To enable STS credential fetching see Settings.Gloo.AwsOptions in settings.proto.
	RoleArn string `protobuf:"bytes,4,opt,name=role_arn,json=roleArn,proto3" json:"role_arn,omitempty"`
	// contains filtered or unexported fields
}

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 deprecated

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

Deprecated: Use UpstreamSpec.ProtoReflect.Descriptor instead.

func (*UpstreamSpec) Equal

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

Equal function

func (*UpstreamSpec) GetLambdaFunctions

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

func (*UpstreamSpec) GetRegion

func (x *UpstreamSpec) GetRegion() string

func (*UpstreamSpec) GetRoleArn added in v1.5.0

func (x *UpstreamSpec) GetRoleArn() string

func (*UpstreamSpec) GetSecretRef

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

func (*UpstreamSpec) Hash added in v1.2.13

func (m *UpstreamSpec) Hash(hasher hash.Hash64) (uint64, error)

Hash function

func (*UpstreamSpec) ProtoMessage

func (*UpstreamSpec) ProtoMessage()

func (*UpstreamSpec) ProtoReflect added in v1.6.0

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

func (*UpstreamSpec) Reset

func (x *UpstreamSpec) Reset()

func (*UpstreamSpec) String

func (x *UpstreamSpec) String() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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