s3eventutils

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckIfS3TestEvent

func CheckIfS3TestEvent(message string) bool

CheckIfS3TestEvent ...

func S3EventRecordFromSNSWrapper added in v0.3.1

func S3EventRecordFromSNSWrapper(snsEvent events.SNSEvent) (*events.S3EventRecord, error)

S3EventRecordFromSNSWrapper extracts the underlying s3 event record wrapped within the sns event.

func S3ObjectFromSNSS3EventMessage

func S3ObjectFromSNSS3EventMessage(snsEvent events.SNSEvent) (string, string, error)

S3ObjectFromSNSS3EventMessage extracts the bucket and key from an s3 event wrapped sns event.

func UriFromSNSS3EventMessage

func UriFromSNSS3EventMessage(snsEvent events.SNSEvent) (string, error)

UriFromSNSS3EventMessage extracts the s3 uri from an s3 event wrapped sns event.

Types

type S3TestEvent

type S3TestEvent struct {
	Service   string
	Event     string
	Time      string
	Bucket    string
	RequestID string
	HostID    string
}

S3TestEvent ...

Jump to

Keyboard shortcuts

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