Commit Briefs

9ffce56b80 Oliver Lowe

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.


02a1a10065 Oliver Lowe

Support cascading delete of objects


6c70362050 Oliver Lowe

doc: correct doc comment about type


6d1ce85e96 Oliver Lowe

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.


76669f9b1f Oliver Lowe

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!


514f2cd100 Oliver Lowe

Export NewRequest

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


83f511305d Oliver Lowe

add Icinga service and host states

Nothing actually uses these yet but they will soon!


5055878019 Oliver Lowe

more docs


6e415953de Oliver Lowe

dump


b74ab3b391 Oliver Lowe

go fmt



007a3d09ec Oliver Lowe

Embed http.Client in Client

No need to have it named


2c4d16aea2 Oliver Lowe

initial commit