https://github.com/form3tech-oss/haproxy-data-plane-api-client
Golang client for the HAProxy Data Plane API.
https://github.com/form3tech-oss/haproxy-data-plane-api-client
haproxy
Last synced: 3 months ago
JSON representation
Golang client for the HAProxy Data Plane API.
- Host: GitHub
- URL: https://github.com/form3tech-oss/haproxy-data-plane-api-client
- Owner: form3tech-oss
- License: apache-2.0
- Archived: true
- Created: 2020-01-21T13:30:45.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-03-15T05:02:01.000Z (over 1 year ago)
- Last Synced: 2024-11-06T01:39:58.628Z (8 months ago)
- Topics: haproxy
- Homepage:
- Size: 26.9 MB
- Stars: 2
- Watchers: 10
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# haproxy-data-plane-api-client
Golang client for the HAProxy Data Plane API.
## Prerequisites
* https://github.com/go-swagger/go-swagger
## Generating
```shell
# Clone https://github.com/haproxytech/models.git.
$ git clone https://github.com/haproxytech/models.git \
$GOPATH/src/github.com/haproxytech/models
$ cd $GOPATH/src/github.com/haproxytech/models
$ git checkout acf2bae
``````shell
# Clone https://github.com/haproxytech/dataplaneapi-specification.git.
$ git clone ttps://github.com/haproxytech/dataplaneapi-specification.git \
$GOPATH/src/github.com/haproxytech/dataplaceapi-specification
$ cd $GOPATH/src/github.com/haproxytech/dataplaceapi-specification
$ git checkout 93629aa
``````shell
# Generate the 'haproxy_spec.yaml' file.
$ cd $GOPATH/src/github.com/haproxytech/dataplaceapi-specification/build
$ go run build.go -file ../haproxy-spec.yaml > haproxy_spec.yaml
``````shell
# Generate the client.
$ swagger generate client -f haproxy_spec.yaml \
-A "Data Plane" \
-t $GOPATH/src/github.com/form3tech-oss/haproxy-data-plane-api-client \
--existing-models github.com/haproxytech/models \
-r ../copyright.txt
```