huaweicloud / huaweicloud-sdk-go-obs

Apache License 2.0
41 stars 24 forks source link

feat: support bucket encryption configuration #7

Closed ShiChangkuo closed 3 years ago

ShiChangkuo commented 3 years ago

we can create or update the default server-side encryption for a bucket with SetBucketEncryption; we can get the encryption configuration of a bucket with GetBucketEncryption; we can delete the encryption configuration of a bucket with DeleteBucketEncryption;

Signed-off-by: ShiChangkuo shichangkuo90@gmail.com

the testing result in obs_go_sample as follows:

StatusCode:200, RequestId:00000179EFA1DCBA411B4108489162D9
StatusCode:200, RequestId:00000179EFA1DD0C411B41F99B19C830
KMSMasterKeyID: default master key.
StatusCode:204, RequestId:00000179EFA1DD3F411B425E0E589DD1