aws

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2023 License: Apache-2.0 Imports: 21 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 DeleteAllBucketTags added in v0.0.6

func DeleteAllBucketTags(svc s3iface.S3API, opts *options3.TagOptions) (res *s3.DeleteBucketTaggingOutput, err error)

func DeleteBucketPolicy added in v0.0.10

func DeleteBucketPolicy(svc s3iface.S3API, opts *options5.BucketPolicyOptions) (res *s3.DeleteBucketPolicyOutput, 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 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

func GetBucketPolicy added in v0.0.9

func GetBucketPolicy(svc s3iface.S3API, opts *options5.BucketPolicyOptions) (res *s3.GetBucketPolicyOutput, err error)

func GetBucketPolicyString added in v1.0.9

func GetBucketPolicyString(svc s3iface.S3API, opts *options5.BucketPolicyOptions) (out string, err error)

func GetBucketTags added in v0.0.5

func GetBucketTags(svc s3iface.S3API, opts *options3.TagOptions) (res *s3.GetBucketTaggingOutput, err error)

func GetBucketVersioning added in v0.0.3

func GetBucketVersioning(svc s3iface.S3API, opts *options.RootOptions) (res *s3.GetBucketVersioningOutput, err error)

GetBucketVersioning gets the target bucket

func GetDesiredFiles added in v0.0.4

func GetDesiredFiles(svc s3iface.S3API, opts *options2.SearchOptions) (matchedFiles []string, err error)

func GetTransferAcceleration added in v0.0.11

func SearchString added in v0.0.4

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

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

func SetBucketPolicy added in v0.0.10

func SetBucketPolicy(svc s3iface.S3API, opts *options5.BucketPolicyOptions) (res *s3.PutBucketPolicyOutput, err error)

func SetBucketTags added in v0.0.5

func SetBucketTags(svc s3iface.S3API, opts *options3.TagOptions) (res *s3.PutBucketTaggingOutput, err error)

func SetBucketVersioning added in v0.0.3

func SetBucketVersioning(svc s3iface.S3API, versioningOpts *options4.VersioningOptions, logger zerolog.Logger) error

SetBucketVersioning sets the target bucket

func SetTransferAcceleration added in v0.0.11

func SetTransferAcceleration(svc s3iface.S3API, opts *options6.TransferAccelerationOptions, logger zerolog.Logger) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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