aws

package
v0.2.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateAwsService added in v0.0.3

func CreateAwsService(opts *options.RootOptions) (svc *s3.S3, err error)

func DeleteFiles

func DeleteFiles(svc s3iface.S3API, bucketName string, slice []*s3.Object, dryRun bool, logger zerolog.Logger) error

DeleteFiles deletes the slice of []*s3.Object objects in the target bucket

func Find added in v0.0.3

func Find(svc s3iface.S3API, opts *options2.SearchOptions, logger zerolog.Logger) ([]string, []error)

Find does the heavy lifting, communicates with the S3 and finds the files

func GetAllFiles

func GetAllFiles(svc s3iface.S3API, opts *options.RootOptions, prefix string) (res *s3.ListObjectsOutput, err error)

GetAllFiles gets all of the files in the target bucket as the function name indicates

Types

This section is empty.

Jump to

Keyboard shortcuts

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