diff --git a/.github/workflows/ci-test.yml b/.github/workflows/ci-test.yml index 015db7c0..b27ddb3f 100644 --- a/.github/workflows/ci-test.yml +++ b/.github/workflows/ci-test.yml @@ -1,10 +1,4 @@ -on: - push: - paths-ignore: - - '**.md' - pull_request: - paths-ignore: - - '**.md' +on: [push, pull_request] name: Run Test Cases jobs: go-path-test: diff --git a/CHANGELOG.md b/CHANGELOG.md index b749f2f4..968ea7ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,12 +1,19 @@ # Changelog +## 7.16.0 +* 新增 + * 对象存储,`BucketManager` `BucketsV4` 获取该用户的指定区域内的空间信息,注意该 API 以分页形式返回 Bucket 列表 + * 对象存储,`BucketManager` `SetRemark` 设置空间的备注信息 +* 更新 + * 对象存储,`BucketManager` `GetBucketInfo` 返回空间的备注信息 + ## 7.15.0 * 优化 * 表单上传 Put 方法的 PutExtra 参数,支持传入 nil * Bucket 镜像源/配额方法内部请求使用 UC 域名 - * BucketManager ListBucket 和 ListBucketContext 方法内部接口由 /v2/list 调用调整为 /list + * `BucketManager` `ListBucket` 和 `ListBucketContext` 方法内部接口由 /v2/list 调用调整为 /list * 新增 - * BucketManager 新增批量方法 BatchWithContext - * BucketManager 增加 Bucket 列举方法 ListFileWithContext + * `BucketManager` 新增批量方法 `BatchWithContext` + * `BucketManager` 增加 Bucket 列举方法 `ListFileWithContext` ## 7.14.0 * Go SDK 对七牛回调请求的鉴权验证函数支持 Qiniu 签名 diff --git a/README.md b/README.md index 3ff39153..5335a4ae 100644 --- a/README.md +++ b/README.md @@ -17,7 +17,7 @@ github.com/qiniu/go-sdk 在您的项目中的 `go.mod` 文件内添加这行代码 ``` -require github.com/qiniu/go-sdk/v7 v7.15.0 +require github.com/qiniu/go-sdk/v7 v7.16.0 ``` 并且在项目中使用 `"github.com/qiniu/go-sdk/v7"` 引用 Qiniu Go SDK。 diff --git a/conf/conf.go b/conf/conf.go index e95d28eb..0abd6589 100644 --- a/conf/conf.go +++ b/conf/conf.go @@ -5,7 +5,7 @@ import ( "strings" ) -const Version = "7.15.0" +const Version = "7.16.0" const ( CONTENT_TYPE_JSON = "application/json" diff --git a/storage/bucket.go b/storage/bucket.go index 76c9db69..45fcad16 100644 --- a/storage/bucket.go +++ b/storage/bucket.go @@ -330,7 +330,7 @@ func (m *BucketManager) Buckets(shared bool) (buckets []string, err error) { return } -// BucketsV4 获取该用户的指定区域内的空间信息,注意该 API 以分页形式返回 Bucket 列表t +// BucketsV4 获取该用户的指定区域内的空间信息,注意该 API 以分页形式返回 Bucket 列表 func (m *BucketManager) BucketsV4(input *BucketV4Input) (output BucketsV4Output, err error) { if input == nil { input = &BucketV4Input{} diff --git a/storage/uc.go b/storage/uc.go index 2d7c04a4..1312c6eb 100644 --- a/storage/uc.go +++ b/storage/uc.go @@ -227,7 +227,7 @@ func (m *BucketManager) GetBucketInfo(bucketName string) (bucketInfo BucketInfo, return } -// GetBucketInfo 返回BucketInfo结构 +// SetRemark 设置空间备注信息 func (m *BucketManager) SetRemark(bucketName, remark string) (err error) { reqURL := fmt.Sprintf("%s/buckets/%s?remark", getUcHost(m.Cfg.UseHTTPS), bucketName) body := struct {