/go-niftycloud

Unofficial NIFTY Cloud SDK for Golang

Primary LanguageGoOtherNOASSERTION

go-niftycloud

Build Status GoDoc

CAUTION: EXPERIMENTAL CODE

The go-niftycloud package enables Go programs to interact with NIFTY Cloud.

This is built on github.com/goamz/goamz.

Installing

go get github.com/higebu/go-niftycloud/niftycloud
go get github.com/higebu/go-niftycloud/compute

Environment variables

Currently go-niftycloud supports following variables.

  • NIFTY_CLOUD_ACCESS_KEY
  • NIFTY_CLOUD_SECRET_KEY
  • NIFTY_CLOUD_MAX_RETRY
  • NIFTY_CLOUD_CONNECTION_TIMEOUT
  • NIFTY_CLOUD_SOCKET_TIMEOUT

Example

There are examples in higebu/go-niftycloud-examples.

Running tests

To run tests, first install gocheck with:

$ go get gopkg.in/check.v1

Then run go test as usual:

$ go test github.com/higebu/go-niftycloud/...

Note: running all tests with the command go test ./... will currently fail as tests do not tear down their HTTP listeners.

If you want to run integration tests (costs money), set up the EC2 environment variables as usual, and run:

$ gotest -i

License

Licensed under the GNU Lesser General Public License, version 3.0.