Golang client for the HAProxy Data Plane API.
# 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
# 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
# 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
# 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