![]() |
il y a 8 ans | |
---|---|---|
.. | ||
cms | il y a 8 ans | |
common | il y a 8 ans | |
crm | il y a 8 ans | |
dm | il y a 8 ans | |
dns | il y a 8 ans | |
ecs | il y a 8 ans | |
metadata | il y a 8 ans | |
mq | il y a 8 ans | |
oss | il y a 8 ans | |
push | il y a 8 ans | |
ram | il y a 8 ans | |
rds | il y a 8 ans | |
slb | il y a 8 ans | |
sls | il y a 8 ans | |
sms | il y a 8 ans | |
sts | il y a 8 ans | |
util | il y a 8 ans | |
.travis.yml | il y a 8 ans | |
LICENSE.txt | il y a 8 ans | |
README.md | il y a 8 ans |
This is an unofficial Go SDK for Aliyun Services. You are welcome for contribution.
package main
import (
"fmt"
"github.com/denverdino/aliyungo/ecs"
)
const ACCESS_KEY_ID = "<YOUR_ID>"
const ACCESS_KEY_SECRET = "<****>"
func main() {
client := ecs.NewClient(ACCESS_KEY_ID, ACCESS_KEY_SECRET)
fmt.Print(client.DescribeRegions())
}
go get:
go get github.com/denverdino/aliyungo
Modify "ecs/config_test.go"
TestAccessKeyId = "MY_ACCESS_KEY_ID"
TestAccessKeySecret = "MY_ACCESS_KEY_ID"
TestInstanceId = "MY_INSTANCE_ID"
TestIAmRich = false
Under "ecs" and run
go test
Modify "oss/config_test.go"
TestAccessKeyId = "MY_ACCESS_KEY_ID"
TestAccessKeySecret = "MY_ACCESS_KEY_ID"
TestRegion = oss.Beijing
TestBucket = "denverdino"
Under "oss" and run
go test
This project is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.
Aliyun ECS driver for Docker Machine: Pull request
Aliyun OSS driver for Docker Registry V2: Pull request
The GO API design of OSS refer the implementation from https://github.com/AdRoll/goamz