go-icinga2 is a Go client library for accessing the Icinga2 API.
In very early stage of development. We'd love to accept your pull requests and contributions to this project.
Not very usable at the moment.
transport := &icinga.BasicAuthTransport{
Username: "user",
Password: "pass",
Transport: &http.Transport{TLSClientConfig: &tls.Config{InsecureSkipVerify: true}},
}
icinga := icinga.NewClient("https://localhost:5665/", transport.Client())
host, resp, err := icinga.Hosts.Get("hostname")
This library is distributed under the New BSD License found in the LICENSE file.