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:
Nicolas JUHEL
2022-01-13 09:37:43 +01:00
parent e4a2af60c4
commit 032ddb30a4
17 changed files with 297 additions and 101 deletions

View File

@@ -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 {