This SDK includes a client library for working with NGINX Plus API.
client/nginx.go includes functions and data structures for working with NGINX Plus API as well as some helper functions.
This SDK works against version 2 of NGINX Plus API. Version 2 was introduced in NGINX Plus R14.
- Import
github.com/nginxinc/nginx-plus-go-sdk/clientinto your go project. - Use your favourite vendor tool to add this to your
/vendordirectory in your project.
$ cd client
$ go test
Prerequisites:
- Docker
- golang
- Make
- NGINX Plus license - put
nginx-repo.crtandnginx-repo.keyinto thedockerfolder.
Run Tests:
$ make test
This will build and run an NGINX Plus container, execute the SDK tests against NGINX Plus API, and then clean up. If it fails and you want to clean up (i.e. stop the running container), please use $ make clean
This project is not covered by the NGINX Plus support contract.