Skip to content

Commit

Permalink
Bump to version 4.3.0 (#129)
Browse files Browse the repository at this point in the history
* Bump to version 4.3.0

* CHANGELOG: Remove dependent change and Add v4.3.0 link

* Modify config docs for v4.3.0

* Fix typo
  • Loading branch information
zhaohuxing authored Feb 1, 2021
1 parent cb30a5d commit 361193a
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 0 deletions.
21 changes: 21 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,26 @@
# Change Log
All notable changes to QingStor SDK for Go will be documented in this file.

## [v4.3.0] - 2021-01-29

### Added

- config: Host support IPv4/IPv6 (#128)
- Support Anonymous API Call (#126)
- config: Add QINGSTOR_ENABLE_VIRTUAL_HOST_STYLE env variable (#125)
- config: Add enable_virtual_host_style support (#123)
- config: Add endpoint parameter (#121)
- config: Support environment variables (#120)
- Supported that bucket replication (#119)

### Changed

- ci: Modify ci into github actions (#115)

### Fixed

- util: Fix metadata validator (#114)

## [v4.2.0] - 2020-9-28

### Added
Expand Down Expand Up @@ -269,6 +289,7 @@ All notable changes to QingStor SDK for Go will be documented in this file.

- QingStor SDK for the Go programming language.

[v4.3.0]: https://github.com/qingstor/qingstor-sdk-go/compare/v4.2.0...v4.3.0
[v4.2.0]: https://github.com/qingstor/qingstor-sdk-go/compare/v4.1.0...v4.2.0
[v4.1.0]: https://github.com/qingstor/qingstor-sdk-go/compare/v4.0.0...v4.1.0
[v4.0.0]: https://github.com/qingstor/qingstor-sdk-go/compare/v3.2.0...v4.0.0
Expand Down
13 changes: 13 additions & 0 deletions docs/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,23 @@ port: 443
protocol: 'https'
connection_retries: 3

endpoint: 'https://qingstor.com:443'

enable_virtual_host_style: false # default false.
enable_dual_stack: false # default false.

# Valid log levels are "debug", "info", "warn", "error", and "fatal".
log_level: 'warn'
```
We also support setting the following environment variables:
- QINGSTOR_ACCESS_KEY_ID
- QINGSTOR_SECRET_ACCESS_KEY
- QINGSTOR_CONFIG_PATH
- QINGSTOR_ENABLE_VIRTUAL_HOST_STYLE
- QINGSTOR_ENABLE_DUAL_STACK
## Usage
Just create a config structure instance with your API Access Key, and initialize services you need with Init() function of the target service.
Expand Down
14 changes: 14 additions & 0 deletions docs/config_zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,24 @@ port: 443
protocol: 'https'
connection_retries: 3

endpoint: 'https://qingstor.com:443'

enable_virtual_host_style: false # default false.
enable_dual_stack: false # default false.

# Valid log levels are "debug", "info", "warn", "error", and "fatal".
log_level: 'warn'
```
我们也支持设置如下环境变量:
- QINGSTOR_ACCESS_KEY_ID
- QINGSTOR_SECRET_ACCESS_KEY
- QINGSTOR_CONFIG_PATH
- QINGSTOR_ENABLE_VIRTUAL_HOST_STYLE
- QINGSTOR_ENABLE_DUAL_STACK
## 使用
只需使用 API Access Key Pair 来创建 `Config` 结构实例,并使用 service 包下的Init() 函数来初始化 Config 对应的服务。
Expand Down

0 comments on commit 361193a

Please sign in to comment.