Documentation ¶
Index ¶
- func CreateAwsService(opts *options.RootOptions) (svc *s3.S3, err error)
- func DeleteFiles(svc s3iface.S3API, bucketName string, slice []*s3.Object, dryRun bool, ...) error
- func Find(svc s3iface.S3API, opts *options2.SearchOptions, logger zerolog.Logger) ([]string, []error)
- func GetAllFiles(svc s3iface.S3API, opts *options.RootOptions, prefix string) (res *s3.ListObjectsOutput, err error)
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.
Click to show internal directories.
Click to hide internal directories.