haproxy-dataplane-go

haproxy dataplane api (v2) client

MIT License

Stars
0

haproxy-dataplane-go

go client for HaProxy Dataplane API


A client library for interacting with the Haproxy Dataplane API V2 for listing, creating, updating and delete haproxy definitions like:

  • basic informations
  • backends
  • frontends
  • backends and frontends rules
  • servers
  • acls
  • http rules
  • filters
    and more.

example usage:

// creating a client
client := haproxy.NewHaproxyClient("127.0.0.1", "user", "password", true)

// listing backends
backends, err := client.GetBackends()

//listing acls (eg: parent type, parent name)
servers, err := client.GetAcls("frontend", "foo")

for other informations refer to the HaProxy Dataplane V2 API spec.

WORK IN PROGRESS


license

  • MIT
Package Rankings
Top 8.17% on Proxy.golang.org
Badges
Extracted from project README
Go Report Card GoDoc