Commits


Merge get and getFilter methods Doing a GET without a query is the same as doing a GET with an empty query, so there's no point having 2 separate methods.


Merge filter and all objects methods Getting all objects is the same as getting objects with a zero filter.


Deduplicate case conditions Encoding a Host, Service and User as JSON is the same so there's no point having different statements.


Add test for getting objects with a filter


Add tests for user management


I learned how to do some generic programming New type "object" is an interface to represent an Icinga2 object. I added heaps of other stuff! On our way to 1000 lines of code!


Export NewRequest So that people using the package can make their own requests for anything unimplemented by the package itself.


Complete the README with a tutorial and a "why?"


Use slightly clearer param name


add Icinga service and host states Nothing actually uses these yet but they will soon!


Release under ISC license


more docs


dump


README: use http.DefaultClient in example The Go devs set useful things for us that we shouldn't lose just because we're something insecure.


go fmt


set correct request Content-Type and Accept values in header


Embed http.Client in Client No need to have it named


initial commit