Skip to content

nginx/nginx-plus-go-client

Folders and files

NameName
Last commit message
Last commit date
Jul 16, 2024
Jul 11, 2024
Jun 17, 2024
Jun 17, 2024
Feb 8, 2024
Jul 19, 2022
Jul 10, 2024
Jul 12, 2024
Aug 3, 2023
Jul 10, 2024
Feb 22, 2024
Oct 9, 2023
Nov 15, 2023
Aug 3, 2023
Aug 3, 2023
Aug 3, 2023
Aug 8, 2018
Aug 17, 2023
Sep 19, 2023
Aug 3, 2023
Feb 8, 2024
Oct 6, 2023
Oct 6, 2023
Jun 17, 2024

Repository files navigation

OpenSSFScorecard Continuous Integration License Go Report Card FOSSA Status GitHub release (latest SemVer) GitHub go.mod Go version Slack Project Status: Active – The project has reached a stable, usable state and is being actively developed. Community Support

NGINX Plus Go Client

This project includes a client library for working with NGINX Plus API.

About the Client

client/nginx.go includes functions and data structures for working with NGINX Plus API as well as some helper functions.

Compatibility

This Client works against versions 4 to 9 of the NGINX Plus API. The table below shows the version of NGINX Plus where the API was first introduced.

API version NGINX Plus version
4 R18
5 R19
6 R20
7 R25
8 R27
9 R30

Using the Client

  1. Import github.com/nginxinc/nginx-plus-go-client/client into your go project.
  2. Use your favorite vendor tool to add this to your /vendor directory in your project.

Testing

Unit tests

cd client
go test

Integration tests

Prerequisites:

  • Docker
  • Docker Compose
  • golang
  • Make
  • NGINX Plus license - put nginx-repo.crt and nginx-repo.key into the docker folder.

Run Tests:

make test

This will build and run two NGINX Plus containers and create one docker network of type bridge, execute the client tests against both NGINX Plus APIs, and then clean up. If it fails and you want to clean up (i.e. stop the running containers and remove the docker network), please use make clean

Contacts

We’d like to hear your feedback! If you have any suggestions or experience issues with the NGINX Plus Go Client, please create an issue or send a pull request on GitHub. You can contact us directly via integrations@nginx.com or on the NGINX Community Slack.

Contributing

If you'd like to contribute to the project, please read our Contributing guide.

Support

This project is not covered by the NGINX Plus support contract.