Documentation ¶
Index ¶
- type S3UploadHelper
- func (u *S3UploadHelper) FileExists(destKey string, fileInfo fs.FileInfo, s3ObjectMap map[string]*s3.Object) bool
- func (u *S3UploadHelper) ListFiles(bucket, prefix string) (map[string]*s3.Object, error)
- func (u *S3UploadHelper) UploadFile(srcPath string, destKey string, bucketName string, gzipFile bool, ...) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type S3UploadHelper ¶
func NewUploader ¶
func NewUploader(profileName, AWSRegion string) *S3UploadHelper
func (*S3UploadHelper) FileExists ¶
func (*S3UploadHelper) ListFiles ¶
TODO: add paging for more that 1000 files only returns the files in the root folder
func (*S3UploadHelper) UploadFile ¶
func (u *S3UploadHelper) UploadFile(srcPath string, destKey string, bucketName string, gzipFile bool, storageClass string) (string, error)
TODO: Add storage class
Click to show internal directories.
Click to hide internal directories.