a10-go-rest-client

module
v0.0.0-...-fb69549 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2018 License: MIT

README

license GoDoc Go Report Card

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

See examples:

Directories

Path Synopsis
examples

Jump to

Keyboard shortcuts

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