Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/go-http/qcloud-cns
腾讯云云解析SDK,Go语言
https://github.com/go-http/qcloud-cns
cns golang qcloud sdk
Last synced: 7 days ago
JSON representation
腾讯云云解析SDK,Go语言
- Host: GitHub
- URL: https://github.com/go-http/qcloud-cns
- Owner: go-http
- Created: 2018-03-19T07:31:54.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-04-13T09:00:54.000Z (over 6 years ago)
- Last Synced: 2023-07-13T17:45:39.745Z (over 1 year ago)
- Topics: cns, golang, qcloud, sdk
- Language: Go
- Size: 10.7 KB
- Stars: 9
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 腾讯云云解析SDK
[![GoDoc](https://godoc.org/github.com/athurg/go-qcloud-cns-sdk?status.svg)](http://godoc.org/github.com/athurg/go-qcloud-cns-sdk)
[腾讯云 云解析模块API](https://cloud.tencent.com/document/product/302) Go语言SDK
## 使用方法
```sh
go get github.com/athurg/go-qcloud-cns-sdk
```## 使用范例
```golang
package mainimport (
"github.com/athurg/go-qcloud-cns-sdk"
"log"
)func main() {
cli := cns.New("secretId", "secretKey")
domains, err := cli.DomainList()
if err != nil {
log.Fatal(err)
}for _, domain := range domains {
log.Println(domain)
}
}
```## 完成状态
- [x] 域名相关接口
- - [x] 添加域名
- - [x] 设置域名状态
- - [x] 获取域名列表
- - [x] 删除域名
- [x] 解析记录相关接口
- - [x] 添加解析记录
- - [x] 设置解析记录状态
- - [x] 修改解析记录
- - [x] 获取解析记录列表
- - [x] 删除解析记录