![]() |
há 8 anos atrás | |
---|---|---|
.. | ||
cms | há 8 anos atrás | |
common | há 8 anos atrás | |
crm | há 8 anos atrás | |
dm | há 8 anos atrás | |
dns | há 8 anos atrás | |
ecs | há 8 anos atrás | |
metadata | há 8 anos atrás | |
mq | há 8 anos atrás | |
oss | há 8 anos atrás | |
push | há 8 anos atrás | |
ram | há 8 anos atrás | |
rds | há 8 anos atrás | |
slb | há 8 anos atrás | |
sls | há 8 anos atrás | |
sms | há 8 anos atrás | |
sts | há 8 anos atrás | |
util | há 8 anos atrás | |
.travis.yml | há 8 anos atrás | |
LICENSE.txt | há 8 anos atrás | |
README.md | há 8 anos atrás |
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