brocade-adx-client

module
v0.0.0-...-500eaca Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2017 License: MIT

README

brocade-adx-client

GoDoc License

The brocade-adx-client is a GoLang client library to interface with a Brocade ServerIron ADX via the SOAP API

Installation

go get -u github.com/josh5276/brocade-adx-client/brocade

Usage

package main

import (
	"log"

	"github.com/josh5276/brocade-adx-client/brocade/sys"
    "github.com/josh5276/brocade-adx-client/brocade"
)

func main() {
	// Establish a new ADX device
	adx := adc.NewSOAPClient("ADX_IP", "Username", "Password")
	
	// Setup the SYS client to make SYS related calls
	s := sys.New(adx)
	
	// Test authentication 
    resp, err := s.TestAuth()
    if err != nil {
    	log.Fatal(err)
    }
    log.Printf("Successful response from the ADX. ServerIron ADX Version: %v", resp)
}

License

This software is released under the MIT License. The full terms of that license can be found in LICENSE file of this repository.

Directories

Path Synopsis
net
slb
sys

Jump to

Keyboard shortcuts

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