Commit Briefs

46fe962a8b Oliver Lowe

Revert "Create a new client interface"

This reverts commit bd3b8a33c54037e66233db80fd1120eb0b6215f1. It's a bad idea. I'm writing a fake server instead so that we can use the real client code.


bd3b8a33c5 Oliver Lowe

Create a new client interface

So that testing the client doesn't involve making real HTTP requests.


64e18a8d1e Oliver Lowe

Correctly return ErrNoMatch

The check was incorrect before. The HTTP status on responses is still 200 OK, but with empty results if there are no matches to the filter.


dd1562c064 Oliver Lowe

Always format generated code

While here document what is needed to actually run go generate.


02a1a10065 Oliver Lowe

Support cascading delete of objects


e6fcfaf5b3 Oliver Lowe

Set accurate crud.go header comment

getopt(1) clears the value of "$@", so grab it before it's cleared


5105405ecc Oliver Lowe

deduplicate new test client code

This adds a newTestClient option so that we aren't constantly creating new http transports clients and all that


e0c2485044 Oliver Lowe

Support Icinga2 hostgroups

Tests of hostgroup operations are done in TestFilter


6c70362050 Oliver Lowe

doc: correct doc comment about type


26fb88e9eb Oliver Lowe

Generate CRUD code using go generate

Explanation for use is in the README