lambda

package
v0.0.0-...-555d172 Latest Latest
Warning

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

Go to latest
Published: May 27, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FetchImageFromBucket

func FetchImageFromBucket(sourceBucket string, image string) (imageData []byte, err error)

func ResizeImage

func ResizeImage(imageData []byte) (resizedImageBytes []byte, err error)

func SetupDynamoDBClient

func SetupDynamoDBClient() *dynamodb.DynamoDB

func SetupS3Client

func SetupS3Client() *s3.S3

func UploadResizedImageToBucket

func UploadResizedImageToBucket(targetBucket string, image string, resizedImageBytes []byte) (resizedImage string, err error)

func WriteMetadataToDynamoDBTable

func WriteMetadataToDynamoDBTable(tableName string, sourceBucket string, sourceImage string, targetBucket string, resizedImage string) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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