Documentation ¶
Index ¶
- Constants
- Variables
- func Execute() error
- func GetLambdaArn(ctx context.Context, cfc CloudFormationClient, stackName string) (arn string, err error)
- func NewDynamoDb(tableName string) *db.DynamoDb
- type CloudFormationClient
- type CloudFormationClientFactoryFunc
- type DynamoDbFactoryFunc
- type EListManFactoryFunc
- type EListManFunc
- type Lambda
- type LambdaClient
- type LambdaClientFactoryFunc
Constants ¶
View Source
const FlagStackName = "stack-name"
View Source
const FunctionArnKey = "EListManFunctionArn"
Variables ¶
View Source
var AwsConfig aws.Config = ops.MustLoadDefaultAwsConfig()
Functions ¶
func GetLambdaArn ¶
func NewDynamoDb ¶
Types ¶
type CloudFormationClient ¶
type CloudFormationClient interface { DescribeStacks( context.Context, *cloudformation.DescribeStacksInput, ...func(*cloudformation.Options), ) (*cloudformation.DescribeStacksOutput, error) }
func NewCloudFormationClient ¶
func NewCloudFormationClient() CloudFormationClient
type CloudFormationClientFactoryFunc ¶
type CloudFormationClientFactoryFunc func() CloudFormationClient
type DynamoDbFactoryFunc ¶
type EListManFactoryFunc ¶
type EListManFactoryFunc func(stackName string) (EListManFunc, error)
type EListManFunc ¶
func NewEListManLambda ¶
func NewEListManLambda(stackName string) (EListManFunc, error)
type Lambda ¶
type Lambda struct { Client LambdaClient Arn string }
func NewLambda ¶
func NewLambda( ctx context.Context, cfc CloudFormationClient, lc LambdaClient, stackName string, ) (l *Lambda, err error)
type LambdaClient ¶
type LambdaClient interface { Invoke( context.Context, *lambda.InvokeInput, ...func(*lambda.Options), ) (*lambda.InvokeOutput, error) }
func NewLambdaClient ¶
func NewLambdaClient() LambdaClient
type LambdaClientFactoryFunc ¶
type LambdaClientFactoryFunc func() LambdaClient
Click to show internal directories.
Click to hide internal directories.