aws

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 2021 License: Unlicense Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLambdaUpdater

func NewLambdaUpdater(
	client UpdateFunctionCodeApi,
	providerFactory AssumeRoleProviderFactory,
	ctx context.Context,
) builder.Updater

func NewS3Uploader

func NewS3Uploader(client S3PutObjectAPI, roleProviderFactor AssumeRoleProviderFactory, ctx context.Context) builder.Uploader

Types

type AssumeRoleProviderFactory added in v1.1.0

type AssumeRoleProviderFactory interface {
	CreateProvider(roleArn string) *stscreds.AssumeRoleProvider
}

func NewAssumeRoleProviderFactory added in v1.1.0

func NewAssumeRoleProviderFactory(client *sts.Client) AssumeRoleProviderFactory

type S3PutObjectAPI

type S3PutObjectAPI interface {
	PutObject(ctx context.Context,
		params *s3.PutObjectInput,
		optFns ...func(*s3.Options)) (*s3.PutObjectOutput, error)
}

type UpdateFunctionCodeApi

type UpdateFunctionCodeApi interface {
	UpdateFunctionCode(ctx context.Context,
		params *lambda.UpdateFunctionCodeInput,
		optFns ...func(*lambda.Options)) (*lambda.UpdateFunctionCodeOutput, error)
}

Jump to

Keyboard shortcuts

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