Commits


Properly encode spaces in filter expressions This is a bit tricky. url.QueryEscape() encodes spaces in queries as "+", but Icinga2 wants them as "%20". A test case is included because this was kinda tricky to debug.


Support cascading delete of objects


doc: correct doc comment about type


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!


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


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


more docs


dump


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