s3

package
v1.9.4 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2020 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadFileFromS3EventRecord

func DownloadFileFromS3EventRecord(downloader *s3manager.Downloader, record events.S3EventRecord) (*os.File, error)

DownloadFileFromS3EventRecord downloads a file from an S3 event's S3 Event Record. Takes in a pointer to a downloader object.

	for _, eventObject := range event.Records {
	file, err := s3.DownloadFileFromS3EventRecord(downloader, eventObject)
	if err != nil {
		log.Panicln(err)
	}
	ProcessFile(file.Name())
}

Types

This section is empty.

Jump to

Keyboard shortcuts

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