This is official Go SDK for Kowabunga API.
| Project | Release Badge |
|---|---|
| Kowabunga | |
| Kowabunga Go SDK |
kowabunga-go can be installed like any other Go library through go get:
$ go get github.com/kowabunga-cloud/kowabunga-go@latestCheck out the list of released versions.
To use kowabunga-go, you’ll need to import the kowabunga-go package:
import kowabunga "github.com/kowabunga-cloud/kowabunga-go"To use a proxy, set the environment variable HTTP_PROXY:
os.Setenv("HTTP_PROXY", "http://proxy_name:proxy_port")Creating an API client can be done by:
var client *kowabunga.APIClient
u, _ := url.Parse(uri)
cfg := kowabunga.NewConfiguration()
cfg.Host = u.Host
cfg.Scheme = u.Scheme
cfg.AddDefaultHeader("X-API-Key", token)
client = kowabunga.NewAPIClient(cfg), nilwhere uri is https://your_kowabunga_kahuna_server and token is the associated API key.
Refer to API documentation
Licensed under Apache License, Version 2.0, see LICENSE.