Categorygithub.com/practigo/aliyun
repositorypackage
0.0.6
Repository: https://github.com/practigo/aliyun.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# README

Go SDK for Aliyun

GoDoc Go Report Card

This is not a typical SDK as it won't try to provide all APIs.

For the complete APIs see the official https://github.com/aliyun/alibaba-cloud-sdk-go.

Products & APIs

STS

  • AssumeRole
  • Cache

MTS

  • Transcode-Job

Live

  • Record create & decribe

Other repo: https://github.com/BPing/aliyun-live-go-sdk

OSS

https://github.com/aliyun/aliyun-oss-go-sdk is good enough.

MNS

  • Different Restful APIs and authorization
  • Queue & Messages

ACM

  • Get/listen config

Usage

The typical usage is:

s := aliyun.NewSigner("id", "secret")
api := YourImplementedAPI{}
var resp APIResponseType

// just use Get for most APIs
err := aliyun.Get(&http.Client{}, s, api, "host", &resp)

// which equals to
f := json.Unmarshal // or xml.Unmarshal if you API use XML
url := "host" + ? + s.Sign(api)
rawResponse, err := http.Get(url) // http level error if any
err = HandleResp(rawResponse, f, &resp) // return a CanonicalizedError if any

License

MIT