AWX SDK for the Go programming language.
If you are using Go 1.5 with the GO15VENDOREXPERIMENT=1 vendoring flag, or 1.6 and higher you can use the following command to retrieve the SDK. The SDK will be included.
go get -u github /Colstuwjx/awx-go
We can simply import awx-go and call its services, such as PingService:
import (
"log"
awxGo "github /Colstuwjx/awx-go"
)
func main() {
awx:= awxGo.NewAWX( "http://awx.your_server_host", "your_awx_username", "your_awx_passwd", nil)
result, err:= awx.PingService.Ping()
if err!= nil {
log.Fatalf( "Ping awx err: %s", err)
}
log.Println( "Ping awx:", result)
}
More examples can be found athere.
awx-go is still in development, and its roadmap could be found athere.
There are many ways to contribute to awx-go.
- Submit bugs viaGithub issues;
- Submit apull requestfor fixes or features;
- Mailme