Tom Denham fbf578f0df vendor: Revendor with more sensible pinnings il y a 8 ans
..
cms fbf578f0df vendor: Revendor with more sensible pinnings il y a 8 ans
common fbf578f0df vendor: Revendor with more sensible pinnings il y a 8 ans
crm fbf578f0df vendor: Revendor with more sensible pinnings il y a 8 ans
dm fbf578f0df vendor: Revendor with more sensible pinnings il y a 8 ans
dns fbf578f0df vendor: Revendor with more sensible pinnings il y a 8 ans
ecs fbf578f0df vendor: Revendor with more sensible pinnings il y a 8 ans
metadata a186abb7ce Add ali cloud VPC network support il y a 8 ans
mq fbf578f0df vendor: Revendor with more sensible pinnings il y a 8 ans
oss fbf578f0df vendor: Revendor with more sensible pinnings il y a 8 ans
push fbf578f0df vendor: Revendor with more sensible pinnings il y a 8 ans
ram fbf578f0df vendor: Revendor with more sensible pinnings il y a 8 ans
rds fbf578f0df vendor: Revendor with more sensible pinnings il y a 8 ans
slb fbf578f0df vendor: Revendor with more sensible pinnings il y a 8 ans
sls fbf578f0df vendor: Revendor with more sensible pinnings il y a 8 ans
sms fbf578f0df vendor: Revendor with more sensible pinnings il y a 8 ans
sts fbf578f0df vendor: Revendor with more sensible pinnings il y a 8 ans
util a186abb7ce Add ali cloud VPC network support il y a 8 ans
.travis.yml fbf578f0df vendor: Revendor with more sensible pinnings il y a 8 ans
LICENSE.txt a186abb7ce Add ali cloud VPC network support il y a 8 ans
README.md fbf578f0df vendor: Revendor with more sensible pinnings il y a 8 ans

README.md

AliyunGo: Go SDK for Aliyun Services

Build Status

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

Package Structure

Quick Start

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())
}

Documentation

Build and Install

go get:

go get github.com/denverdino/aliyungo

Test ECS

Modify "ecs/config_test.go"

	TestAccessKeyId     = "MY_ACCESS_KEY_ID"
	TestAccessKeySecret = "MY_ACCESS_KEY_ID"
	TestInstanceId      = "MY_INSTANCE_ID"
	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. :-)

Under "ecs" and run

go test

Test OSS

Modify "oss/config_test.go"

	TestAccessKeyId     = "MY_ACCESS_KEY_ID"
	TestAccessKeySecret = "MY_ACCESS_KEY_ID"
	TestRegion          = oss.Beijing
	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

Under "oss" and run

go test

Contributors

  • Li Yi (denverdino@gmail.com)
  • tgic (farmer1992@gmail.com)
  • Yu Zhou (oscarrr110@gmail.com)
  • Yufei Zhang
  • linuxlikerqq
  • Changhai Yan (changhai.ych@alibaba-inc.com)
  • Jizhong Jiang (jiangjizhong@gmail.com)
  • Kent Wang (pragkent@gmail.com)
  • ringtail (zhongwei.lzw@alibaba-inc.com)
  • aiden0z (aiden0xz@gmail.com)
  • jimmycmh
  • menglingwei
  • mingang.he (dustgle@gmail.com)
  • Young Chen (chainone@gmail.com)
  • johnzeng
  • spacexnice (445436286@qq.com)
  • xiaoheihero
  • hmgle (dustgle@gmail.com)
  • jzwlqx (jiangjizhong@gmail.com)
  • Linhua Tan (toolchainX@gmail.com)
  • Plutonist (p@vecsight.com)
  • Bin Liu
  • wangyue

License

This project is licensed under the Apache License, Version 2.0. See LICENSE for the full license text.

Related projects

References

The GO API design of OSS refer the implementation from https://github.com/AdRoll/goamz