A client library for the UAA service written in Go.
This project makes use of the Command pattern. The various command implementations can be found in the relevant subpackage folders. For example:
config := &uaa.ClientConfig{
ApiAddress: "http://localhost:8080/uaa",
ClientID: "admin",
ClientSecret: "adminsecret"
}
uaac, err := uaa.NewClient(clientConfig)
if err != nil {
fmt.Printf("Failed to initialize uaa client; %v", err)
return
}
var serverInfo serverinfo.ServerInfo
command := serverinfo.NewGetServerInfoCommand(uaac, &serverInfo)
if err := command.Execute(); err != nil {
fmt.Printf("Failed to execute GetServerInfoCommand: %v\n", err)
return
}
fmt.Println("Your UAAC Server Version is ", serverInfo.Version())
This project uses Glide
To setup your local workspace, first clone this project, and then run glide install
To run the project test suite, run go test $(glide novendor)