Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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: 2 months ago
JSON representation

Golang client for the HAProxy Data Plane API.

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
```