Documentation ¶
Index ¶
- Variables
- func CopyObject(bucketSource, bucketTarget, keySource, keyTarget string) error
- func DeleteObject(bucket, key string) error
- func DeleteObjects(data map[string][]string) error
- func GetAfterDate(bucket, prefix string, date time.Time) ([]types.Object, error)
- func GetBetweenDate(bucket, prefix string, start, stop time.Time) ([]string, error)
- func GetObject(bucket, fileName string) ([]byte, error)
- func HeadObject(bucket, key string) (*s3.HeadObjectOutput, error)
- func IsDifferent(bucket_base, bucket_target, key_base, key_target string) bool
- func IsDifferentLegacy(bucket_base, bucket_target, key_base, key_target string) bool
- func ListBucketObjects(bucket, prefix string) ([]string, error)
- func ListBucketObjectsDetails(bucket, prefix string) ([]types.Object, error)
- func Move(bucket, filename, targetName string) error
- func ObjectExists(bucket, key string) bool
- func ParseS3Path(p string) (string, string)
- func PutObject(bucket, filename string, data []byte) error
- func PutObjectStream(bucket, filename string, stream io.ReadCloser, ...) error
- func SyncAfterDate(bucket, prefix, localPath string, date time.Time) error
- func SyncBucket(bucket, prefix string, bucketsTarget ...string) ([]string, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var S3Client *s3.Client = nil
Functions ¶
func CopyObject ¶ added in v0.0.36
func DeleteObject ¶ added in v0.0.48
func DeleteObjects ¶ added in v0.0.98
DeleteObjects is delegated to remove the given data (value -> []string) from the given bucket (key -> string)
func GetAfterDate ¶ added in v0.0.76
FIXME: Use a list of string as prefix
func GetBetweenDate ¶ added in v0.0.93
func HeadObject ¶ added in v0.0.74
func HeadObject(bucket, key string) (*s3.HeadObjectOutput, error)
func IsDifferent ¶ added in v0.0.55
func IsDifferentLegacy ¶ added in v0.0.74
func ListBucketObjects ¶ added in v0.0.74
ListBucketObjects is delegated to list all the objects (name only) in the given bucket. Prefix is optional. The result is return ordered by the last modified
func ListBucketObjectsDetails ¶ added in v0.0.76
ListBucketObjectsDetails is delegated to list all the objects (details) in the given bucket. Prefix is optional. The result is return ordered by the last modified
func ObjectExists ¶ added in v0.0.36
func ParseS3Path ¶ added in v0.0.98
ParseS3Path is delegated to return bucket name and filename of a given s3 path
func PutObjectStream ¶ added in v0.0.39
func PutObjectStream(bucket, filename string, stream io.ReadCloser, contentType, encoding, md5 *string) error
func SyncAfterDate ¶ added in v0.0.93
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.