awslambda

package
v0.0.0-...-089673d Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const Type = function.ProviderType("awslambda")

Type of provider.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSLambda

type AWSLambda struct {
	Service lambdaiface.LambdaAPI `json:"-" validate:"-"`

	ARN                string `json:"arn" validate:"required"`
	Region             string `json:"region" validate:"required"`
	AWSAccessKeyID     string `json:"awsAccessKeyId,omitempty"`
	AWSSecretAccessKey string `json:"awsSecretAccessKey,omitempty"`
	AWSSessionToken    string `json:"awsSessionToken,omitempty"`
}

AWSLambda function implementation

func (AWSLambda) Call

func (a AWSLambda) Call(payload []byte) ([]byte, error)

Call AWS Lambda function.

func (AWSLambda) MarshalLogObject

func (a AWSLambda) MarshalLogObject(enc zapcore.ObjectEncoder) error

MarshalLogObject is a part of zapcore.ObjectMarshaler interface.

type ProviderLoader

type ProviderLoader struct{}

ProviderLoader implementation

func (ProviderLoader) Load

func (p ProviderLoader) Load(data []byte) (function.Provider, error)

Load decode JSON data as Config and return initialized Provider instance.

Directories

Path Synopsis
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.

Jump to

Keyboard shortcuts

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