Skip to content

Latest commit

 

History

History
34 lines (22 loc) · 1.29 KB

README.md

File metadata and controls

34 lines (22 loc) · 1.29 KB

go-icinga2

go-icinga2 is a Go client library for accessing the Icinga2 API.

License Build Status Go Report Card codecov GoDoc

Status

In very early stage of development. We'd love to accept your pull requests and contributions to this project.

Usage

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")

Licence

This library is distributed under the New BSD License found in the LICENSE file.