You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This project includes a client library for working with NGINX Plus API.
7
15
8
16
## About the Client
9
17
10
-
`client/nginx.go` includes functions and data structures for working with NGINX Plus API as well as some helper functions.
18
+
`client/nginx.go` includes functions and data structures for working with NGINX Plus API as well as some helper
19
+
functions.
11
20
12
21
## Compatibility
13
22
14
-
This Client works against versions 4 to 8 of the NGINX Plus API. The table below shows the version of NGINX Plus where the API was first introduced.
23
+
This Client works against versions 4 to 8 of the NGINX Plus API. The table below shows the version of NGINX Plus where
24
+
the API was first introduced.
15
25
16
26
| API version | NGINX Plus version |
17
27
|-------------|--------------------|
@@ -29,35 +39,41 @@ This Client works against versions 4 to 8 of the NGINX Plus API. The table below
29
39
## Testing
30
40
31
41
### Unit tests
32
-
```
33
-
$ cd client
34
-
$ go test
42
+
43
+
```console
44
+
cd client
45
+
go test
35
46
```
36
47
37
48
### Integration tests
38
49
39
50
Prerequisites:
51
+
40
52
* Docker
41
53
* golang
42
54
* Make
43
55
* NGINX Plus license - put `nginx-repo.crt` and `nginx-repo.key` into the `docker` folder.
44
56
45
57
Run Tests:
46
58
47
-
```
48
-
$ make docker-build && make test
59
+
```console
60
+
make docker-build && make test
49
61
```
50
62
51
-
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`
63
+
This will build and run two NGINX Plus containers and create one docker network of type bridge, execute the client tests
64
+
against both NGINX Plus APIs, and then clean up. If it fails and you want to clean up (i.e. stop the running containers
65
+
and remove the docker network), please use `make clean`
52
66
53
67
## Contacts
54
68
55
-
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.
56
-
You can contact us directly via integrations@nginx.com or on the [NGINX Community Slack](https://nginxcommunity.slack.com).
69
+
We’d like to hear your feedback! If you have any suggestions or experience issues with the NGINX Plus Go Client, please
70
+
create an issue or send a pull request on GitHub. You can contact us directly via <integrations@nginx.com> or on the
71
+
[NGINX Community Slack](https://nginxcommunity.slack.com).
57
72
58
73
## Contributing
59
74
60
75
If you'd like to contribute to the project, please read our [Contributing guide](CONTRIBUTING.md).
61
76
62
77
## Support
78
+
63
79
This project is not covered by the NGINX Plus support contract.
0 commit comments