Documentation ¶
Index ¶
- func CreateAwsService(opts *options.RootOptions) (svc *s3.S3, err error)
- func DeleteAllBucketTags(svc s3iface.S3API, opts *options3.TagOptions) (res *s3.DeleteBucketTaggingOutput, err error)
- func DeleteBucketPolicy(svc s3iface.S3API, opts *options5.BucketPolicyOptions) (res *s3.DeleteBucketPolicyOutput, err error)
- func DeleteFiles(svc s3iface.S3API, bucketName string, slice []*s3.Object, dryRun bool, ...) error
- func GetAllFiles(svc s3iface.S3API, opts *options.RootOptions, prefix string) (res *s3.ListObjectsOutput, err error)
- func GetBucketPolicy(svc s3iface.S3API, opts *options5.BucketPolicyOptions) (res *s3.GetBucketPolicyOutput, err error)
- func GetBucketPolicyString(svc s3iface.S3API, opts *options5.BucketPolicyOptions) (out string, err error)
- func GetBucketTags(svc s3iface.S3API, opts *options3.TagOptions) (res *s3.GetBucketTaggingOutput, err error)
- func GetBucketVersioning(svc s3iface.S3API, opts *options.RootOptions) (res *s3.GetBucketVersioningOutput, err error)
- func GetDesiredFiles(svc s3iface.S3API, opts *options2.SearchOptions) (matchedFiles []string, err error)
- func GetTransferAcceleration(svc s3iface.S3API, opts *options6.TransferAccelerationOptions) (res *s3.GetBucketAccelerateConfigurationOutput, err error)
- func SearchString(svc s3iface.S3API, opts *options2.SearchOptions, logger zerolog.Logger) ([]string, []error)
- func SetBucketPolicy(svc s3iface.S3API, opts *options5.BucketPolicyOptions) (res *s3.PutBucketPolicyOutput, err error)
- func SetBucketTags(svc s3iface.S3API, opts *options3.TagOptions) (res *s3.PutBucketTaggingOutput, err error)
- func SetBucketVersioning(svc s3iface.S3API, versioningOpts *options4.VersioningOptions, ...) error
- func SetTransferAcceleration(svc s3iface.S3API, opts *options6.TransferAccelerationOptions, ...) 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 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 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 GetTransferAcceleration ¶ added in v0.0.11
func GetTransferAcceleration(svc s3iface.S3API, opts *options6.TransferAccelerationOptions) (res *s3.GetBucketAccelerateConfigurationOutput, err error)
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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.