The Project is Datahub Golang SDK.
To use the SDK, you’ll need Go setup up on your computer. If you’re not familiar with Go and want to spend a little extra time learning, you can take the Go tour to get started!
- go(>=1.7)
- github.com/Sirupsen/logrus
-
Install the Go Tools
-
Install Datahub Go SDK
$ go get github.com/Sirupsen/logrus
$ go get -u -insecure github.com/aliyun/aliyun-datahub-sdk-go/datahub
-
Run Tests
-
Modify examples/examples.go and config your accessid, accesskey, endpoint, such as:
accessid := "**your access id**" accesskey := "**your access key**" endpoint := "**the datahub server endpoint**" project_name := "**your project name**"
-
Build and Run Tests
$ go install github.com/aliyun/aliyun-datahub-sdk-go/examples/datahubcmd $ $GOPATH/bin/examples
-
For a development install, clone the repository and then install from source:
git clone http://github.com/aliyun/aliyun-datahub-sdk-go.git
Licensed under the Apache License 2.0