haproxy-data-plane-api-client

module
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 22, 2021 License: Apache-2.0

README

haproxy-data-plane-api-client

Golang client for the HAProxy Data Plane API.

Prerequisites

Generating

# 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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL