Versions in this module Expand all Collapse all v0 v0.3.2 Jan 15, 2021 Changes in this version + func GetAWSCredentials(opts S3ClientOpts) (*credentials.Credentials, error) + func GetAssumeRoleCredentials(opts S3ClientOpts) (*credentials.Credentials, error) + func GetCredentials(opts S3ClientOpts) (*credentials.Credentials, error) + func IsS3ErrCode(err error, code string) bool + type S3Client interface + BucketExists func(bucket string) (bool, error) + GetDirectory func(bucket, key, path string) error + GetFile func(bucket, key, path string) error + IsDirectory func(bucket, key string) (bool, error) + MakeBucket func(bucketName string, opts minio.MakeBucketOptions) error + PutDirectory func(bucket, key, path string) error + PutFile func(bucket, key, path string) error + func NewS3Client(ctx context.Context, opts S3ClientOpts) (S3Client, error) + type S3ClientOpts struct + AccessKey string + Endpoint string + Region string + RoleARN string + RoleSessionName string + SecretKey string + Secure bool + Trace bool + UseSDKCreds bool