mirror of
https://github.com/nabbar/golib.git
synced 2025-10-04 23:42:46 +08:00
PKG AWS :
- add bucket website configuration method - add bucket CORS configuration method - chg bucket method structure file - bump ginkgo to v2 PKG Logger : - bump ginkgo to v2 Change : - bump dependancies - change unit test command to be compliance with ginkgo v2
This commit is contained in:
@@ -32,6 +32,7 @@ import (
|
||||
sdksss "github.com/aws/aws-sdk-go-v2/service/s3"
|
||||
sdkstp "github.com/aws/aws-sdk-go-v2/service/s3/types"
|
||||
libhlp "github.com/nabbar/golib/aws/helper"
|
||||
liberr "github.com/nabbar/golib/errors"
|
||||
ligerr "github.com/nabbar/golib/errors"
|
||||
)
|
||||
|
||||
@@ -55,6 +56,12 @@ type Bucket interface {
|
||||
|
||||
EnableReplication(srcRoleARN, dstRoleARN, dstBucketName string) ligerr.Error
|
||||
DeleteReplication() ligerr.Error
|
||||
|
||||
PutWebsite(index, error string) liberr.Error
|
||||
GetWebsite() (*sdksss.GetBucketWebsiteOutput, liberr.Error)
|
||||
|
||||
SetCORS(cors []sdkstp.CORSRule) liberr.Error
|
||||
GetCORS() ([]sdkstp.CORSRule, liberr.Error)
|
||||
}
|
||||
|
||||
func New(ctx context.Context, bucket, region string, iam *sdkiam.Client, s3 *sdksss.Client) Bucket {
|
||||
|
Reference in New Issue
Block a user