Commit Briefs

49e200e1bf Oliver Lowe

Remove unnecessary parseAPIResponse function

All this did was wrap the usual standard library JSON decode procedure.


46ca0f68f5 Oliver Lowe

Marshal using struct tags rather than a custom map

I was excluding some struct fields so I thought I'd need to do some custom marshalling . But you don't need to do this as you can use struct tags to optionally exclude things from being put into JSON. Now there's no longer duplicate code between struct tags and keys in a map when marshalling. Handy!


1646fdebff Oliver Lowe

Actually return permissions grante to the client

Before we were just returning an empty response or something non-meaningful


e0c2485044 Oliver Lowe

Support Icinga2 hostgroups

Tests of hostgroup operations are done in TestFilter


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!