[go: up one dir, main page]

Skip to content

Colstuwjx/awx-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

53 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

awx-go

Build Status Go Report Card codecov

AWX SDK for the Go programming language.

AWX-GO-ROBOT

Installing

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.com/Colstuwjx/awx-go

Example

We can simply import awx-go and call its services, such as PingService:

import (
    "log"
    awxGo "github.com/Colstuwjx/awx-go"
)

func 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)
}

More examples can be found at here.

Roadmap

awx-go is still in development, and its roadmap could be found at here.

Contribute

There are many ways to contribute to awx-go.

About

AWX SDK for the Go programming language: https://github.com/ansible/awx

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages