https://github.com/udhos/a10-go-rest-client
Go golang API rest client for A10 Networks devices
https://github.com/udhos/a10-go-rest-client
a10 api go golang golang-package load-balancing networking rest
Last synced: 9 days ago
JSON representation
Go golang API rest client for A10 Networks devices
- Host: GitHub
- URL: https://github.com/udhos/a10-go-rest-client
- Owner: udhos
- License: mit
- Created: 2018-11-01T18:06:09.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2018-11-23T14:25:10.000Z (over 7 years ago)
- Last Synced: 2025-12-25T21:00:48.660Z (6 months ago)
- Topics: a10, api, go, golang, golang-package, load-balancing, networking, rest
- Language: Go
- Homepage:
- Size: 43 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
[](https://github.com/udhos/a10-go-rest-client/blob/master/LICENSE)
[](http://godoc.org/github.com/udhos/a10-go-rest-client/a10go)
[](https://goreportcard.com/report/github.com/udhos/a10-go-rest-client)
# a10-go-rest-client
A10 golang rest client
# Build
git clone https://github.com/udhos/a10-go-rest-client ;# clone outside of GOPATH
cd a10-go-rest-client
go test ./a10go
go install ./a10go
go install ./examples/...
# Usage
import "github.com/udhos/a10-go-rest-client/a10go"
// (...)
options := a10go.Options{Debug: true} // client options
c := a10go.New(host, options) // create api client
errLogin := c.Login(user, pass) // open session
if errLogin != nil {
fmt.Printf("login failure: %v", errLogin)
return
}
vServers := c.VirtualServerList()
c.Logout() // close session
See GoDoc: [http://godoc.org/github.com/udhos/a10-go-rest-client/a10go](http://godoc.org/github.com/udhos/a10-go-rest-client/a10go)
See [examples](https://github.com/udhos/a10-go-rest-client/tree/master/examples):
- [a10list](https://github.com/udhos/a10-go-rest-client/blob/master/examples/a10list/main.go)
- [a10server](https://github.com/udhos/a10-go-rest-client/blob/master/examples/a10server/main.go)
- [a10sgroup](https://github.com/udhos/a10-go-rest-client/blob/master/examples/a10sgroup/main.go)
- [a10vserver](https://github.com/udhos/a10-go-rest-client/blob/master/examples/a10vserver/main.go)