Commits


Remove unnecessary parseAPIResponse function All this did was wrap the usual standard library JSON decode procedure.


Remove useless loop We always returned something on the first iteration, so just remove it.


Actually return permissions grante to the client Before we were just returning an empty response or something non-meaningful


doc: Keep the getting started tutorial in 1 place


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.


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!


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


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


more docs


go fmt


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


initial commit