https://github.com/allan-nava/haproxy-dataplane-go
haproxy dataplane api (v2) client
https://github.com/allan-nava/haproxy-dataplane-go
api framework golang golang-library golang-package haproxy haproxy-configuration library
Last synced: 3 months ago
JSON representation
haproxy dataplane api (v2) client
- Host: GitHub
- URL: https://github.com/allan-nava/haproxy-dataplane-go
- Owner: Allan-Nava
- License: mit
- Created: 2022-05-19T20:49:30.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-01-24T03:57:03.000Z (over 1 year ago)
- Last Synced: 2025-07-11T13:44:44.487Z (10 months ago)
- Topics: api, framework, golang, golang-library, golang-package, haproxy, haproxy-configuration, library
- Language: Go
- Homepage: https://allan-nava.github.io/haproxy-dataplane-go/
- Size: 53.7 KB
- Stars: 0
- Watchers: 0
- Forks: 2
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# haproxy-dataplane-go
[](https://goreportcard.com/report/github.com/Allan-Nava/haproxy-dataplane-go)
[](https://godoc.org/github.com/Allan-Nava/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:
```go
// 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