Categorygithub.com/Allan-Nava/haproxy-dataplane-go
repositorypackage
1.0.24
Repository: https://github.com/allan-nava/haproxy-dataplane-go.git
Documentation: pkg.go.dev

# README

haproxy-dataplane-go

Go Report Card GoDoc

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