CAUTION: EXPERIMENTAL CODE
The go-niftycloud package enables Go programs to interact with NIFTY Cloud.
This is built on github.com/goamz/goamz.
go get github.com/higebu/go-niftycloud/niftycloud
go get github.com/higebu/go-niftycloud/compute
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
There are examples in higebu/go-niftycloud-examples.
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
Licensed under the GNU Lesser General Public License, version 3.0.