S3utils

package
v0.0.79 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: MIT Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var S3Client *s3.Client = nil

Functions

func CopyObject added in v0.0.36

func CopyObject(bucketSource, bucketTarget, keySource, keyTarget string) error

func DeleteObject added in v0.0.48

func DeleteObject(bucket, key string) error

func GetAfterDate added in v0.0.76

func GetAfterDate(bucket, prefix string, date time.Time) ([]string, error)

func GetObject

func GetObject(bucket, fileName string) ([]byte, error)

func HeadObject added in v0.0.74

func HeadObject(bucket, key string) (*s3.HeadObjectOutput, error)

func IsDifferent added in v0.0.55

func IsDifferent(bucket_base, bucket_target, key_base, key_target string) bool

func IsDifferentLegacy added in v0.0.74

func IsDifferentLegacy(bucket_base, bucket_target, key_base, key_target string) bool

func ListBucketObjects added in v0.0.74

func ListBucketObjects(bucket, prefix string) ([]string, error)

func ListBucketObjectsDetails added in v0.0.76

func ListBucketObjectsDetails(bucket, prefix string) ([]types.Object, error)

func ObjectExists added in v0.0.36

func ObjectExists(bucket, key string) bool

func PutObject

func PutObject(bucket, filename string, data []byte) error

func PutObjectStream added in v0.0.39

func PutObjectStream(bucket, filename string, stream io.ReadCloser, contentType, encoding, md5 *string) error

func SyncBucket added in v0.0.37

func SyncBucket(bucket string, bucketsTarget ...string) ([]string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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