Skip to content

logzio/logzio_terraform_client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logz.io Terraform client library

Client library for Logz.io API, see below for supported endpoints.

The primary purpose of this library is to act as the API interface for the logz.io Terraform provider. To use it, you'll need to create an API token and provide it to the client library along with your logz.io regional API server address.

The library currently supports the following API endpoints:

Contributing

  1. Clone this repo locally.
  2. As this package uses Go modules, make sure you are outside of $GOPATH or you have the GO111MODULE=on environment variable set. Then run go get to pull down the dependencies.
  3. Use logzio_client.CallLogzioApi when you need to make a Logz.io API call.
  4. Use structs to represent the requests/responses body, rather than maps.
  5. Sample responses for tests should be under testdata/fixtures.
Run tests

go test -v -race ./...

Trademark Disclaimer

Terraform is a trademark of HashiCorp, Inc.