Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add NewClientWithSecurityToken for cms,rds,sls,oss,cdn,slb #208

Open
wants to merge 307 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
307 commits
Select commit Hold shift + click to select a range
4e13f2d
oss team suggest maxCopySize could be set to 128MB
aoxn Nov 7, 2016
afedced
Merge pull request #81 from spacexnice/master
denverdino Nov 8, 2016
f4d8748
Add new regions for #83
denverdino Nov 30, 2016
6670d44
Add new regions #83
denverdino Nov 30, 2016
5d9aab0
add vpc metadata client
aoxn Dec 8, 2016
90f2dba
Merge pull request #84 from spacexnice/master
denverdino Dec 12, 2016
98b4cf1
support mq client
Dec 20, 2016
236da5e
Merge pull request #86 from toolchainX/master
denverdino Dec 20, 2016
dc5acc0
internetchargetype in slb && gzip && healthchecktype && revivew bug
Dec 22, 2016
d8937c5
Fix #67 use the lower case for InternetChargeType
denverdino Dec 22, 2016
fd0516f
Merge pull request #89 from xiaoheihero/slb_bugfix
denverdino Dec 22, 2016
dd9259e
Update contributor lists
denverdino Dec 22, 2016
0973269
Suppport the experimental feature for spot instance
denverdino Dec 26, 2016
0b76f42
modify security ips for RDS
Dec 26, 2016
be4f2c9
Revert "modify security ips for RDS"
Dec 26, 2016
b1546dd
modify security ips for RDS
Dec 26, 2016
d7e9309
Update disks.go
menglingwei Dec 27, 2016
63cb58b
Merge pull request #91 from menglingwei/patch-2
denverdino Dec 27, 2016
0df53cc
add api RevokeSecurityGroup,AuthorizeSecurityGroupEgress,RevokeSecuri…
Dec 28, 2016
b0f137b
add api RevokeSecurityGroup,AuthorizeSecurityGroupEgress,RevokeSecuri…
Dec 28, 2016
c35cc69
mq receive
cheyang Dec 29, 2016
1d015b5
Merge pull request #93 from cheyang/master
denverdino Dec 29, 2016
2d3cb1b
Merge branch 'master' of https://github.com/menglingwei/aliyungo
Jan 3, 2017
ffc331e
add slb tags api
Jan 3, 2017
19120ec
Merge pull request #94 from menglingwei/master
denverdino Jan 3, 2017
d0bfdbc
update RouteEntrySetType struct
demonwy Jan 6, 2017
07835ef
Merge branch 'master' of github.com:wangyuelucky/aliyungo
demonwy Jan 6, 2017
f320207
Merge pull request #95 from wangyuelucky/master
denverdino Jan 6, 2017
e7abdc9
Added Push OSSCallback, rewrote DM, SMS
yarous224 Jan 6, 2017
a1db163
Merge pull request #96 from yarous224/master
denverdino Jan 6, 2017
30619ab
Add field LoadBalancerName to struct DescribeLoadBalancersArgs to ena…
aoxn Jan 10, 2017
df6c1f6
Merge pull request #97 from spacexnice/spacex-master
denverdino Jan 10, 2017
7cba3a4
improve image attribution
xiaozhu36 Jan 11, 2017
95db160
Merge pull request #98 from xiaozhu36/master
denverdino Jan 11, 2017
fd315c8
describeInstanceTypes add paramter
demonwy Jan 12, 2017
41c9728
Merge branch 'master' of github.com:denverdino/aliyungo
demonwy Jan 12, 2017
e19bb9b
Merge pull request #99 from wangyuelucky/master
denverdino Jan 12, 2017
dba27f8
Merge branch 'master' of github.com:denverdino/aliyungo
demonwy Jan 13, 2017
db94acd
add AvailableInstanceTypes to ZoneType struct
demonwy Jan 13, 2017
b8a58b8
fix incorrect field name FormAlias to FromAlias
wspl Jan 15, 2017
774eece
Merge pull request #100 from wspl/patch-2
denverdino Jan 15, 2017
1996fc1
Merge pull request #101 from wangyuelucky/master
denverdino Jan 16, 2017
cbc4c03
Add .travis.yml
denverdino Jan 17, 2017
2e96a92
Add build status URL
denverdino Jan 17, 2017
c24f4ec
describe userdata
demonwy Jan 17, 2017
d123f5d
Merge pull request #102 from wangyuelucky/master
denverdino Jan 17, 2017
b5fb168
minor api changes: instance status, ModifiyInstanceAttribute
ledzep2 Jan 18, 2017
0ed0796
Merge pull request #105 from ledzep2/master
denverdino Jan 20, 2017
33365da
Update README.md
denverdino Jan 20, 2017
6ee7ac9
add part of nas sdk
Jan 23, 2017
990d425
Merge pull request #106 from fredkan/master
denverdino Jan 24, 2017
6da8e49
Merge pull request #1 from denverdino/master
yarous224 Jan 30, 2017
cddb5b7
修复了OSS CallBack中潜在的问题
yarous224 Jan 30, 2017
b0a291b
更新API到2016-08-01
yarous224 Jan 30, 2017
3310803
升级了Invoke方法,增加了Path参数
yarous224 Jan 30, 2017
05292d6
增加了对OpenSearch的支持
yarous224 Jan 30, 2017
fe5a54c
Fixed a bug
yarous224 Jan 30, 2017
5b4f72b
Merge pull request #107 from yarous224/master
denverdino Feb 1, 2017
c20158a
add ecs runInstances related methods and structs
demonwy Feb 14, 2017
8883957
revert
demonwy Feb 14, 2017
8e4c9ec
add ecs runInstances related methods and structs
demonwy Feb 14, 2017
4376500
Merge pull request #111 from wangyuelucky/master
denverdino Feb 14, 2017
9f5738d
add new slb forward rules api
Feb 15, 2017
de2aa7a
Merge pull request #112 from menglingwei/master
menglingwei Feb 15, 2017
018563b
ReplyToAddress: bool
zachcr-ws Feb 22, 2017
019da49
Add InstanceId in CreateImageArgs which support create image from ECS…
zhuzhih2017 Feb 23, 2017
67c9a3e
Merge pull request #116 from zhuzhih2017/master
menglingwei Feb 23, 2017
c0ff6df
Merge pull request #115 from ZachBergh/master
denverdino Feb 23, 2017
7dd046b
add rds related APIs and structs
demonwy Feb 27, 2017
59dcada
Merge branch 'master' of github.com:denverdino/aliyungo
demonwy Feb 27, 2017
f509474
log format
demonwy Feb 27, 2017
970b385
Merge pull request #117 from demonwy/master
menglingwei Feb 27, 2017
0e65d7e
change describeSecurityIpList response struct
demonwy Feb 28, 2017
f288679
Merge branch 'master' of github.com:denverdino/aliyungo
demonwy Feb 28, 2017
419b6d5
Merge pull request #118 from demonwy/master
denverdino Mar 1, 2017
c6119cc
Update the contributor list
denverdino Mar 1, 2017
26df932
支持从LocationService获取endpoint
Mar 1, 2017
464966c
合并主干
Mar 1, 2017
42954cc
修改测试配置文件
Mar 2, 2017
226dde7
slb:add omitempty json tag for Rule
Mar 3, 2017
9a0b9ea
Merge pull request #120 from mqliang/master
denverdino Mar 3, 2017
2bac2fa
to #114 Initial support for Container Service
denverdino Mar 3, 2017
8775180
Merge branch 'master' of https://github.com/denverdino/aliyungo
denverdino Mar 3, 2017
53c18be
bug fix slb listener healthchecktimeout: update slb listener that udp…
shuwei-yin Mar 6, 2017
9d8a145
Merge pull request #121 from shuwei-yin/fork-master
menglingwei Mar 6, 2017
8e934ae
add optional business info flags
zhuzhih2017 Mar 6, 2017
b8455c0
add buiness info flags
zhuzhih2017 Mar 6, 2017
51df03c
Merge pull request #122 from zhuzhih2017/master
menglingwei Mar 6, 2017
58679de
Support the basic cluster managment operation
denverdino Mar 8, 2017
043cbe3
Merge branch 'master' into master
menglingwei Mar 8, 2017
50f7549
Merge pull request #123 from menglingwei/master
menglingwei Mar 8, 2017
afe0208
add import image function
zhuzhih2017 Mar 9, 2017
b078561
Merge branch 'master' of https://github.com/denverdino/aliyungo
zhuzhih2017 Mar 9, 2017
cbab35e
Merge pull request #124 from zhuzhih2017/master
menglingwei Mar 9, 2017
ea5f940
remove log
Mar 9, 2017
af90542
Merge pull request #125 from menglingwei/master
menglingwei Mar 9, 2017
07f1acb
add location openapi
Mar 9, 2017
38f0f29
and endpoint file
Mar 9, 2017
c67eb7b
add location openapi
Mar 9, 2017
4daaacb
and endpoint file
Mar 9, 2017
d6fd8e7
Merge branch 'master' of https://github.com/menglingwei/aliyungo
Mar 9, 2017
45d9aa8
支持从配置文件读取endpoint
Mar 9, 2017
a21e158
支持从配置文件读取endpoint
Mar 9, 2017
7d81491
Merge pull request #126 from menglingwei/master
menglingwei Mar 9, 2017
9371598
Add natgateway
shuwei-yin Mar 9, 2017
4102657
Merge pull request #127 from shuwei-yin/feature-natgateway
menglingwei Mar 9, 2017
6569146
init client endpoint by regionId
demonwy Mar 16, 2017
e04ab26
Merge pull request #128 from demonwy/master
menglingwei Mar 16, 2017
b94d0e0
Add cn-zhangjiakou to the region list
denverdino Mar 17, 2017
d2b29b0
Update the circle.yml
denverdino Mar 17, 2017
8cde6e7
Update circle.yml
denverdino Mar 17, 2017
70c9526
Update build status badges
denverdino Mar 17, 2017
44c7d76
Delete slb.test
menglingwei Mar 21, 2017
c301de7
add snat entry and update natgateway to support snat entry
shuwei-yin Mar 21, 2017
67ff5ec
format nat_gateway.go
shuwei-yin Mar 21, 2017
078c1ff
update nat_gateway
shuwei-yin Mar 21, 2017
c4c75af
Merge pull request #129 from shuwei-yin/feature-snat
menglingwei Mar 21, 2017
31318a6
add forward entry
shuwei-yin Mar 22, 2017
31d38cb
Merge pull request #130 from shuwei-yin/feature-forward
menglingwei Mar 22, 2017
6a63f2e
添加消息服务(MNS) ,支持队列单条消息的发送、消费和删除
hb-chen Mar 25, 2017
c7c158d
传错types文件
hb-chen Mar 25, 2017
cb10dfe
client test log fmt
hb-chen Mar 25, 2017
262c2a5
Merge pull request #131 from hobo-go/master
denverdino Mar 25, 2017
916249a
Update contributors
denverdino Mar 30, 2017
a91956a
Update the contributors
denverdino Mar 30, 2017
cc7e09d
add ess related module include scalinggroup, configuration, rule and …
demonwy Mar 30, 2017
a05cae6
set debug to false
demonwy Mar 30, 2017
a9ef4e9
Merge pull request #132 from demonwy/master
denverdino Apr 1, 2017
1dffd99
Add the attribution of vpc and vswitch IsDefault
xiaozhu36 Apr 13, 2017
106f732
Merge pull request #134 from xiaozhu36/master
menglingwei Apr 13, 2017
afcc690
Update endpoints.xml
menglingwei Apr 13, 2017
41092b4
add cms alarm api
Apr 26, 2017
973e861
Merge pull request #136 from menglingwei/master
menglingwei Apr 26, 2017
0260b92
Update alarm_test.go
menglingwei Apr 26, 2017
cac644f
Update
menglingwei Apr 26, 2017
400e4f0
add api DescribeInstanceTypeFamilies
May 11, 2017
6b59618
Merge pull request #137 from menglingwei/master
menglingwei May 11, 2017
79233bb
Delete location.test
menglingwei May 12, 2017
a8d94d2
improve WaitForInstanceAsyn and add WaitForListenerAsyn
May 15, 2017
86861c1
Merge pull request #138 from xiaozhu36/master
menglingwei May 15, 2017
920561a
add ssh keypair support
zhuzhih2017 May 25, 2017
812f275
Merge pull request #142 from zhuzhih2017/master
menglingwei May 25, 2017
7dcce0c
add User-Agent of Header
Jun 8, 2017
73993c9
Merge pull request #144 from xiaozhu36/master
menglingwei Jun 8, 2017
42fd70c
add domain op and domain_group op
Jun 28, 2017
daf418a
add goreport card
tg123 Jun 28, 2017
b080f30
Merge pull request #146 from denverdino/goreport
denverdino Jun 28, 2017
e7b8b73
Fix typo
denverdino Jun 28, 2017
fa50bc0
Fix test case
denverdino Jun 28, 2017
91c696c
Fix the typo
denverdino Jun 28, 2017
f6cab0c
Fix #147, add VServerGroup attr
denverdino Jun 29, 2017
90e190d
ecs describe api add WithRow func
Jul 4, 2017
739b83b
add DescribeZonesWithRaw
Jul 4, 2017
40a2edf
Merge pull request #150 from yyzi/master
menglingwei Jul 5, 2017
6ff303f
add test case and bugfix
Jul 5, 2017
e2956ad
新增域名管理接口
Jul 5, 2017
1e79f7c
Merge branch 'master' of github.com:yu-fish/aliyungo
Jul 5, 2017
16d3646
add AvailableResources of DescribeZones response
xiaozhu36 Jul 5, 2017
f6b66dd
Merge pull request #152 from xiaozhu36/master
menglingwei Jul 5, 2017
85b449a
Merge pull request #151 from yu-fish/master
menglingwei Jul 5, 2017
c3fb7b1
Revert "dns:新增域名管理接口、域名分组接口 ,type RecordType中ttl、priority类型修改"
menglingwei Jul 5, 2017
72b1de2
Merge pull request #153 from denverdino/revert-151-master
menglingwei Jul 5, 2017
f77de8a
modify avaliableResourceType map key to SupportedResourceType
xiaozhu36 Jul 6, 2017
c72bd74
Merge pull request #154 from xiaozhu36/master
denverdino Jul 6, 2017
441df9b
add DescribeDomainRecordInfomation and change RecordType back
Jul 7, 2017
cd2ced0
Merge branch 'master' of github.com:denverdino/aliyungo
Jul 11, 2017
2279b4e
interface for domain manage, domain group manage, domain record mange.
Jul 11, 2017
ddf6624
rename file and func
Jul 11, 2017
d89db74
Merge pull request #157 from yu-fish/master
menglingwei Jul 11, 2017
8e07ed7
add some parameters for request and response
xiaozhu36 Jul 12, 2017
2470341
add the interface of getting zone-id from metadata
Jul 12, 2017
ea5b2bf
Merge pull request #158 from xiaozhu36/master
menglingwei Jul 13, 2017
6e78c4a
Merge pull request #160 from hippper/master
menglingwei Jul 13, 2017
10b4118
add keypairname for instance attribute
xiaozhu36 Jul 18, 2017
26fc5b6
Merge pull request #161 from xiaozhu36/master
denverdino Jul 18, 2017
0f5532d
complete all interface and fixbug with new func.
Jul 20, 2017
60c187f
Merge pull request #162 from yu-fish/master
menglingwei Jul 20, 2017
e0a75f8
add keyname for CreateInstanceArgs
xiaozhu36 Jul 21, 2017
80ceb80
Merge pull request #163 from xiaozhu36/master
menglingwei Jul 21, 2017
c8fac7f
add function to reset rds account password
xiaozhu36 Aug 2, 2017
b8a81c0
Merge pull request #166 from xiaozhu36/master
menglingwei Aug 2, 2017
9b3c478
dns:change req and resp args for DescribeDomains and DescribeDomainGr…
Aug 3, 2017
ccf245e
Merge pull request #168 from yu-fish/master
menglingwei Aug 3, 2017
dd3bb50
improve containers cluster and add function to reset cluster size
xiaozhu36 Aug 7, 2017
9b2b42b
Merge pull request #169 from xiaozhu36/master
denverdino Aug 7, 2017
d449457
add interface for domain, domain config, refresh, cdn service.
Aug 8, 2017
fe3c5e1
Merge pull request #170 from yu-fish/master
menglingwei Aug 8, 2017
4b51519
add interface for instance ram role.
Aug 15, 2017
502426b
Merge pull request #171 from yu-fish/master
menglingwei Aug 15, 2017
24e6e51
add const paramter for policy type.
Aug 18, 2017
4503d21
Merge pull request #173 from yu-fish/master
menglingwei Aug 18, 2017
24fe4db
add AttachInstances and RemoveInstances for scaling group.
Aug 25, 2017
1590987
Merge pull request #174 from yu-fish/master
menglingwei Aug 25, 2017
9dd5ee1
add DeactivateScalingConfiguration
Aug 25, 2017
9e182bd
Merge pull request #175 from yu-fish/master
menglingwei Aug 25, 2017
9591e51
Merge pull request #2 from denverdino/master
yarous224 Aug 29, 2017
cf62908
Added DYSms API & Updated PUSH API
yarous224 Aug 29, 2017
dd677a7
Added DYSms API
yarous224 Aug 29, 2017
17c0ead
Fix authenticate Bug
yarous224 Aug 29, 2017
0a8e764
Merge pull request #179 from yarous224/master
denverdino Aug 29, 2017
28626bf
add RamRoleName for CreateInstanceArgs.
Aug 30, 2017
8c15fc0
Merge pull request #180 from yu-fish/master
menglingwei Aug 30, 2017
f8354c3
add interface for router interface.
Aug 31, 2017
ec7d0f3
Merge pull request #181 from yu-fish/master
menglingwei Aug 31, 2017
4438cf3
fix bug of ModifyInstanceNetworkSpec
xiaozhu36 Sep 4, 2017
2c581bc
Merge pull request #182 from xiaozhu36/master
menglingwei Sep 4, 2017
40a5bd2
modify TTL type to float64 because of API response type is Long
xiaozhu36 Sep 11, 2017
8655787
Merge pull request #183 from xiaozhu36/master
menglingwei Sep 11, 2017
50ff0ee
Update instances.go
xuxueyun Sep 20, 2017
6d9ec0c
Update monitoring.go
xuxueyun Sep 20, 2017
12d2b6a
modify cdn source type OSS to oss
xiaozhu36 Sep 22, 2017
936059a
Merge pull request #186 from xiaozhu36/master
menglingwei Sep 22, 2017
82666f3
add container service project api sdk
Sep 26, 2017
8920242
Merge pull request #187 from xujinzheng/master
denverdino Sep 26, 2017
5070a78
Add Encrypted field to CreateDiskArgs
Sep 26, 2017
d330864
Merge pull request #188 from pragkent/ecs-disk-encrypt
denverdino Sep 26, 2017
eb8b3ec
improve cs.Service struct's container info
Sep 28, 2017
cdd67c8
update readme for adding cdn doc
dinos80152 Sep 29, 2017
161bed1
update readme for adding mns doc
dinos80152 Sep 29, 2017
aafb028
update readme for adding ess doc
dinos80152 Sep 29, 2017
0052b45
fix markdown lint
dinos80152 Sep 29, 2017
cfe53e9
update readme for resorting package
dinos80152 Sep 29, 2017
6b59f30
update contributors
dinos80152 Sep 29, 2017
a8016f9
Merge pull request #191 from dinos80152/master
denverdino Sep 30, 2017
6039a9f
replace CreateOrder to CreateDBInstance
Sep 30, 2017
b18b751
Merge pull request #184 from linux-mac/master
denverdino Sep 30, 2017
ac4b56a
add CreateOrder back
Oct 1, 2017
7489590
Merge pull request #190 from xujinzheng/master
denverdino Oct 2, 2017
48a5698
add nexthop type RouterInterface
xiaozhu36 Oct 16, 2017
199fa37
Merge pull request #192 from xiaozhu36/master
denverdino Oct 16, 2017
4832fbc
add ExecuteScalingRule ESS API
Crazykev Aug 30, 2017
e52f99f
Merge pull request #194 from Crazykev/ess
denverdino Oct 26, 2017
90b2a22
use coressponding variable in RemoveInstances API
Crazykev Oct 27, 2017
93005eb
Merge pull request #195 from Crazykev/remove
denverdino Oct 27, 2017
8ad6660
make MaxSize/MinSize int pointer to distinguish zero value from unset
Crazykev Nov 1, 2017
f2b3a8b
Merge pull request #196 from Crazykev/int-ptr
denverdino Nov 1, 2017
268cd21
improve ess configuration
xiaozhu36 Nov 8, 2017
0582613
Merge pull request #197 from xiaozhu36/master
menglingwei Nov 8, 2017
c9328a5
add ResizeDisk method
ailan-gl Nov 9, 2017
d34931d
Merge pull request #199 from ailan-gl/resize_disk
menglingwei Nov 9, 2017
3cf4e39
Add Ap-Southeast-3 (Malaysia)
oddsocksio Nov 14, 2017
bb96a43
add tags for ess configuration
xiaozhu36 Nov 15, 2017
0a60760
Merge pull request #200 from oddsocksio/Ap-SouthEast-3
denverdino Nov 15, 2017
6022644
Merge pull request #201 from xiaozhu36/master
denverdino Nov 15, 2017
dcf894c
add SpotPriceLimit property to ECS instance attribute
demonwy Nov 21, 2017
ad01ac2
Merge pull request #203 from demonwy/ecs_spot
denverdino Nov 21, 2017
ad8b1e6
Support to create Clients from credentials of assumed role (#205)
Nov 27, 2017
cb2da2e
Add environment TLSHandshakeTimeout to override the default TLSHandsh…
zhuzhih Nov 27, 2017
948d3d7
Add NewClientWithSecurityToken for cms,rds,sls,oss,cdn,slb
jancco Nov 29, 2017
96771f9
Add NewClientWithSecurityToken for dm,cs,crm,sms,nas,mns,dns,ess,open…
jancco Dec 5, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.idea
12 changes: 12 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
language: go

go:
- 1.7.4

# let us have speedy Docker-based Travis workers
sudo: false

script:
- go get ./...
- go vet ./...
- go build ./...
120 changes: 82 additions & 38 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,40 @@
# AliyunGo: Go SDK for Aliyun Services

This is an unofficial Go SDK for Aliyun Services. You are welcome for contribution.
[![Build Status](https://travis-ci.org/denverdino/aliyungo.svg?branch=master)](https://travis-ci.org/denverdino/aliyungo) [![CircleCI](https://circleci.com/gh/denverdino/aliyungo.svg?style=svg)](https://circleci.com/gh/denverdino/aliyungo) [![Go Report Card](https://goreportcard.com/badge/github.com/denverdino/aliyungo)](https://goreportcard.com/report/github.com/denverdino/aliyungo)

This is an unofficial Go SDK for Aliyun Services. You are welcome for contribution.

## Package Structure

* ecs: [Elastic Compute Service](https://help.aliyun.com/document_detail/ecs/open-api/summary.html)
* oss: [Open Storage Service](https://help.aliyun.com/document_detail/oss/api-reference/abstract.html)
* slb: [Server Load Balancer](https://help.aliyun.com/document_detail/slb/api-reference/brief-introduction.html)
* dns: [DNS](https://help.aliyun.com/document_detail/dns/api-reference/summary.html)
* sls: [Logging Service](https://help.aliyun.com/document_detail/sls/api/overview.html)
* ram: [Resource Access Management](https://help.aliyun.com/document_detail/ram/ram-api-reference/intro/intro.html)
* rds: [Relational Database Service](https://help.aliyun.com/document_detail/26226.html)
* common: Common libary of Aliyun Go SDK
* util: Utility helpers


* cdn: [Content Delivery Network](https://help.aliyun.com/document_detail/27101.html)
* cms: [Cloud Monitor Service](https://help.aliyun.com/document_detail/28615.html)
* cs: [Container Service](https://help.aliyun.com/product/25972.html)
* dm: [Direct Mail](https://help.aliyun.com/document_detail/29414.html)
* dns: [DNS](https://help.aliyun.com/document_detail/dns/api-reference/summary.html)
* ecs: [Elastic Compute Service](https://help.aliyun.com/document_detail/ecs/open-api/summary.html)
* ess: [Auto Scaling](https://help.aliyun.com/document_detail/25857.html)
* mns: [Message Service](https://help.aliyun.com/document_detail/27414.html)
* mq: [Message Queue](https://help.aliyun.com/document_detail/29532.html)
* nas: [Network Attached Storage](https://help.aliyun.com/document_detail/27518.html)
* opensearch: [OpenSearch](https://help.aliyun.com/document_detail/29118.html)
* oss: [Open Storage Service](https://help.aliyun.com/document_detail/oss/api-reference/abstract.html)
* push: [Cloud Mobile Push](https://help.aliyun.com/document_detail/30049.html)
* rds: [Relational Database Service](https://help.aliyun.com/document_detail/26226.html)
* ram: [Resource Access Management](https://help.aliyun.com/document_detail/ram/ram-api-reference/intro/intro.html)
* slb: [Server Load Balancer](https://help.aliyun.com/document_detail/slb/api-reference/brief-introduction.html)
* sls: [Logging Service](https://help.aliyun.com/document_detail/sls/api/overview.html)
* sms: [Short Message Service](https://help.aliyun.com/product/44282.html)
* sts: [Security Token Service](https://help.aliyun.com/document_detail/28756.html)
* common: Common libary of Aliyun Go SDK
* util: Utility helpers

## Quick Start

```go
package main

import (
"fmt"
"fmt"

"github.com/denverdino/aliyungo/ecs"
)
Expand All @@ -40,13 +51,25 @@ func main() {

## Documentation

* ECS: [https://godoc.org/github.com/denverdino/aliyungo/ecs](https://godoc.org/github.com/denverdino/aliyungo/ecs) [![GoDoc](https://godoc.org/github.com/denverdino/aliyungo/ecs?status.svg)](https://godoc.org/github.com/denverdino/aliyungo/ecs)
* OSS: [https://godoc.org/github.com/denverdino/aliyungo/oss](https://godoc.org/github.com/denverdino/aliyungo/oss) [![GoDoc](https://godoc.org/github.com/denverdino/aliyungo/oss?status.svg)](https://godoc.org/github.com/denverdino/aliyungo/oss)
* SLB: [https://godoc.org/github.com/denverdino/aliyungo/slb](https://godoc.org/github.com/denverdino/aliyungo/slb) [![GoDoc](https://godoc.org/github.com/denverdino/aliyungo/slb?status.svg)](https://godoc.org/github.com/denverdino/aliyungo/slb)
* DNS: [https://godoc.org/github.com/denverdino/aliyungo/dns](https://godoc.org/github.com/denverdino/aliyungo/dns) [![GoDoc](https://godoc.org/github.com/denverdino/aliyungo/dns?status.svg)](https://godoc.org/github.com/denverdino/aliyungo/dns)
* SLS: [https://godoc.org/github.com/denverdino/aliyungo/sls](https://godoc.org/github.com/denverdino/aliyungo/sls) [![GoDoc](https://godoc.org/github.com/denverdino/aliyungo/sls?status.svg)](https://godoc.org/github.com/denverdino/aliyungo/sls)
* RAM: [https://godoc.org/github.com/denverdino/aliyungo/ram](https://godoc.org/github.com/denverdino/aliyungo/ram) [![GoDoc](https://godoc.org/github.com/denverdino/aliyungo/ram?status.svg)](https://godoc.org/github.com/denverdino/aliyungo/ram)
* RDS: [https://godoc.org/github.com/denverdino/aliyungo/rds](https://godoc.org/github.com/denverdino/aliyungo/rds) [![GoDoc](https://godoc.org/github.com/denverdino/aliyungo/rds?status.svg)](https://godoc.org/github.com/denverdino/aliyungo/rds)
* CDN: [https://godoc.org/github.com/denverdino/aliyungo/cdn](https://godoc.org/github.com/denverdino/aliyungo/cdn)[![GoDoc](https://godoc.org/github.com/denverdino/aliyungo/cdn?status.svg)](https://godoc.org/github.com/denverdino/aliyungo/cdn)
* CMS: [https://godoc.org/github.com/denverdino/aliyungo/cms](https://godoc.org/github.com/denverdino/aliyungo/cms) [![GoDoc](https://godoc.org/github.com/denverdino/aliyungo/cms?status.svg)](https://godoc.org/github.com/denverdino/aliyungo/cms)
* CS: [https://godoc.org/github.com/denverdino/aliyungo/cs](https://godoc.org/github.com/denverdino/aliyungo/cs) [![GoDoc](https://godoc.org/github.com/denverdino/aliyungo/cs?status.svg)](https://godoc.org/github.com/denverdino/aliyungo/cs)
* DM: [https://godoc.org/github.com/denverdino/aliyungo/dm](https://godoc.org/github.com/denverdino/aliyungo/dm) [![GoDoc](https://godoc.org/github.com/denverdino/aliyungo/dm?status.svg)](https://godoc.org/github.com/denverdino/aliyungo/dm)
* DNS: [https://godoc.org/github.com/denverdino/aliyungo/dns](https://godoc.org/github.com/denverdino/aliyungo/dns) [![GoDoc](https://godoc.org/github.com/denverdino/aliyungo/dns?status.svg)](https://godoc.org/github.com/denverdino/aliyungo/dns)
* ECS: [https://godoc.org/github.com/denverdino/aliyungo/ecs](https://godoc.org/github.com/denverdino/aliyungo/ecs) [![GoDoc](https://godoc.org/github.com/denverdino/aliyungo/ecs?status.svg)](https://godoc.org/github.com/denverdino/aliyungo/ecs)
* ESS: [https://godoc.org/github.com/denverdino/aliyungo/ess](https://godoc.org/github.com/denverdino/aliyungo/ess)[![GoDoc](https://godoc.org/github.com/denverdino/aliyungo/ess?status.svg)](https://godoc.org/github.com/denverdino/aliyungo/ess)
* MNS: [https://godoc.org/github.com/denverdino/aliyungo/mns](https://godoc.org/github.com/denverdino/aliyungo/mns)[![GoDoc](https://godoc.org/github.com/denverdino/aliyungo/mns?status.svg)](https://godoc.org/github.com/denverdino/aliyungo/mns)
* MQ: [https://godoc.org/github.com/denverdino/aliyungo/mq](https://godoc.org/github.com/denverdino/aliyungo/mq) [![GoDoc](https://godoc.org/github.com/denverdino/aliyungo/mq?status.svg)](https://godoc.org/github.com/denverdino/aliyungo/mq)
* NAS: [https://godoc.org/github.com/denverdino/aliyungo/nas](https://godoc.org/github.com/denverdino/aliyungo/nas) [![GoDoc](https://godoc.org/github.com/denverdino/aliyungo/nas?status.svg)](https://godoc.org/github.com/denverdino/aliyungo/nas)
* OPENSEARCH: [https://godoc.org/github.com/denverdino/aliyungo/opensearch](https://godoc.org/github.com/denverdino/aliyungo/opensearch) [![GoDoc](https://godoc.org/github.com/denverdino/aliyungo/opensearch?status.svg)](https://godoc.org/github.com/denverdino/aliyungo/opensearch)
* OSS: [https://godoc.org/github.com/denverdino/aliyungo/oss](https://godoc.org/github.com/denverdino/aliyungo/oss) [![GoDoc](https://godoc.org/github.com/denverdino/aliyungo/oss?status.svg)](https://godoc.org/github.com/denverdino/aliyungo/oss)
* PUSH: [https://godoc.org/github.com/denverdino/aliyungo/push](https://godoc.org/github.com/denverdino/aliyungo/push) [![GoDoc](https://godoc.org/github.com/denverdino/aliyungo/push?status.svg)](https://godoc.org/github.com/denverdino/aliyungo/push)
* RAM: [https://godoc.org/github.com/denverdino/aliyungo/ram](https://godoc.org/github.com/denverdino/aliyungo/ram) [![GoDoc](https://godoc.org/github.com/denverdino/aliyungo/ram?status.svg)](https://godoc.org/github.com/denverdino/aliyungo/ram)
* RDS: [https://godoc.org/github.com/denverdino/aliyungo/rds](https://godoc.org/github.com/denverdino/aliyungo/rds) [![GoDoc](https://godoc.org/github.com/denverdino/aliyungo/rds?status.svg)](https://godoc.org/github.com/denverdino/aliyungo/rds)
* SLB: [https://godoc.org/github.com/denverdino/aliyungo/slb](https://godoc.org/github.com/denverdino/aliyungo/slb) [![GoDoc](https://godoc.org/github.com/denverdino/aliyungo/slb?status.svg)](https://godoc.org/github.com/denverdino/aliyungo/slb)
* SLS: [https://godoc.org/github.com/denverdino/aliyungo/sls](https://godoc.org/github.com/denverdino/aliyungo/sls) [![GoDoc](https://godoc.org/github.com/denverdino/aliyungo/sls?status.svg)](https://godoc.org/github.com/denverdino/aliyungo/sls)
* SMS: [https://godoc.org/github.com/denverdino/aliyungo/sms](https://godoc.org/github.com/denverdino/aliyungo/sms) [![GoDoc](https://godoc.org/github.com/denverdino/aliyungo/sms?status.svg)](https://godoc.org/github.com/denverdino/aliyungo/sms)
* STS: [https://godoc.org/github.com/denverdino/aliyungo/sts](https://godoc.org/github.com/denverdino/aliyungo/sts) [![GoDoc](https://godoc.org/github.com/denverdino/aliyungo/sts?status.svg)](https://godoc.org/github.com/denverdino/aliyungo/sts)

## Build and Install

Expand All @@ -56,10 +79,9 @@ go get:
go get github.com/denverdino/aliyungo
```


## Test ECS

Modify "ecs/config_test.go"
Modify "ecs/config_test.go"

```sh
TestAccessKeyId = "MY_ACCESS_KEY_ID"
Expand All @@ -68,10 +90,10 @@ Modify "ecs/config_test.go"
TestIAmRich = false
```

* TestAccessKeyId: the Access Key Id
* TestAccessKeySecret: the Access Key Secret.
* TestInstanceId: the existing instance id for testing. It will be stopped and restarted during testing.
* TestIAmRich(Optional): If it is set to true, it will perform tests to create virtual machines and disks under your account. And you will pay the bill. :-)
* TestAccessKeyId: the Access Key Id
* TestAccessKeySecret: the Access Key Secret.
* TestInstanceId: the existing instance id for testing. It will be stopped and restarted during testing.
* TestIAmRich(Optional): If it is set to true, it will perform tests to create virtual machines and disks under your account. And you will pay the bill. :-)

Under "ecs" and run

Expand All @@ -81,7 +103,7 @@ go test

## Test OSS

Modify "oss/config_test.go"
Modify "oss/config_test.go"

```sh
TestAccessKeyId = "MY_ACCESS_KEY_ID"
Expand All @@ -90,11 +112,10 @@ Modify "oss/config_test.go"
TestBucket = "denverdino"
```

* TestAccessKeyId: the Access Key Id
* TestAccessKeySecret: the Access Key Secret.
* TestRegion: the region of OSS for testing
* TestBucket: the bucket name for testing

* TestAccessKeyId: the Access Key Id
* TestAccessKeySecret: the Access Key Secret.
* TestRegion: the region of OSS for testing
* TestBucket: the bucket name for testing

Under "oss" and run

Expand All @@ -105,31 +126,54 @@ go test
## Contributors

* Li Yi ([email protected])
* tgic ([email protected])
* Boshi Lian ([email protected])
* Yu Zhou ([email protected])
* Yufei Zhang
* linuxlikerqq
* Changhai Yan ([email protected])
* Changhai Yan
* Jizhong Jiang ([email protected])
* Kent Wang ([email protected])
* ringtail ([email protected])
* ringtail
* aiden0z ([email protected])
* jimmycmh
* menglingwei
* mingang.he ([email protected])
* Young Chen ([email protected])
* johnzeng
* spacexnice ([email protected])
* xiaoheihero
* hmgle ([email protected])
* jzwlqx ([email protected])
* Linhua Tan ([email protected])
* Plutonist ([email protected])
* Bin Liu
* wangyue
* demonwy
* yarous224
* yufeizyf ([email protected])
* keontang ([email protected])
* Cholerae Hu ([email protected])
* Zach Bergh ([email protected])
* Bingshen Wang
* xiaozhu36
* Russell ([email protected])
* zhuzhih2017
* cheyang
* Hobo Chen
* Shuwei Yin
* Xujin Zheng ([email protected])
* Dino Lai ([email protected])


## License
This project is licensed under the Apache License, Version 2.0. See [LICENSE](https://github.com/denverdino/aliyungo/blob/master/LICENSE.txt) for the full license text.

This project is licensed under the Apache License, Version 2.0. See [LICENSE](https://github.com/denverdino/aliyungo/blob/master/LICENSE.txt) for the full license text.

## Related projects

* Aliyun ECS driver for Docker Machine: [Pull request](https://github.com/docker/machine/pull/1182)

* Aliyun OSS driver for Docker Registry V2: [Pull request](https://github.com/docker/distribution/pull/514)


## References

The GO API design of OSS refer the implementation from [https://github.com/AdRoll/goamz](https://github.com/AdRoll)
49 changes: 49 additions & 0 deletions cdn/client.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
package cdn

import (
"os"

"github.com/denverdino/aliyungo/common"
)

const (
// CDNDefaultEndpoint is the default API endpoint of CDN services
CDNDefaultEndpoint = "https://cdn.aliyuncs.com"
CDNAPIVersion = "2014-11-11"
CDNServiceCode = "cdn"
)

type CdnClient struct {
common.Client
}

func NewClient(accessKeyId string, accessKeySecret string) *CdnClient {
return NewClientWithSecurityToken(accessKeyId, accessKeySecret, "")
}

func NewClientWithSecurityToken(accessKeyId, accessKeySecret, securityToken string) *CdnClient {
endpoint := os.Getenv("CDN_ENDPOINT")
if endpoint == "" {
endpoint = CDNDefaultEndpoint
}

return NewClientWithEndpointAndSecurityToken(endpoint, accessKeyId, accessKeySecret, securityToken)
}

func NewClientWithEndpoint(endpoint string, accessKeyId string, accessKeySecret string) *CdnClient {
client := &CdnClient{}
client.Init(endpoint, CDNAPIVersion, accessKeyId, accessKeySecret)
return client
}

func NewClientWithEndpointAndSecurityToken(endpoint, accessKeyId, accessKeySecret, securityToken string) *CdnClient {
client := &CdnClient{}
client.WithEndpoint(endpoint).
WithVersion(CDNAPIVersion).
WithAccessKeyId(accessKeyId).
WithAccessKeySecret(accessKeySecret).
WithSecurityToken(securityToken).
WithServiceCode(CDNServiceCode).
InitClient()
return client
}
20 changes: 20 additions & 0 deletions cdn/client_test.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package cdn

import (
"os"
)

/*
Set your AccessKeyId and AccessKeySecret in env
simply use the command below
AccessKeyId=YourAccessKeyId AccessKeySecret=YourAccessKeySecret go test
*/
var (
AccessKeyId = os.Getenv("AccessKeyId")
AccessKeySecret = os.Getenv("AccessKeySecret")
)

func NewTestClient() *CdnClient {
client := NewClient(AccessKeyId, AccessKeySecret)
return client
}
Loading