Hi folks,
I’m happy to share the Go SDK for awx v2 api: https://github.com/Colstuwjx/awx-go
It’s easy to use, just think about the demo code below:
import (
"log"
awxGo "github.com/Colstuwjx/awx-go"
)
fun main() {
awx := awxGo.NewAWX("http://awx.your_server_host.com", "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)
}
Currently, I have finished Inventories, Job, Job template APIs, and feel free to take PR, Issue or use it!
Thanks!