• Stars
    star
    843
  • Rank 54,052 (Top 2 %)
  • Language
    Go
  • License
    Apache License 2.0
  • Created over 9 years ago
  • Updated 11 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Go SDK for Aliyun (Alibaba Cloud) - Golang API for ECS, OSS, DNS, SLB, RDS, RAM, MNS, STS, SLS, MQ, Push, OpenSearch, DM, Container Service etc.

AliyunGo: Go SDK for Aliyun Services

Build Status CircleCI Go Report Card

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

The official SDK for Aliyun services is published. Please visit https://github.com/aliyun/alibaba-cloud-sdk-go for details

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

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

More Repositories

1

lxcfs-admission-webhook

Go
154
star
2

slides-downloader

Download slides for KubeCon, etc.
Shell
84
star
3

lxcfs-initializer

Kubernetes Initializer example to support LXCFS - https://yq.aliyun.com/articles/566208
Go
51
star
4

face_recognition_pi

Face Recognition Docker Images for Raspberry Pi - https://yq.aliyun.com/articles/346459
Python
37
star
5

wasm-container-samples

C
30
star
6

docker-tomcat-autoheap

Docker Image for Tomcat which sets heap size automatically
Shell
29
star
7

docker-storm

Apache Storm in Docker
Shell
24
star
8

docker-selenium

Docker image for Selenium
Shell
21
star
9

docker-swarm-mode-vagrant

Vagrant for Docker swarm mode introduced from 1.12
Shell
21
star
10

tensorflow-docker

Jupyter Notebook
15
star
11

system-info

This is sample project to display the CPU/Memory resources for JVM of Tomcat - https://yq.aliyun.com/articles/562440
Java
12
star
12

google-containers

Shell
11
star
13

docker-serverless-sample

A simple sample for using Docker for Serverless style application in Aliyun Container Service
Python
9
star
14

docker-swarm-vagrant

This project is deprecated. Please check https://github.com/denverdino/docker-swarm-mode-vagrant for the new project for Docker Swarm Mode
Shell
8
star
15

docker-sync-repo

Synchronize repos from Docker Hub to local registry
Python
8
star
16

knative-wagi

Dockerfile
7
star
17

docker-spring-boot-sample-session-redis

Docker Sample for Spring Boot application with Redis session store
Java
7
star
18

aliyun-mock-metadata

Mock Alibaba Cloud ECS instance metadata service that can run on a developer machine
Go
5
star
19

ossfs-image

Docker Image for OSSFS based on Alpine Linux
Dockerfile
5
star
20

aliyun-docker

Docker images for Aliyun
5
star
21

docker-registry-console

JavaScript
5
star
22

trace-runner-for-docker-desktop

Dockerfile
4
star
23

distribution-experiment

Go
3
star
24

ask-action-demo

HTML
2
star
25

langchain-test

Python
2
star
26

actions-test

Dockerfile
2
star
27

BaiduLocationPlugin

Java
2
star
28

machine-1

Go
1
star
29

hello-github-actions

Dockerfile
1
star
30

distribution-fuse

Go
1
star
31

act-base

Base image for local development for Github Actions
Dockerfile
1
star
32

replaceFonts

Replace fonts in PPT
VBA
1
star
33

chatgpt-sample

CSS
1
star
34

qperf-docker

Docker Image of qperf
1
star
35

secure-supply-chain-sample

Go
1
star
36

pod-validatingwebhook

Makefile
1
star
37

swarm-1

Go
1
star