Commit Briefs

562d5c1eb8 Oliver Lowe

Store acknowledgement status of hosts, services


1646fdebff Oliver Lowe

Actually return permissions grante to the client

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


cb9dde9996 Oliver Lowe

Let users schedule their own checks


dd1562c064 Oliver Lowe

Always format generated code

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


f5fde32e94 Oliver Lowe

Handle last check result of services

Includes a test to know that we're handling the JSON properly.


7cb145ba97 Oliver Lowe

Implement checker interface for HostGroup

This also adds a test for checking all hosts in a HostGroup.


dd0af5f789 Oliver Lowe

Correctly marshal Hosts into JSON

We were missing some attributes, like not adding any groups or display names. This also adds a test which checks whether we are marshalling hosts into JSON correctly.


e2cace7fed Oliver Lowe

Document checker Check() methods


02a1a10065 Oliver Lowe

Support cascading delete of objects


da19a2fd0f Oliver Lowe

Store host state type


191337d0c3 Oliver Lowe

Add checking of services and hosts

And also add a icinga_test package that does the black-box tests i.e. tests which speak to a real icinga server.


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


7aa5b05532 Oliver Lowe

doc: Keep the getting started tutorial in 1 place


2ad5e459c8 Oliver Lowe

Clearer contribution details in README


b06b25c58a Oliver Lowe

Remove unused attrs() method

It was required to satisfty the object interface but the interface changed because it wasn't used anywhere.


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


82fc97ff8e Oliver Lowe

Merge Hosts and FilterHosts

Getting all Hosts is the same as calling FilterHosts with an empty filter anyway.


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.


60c115fb1c Oliver Lowe

Merge filter and all objects methods

Getting all objects is the same as getting objects with a zero filter.


fc8956331f Oliver Lowe

Deduplicate case conditions

Encoding a Host, Service and User as JSON is the same so there's no point having different statements.


730f973b47 Oliver Lowe

Add test for getting objects with a filter


ae81184d0c Oliver Lowe

Add tests for user management