Skip to content

Commit

Permalink
Merge pull request #97 from qiniu/upgrades/v7.16.0
Browse files Browse the repository at this point in the history
Bump version to v7.16.0
  • Loading branch information
bachue authored Jun 7, 2023
2 parents 89853a7 + 7db688a commit 7e1124f
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 14 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/ci-test.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
13 changes: 10 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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 签名
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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。
Expand Down
2 changes: 1 addition & 1 deletion conf/conf.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"strings"
)

const Version = "7.15.0"
const Version = "7.16.0"

const (
CONTENT_TYPE_JSON = "application/json"
Expand Down
2 changes: 1 addition & 1 deletion storage/bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -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{}
Expand Down
2 changes: 1 addition & 1 deletion storage/uc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7e1124f

Please sign in to comment.