Commit Briefs
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.
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!
Embed http.Client in Client
No need to have it named
