Versions in this module Expand all Collapse all v0 v0.13.9 Mar 26, 2023 v0.13.8 Mar 26, 2023 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 EncryptOpts struct + Enabled bool + KmsEncryptionContext string + KmsKeyId string + ServerSideCustomerKey string + type S3Client interface + BucketExists func(bucket string) (bool, error) + Delete func(bucket, key string) error + GetDirectory func(bucket, key, path string) error + GetFile func(bucket, key, path string) error + IsDirectory func(bucket, key string) (bool, error) + KeyExists func(bucket, key string) (bool, error) + ListDirectory func(bucket, keyPrefix string) ([]string, error) + MakeBucket func(bucketName string, opts minio.MakeBucketOptions) error + OpenFile func(bucket, key string) (io.ReadCloser, 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 + EncryptOpts EncryptOpts + Endpoint string + Region string + RoleARN string + RoleSessionName string + SecretKey string + Secure bool + Trace bool + UseSDKCreds bool