Documentation ¶
Index ¶
- func Download(ctx context.Context, storage *S3, src string, dest string) (err error)
- func ListFiles(storage *S3, prefix string, recursive bool) (files []string, err error)
- func RemoveFiles(target *S3, prefixList []string, dryRun bool)
- func Upload(ctx context.Context, storage *S3, src string, dest string) (err error)
- func Validate(s *S3) (err error)
- type S3
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RemoveFiles ¶
RemoveFiles will attempt to remove files specified in prefixList in `target` s3 endpoint-bucket recursively. If dryRun is given, the removal will be no op other than a log. Note that this API makes its best attempt to remove given files, if the removal fails, it will log error but the function just continues.
Types ¶
type S3 ¶
func FindDefaultS3 ¶
func NewS3StorageFromURL ¶
func (*S3) GetEncryptedURL ¶
func (*S3) GetObjectPath ¶
Click to show internal directories.
Click to hide internal directories.