fleet/server/kolide
billcobbler 618ba56484
Add host additional info filters (#28)
This change adds the ability to filter additional host info via the list hosts endpoint; a continuation from [here](https://github.com/kolide/fleet/pull/2330), but now filtering is accomplished via SQL. 

Additional object without filter:
```
curl 'https://localhost:8080/api/v1/kolide/hosts'
...
"additional": {
        "macs": [
          {
            "mac": "00:00:00:00:00:00"
          },
          {
            "mac": "02:42:c0:a8:10:05"
          }
        ],
        "time": [
          {
            "day": "13",
            "hour": "3",
            "year": "2020",
            "month": "10",
            "minutes": "43",
            "seconds": "11",
            "weekday": "Tuesday",
            "datetime": "2020-10-13T03:43:11Z",
            "iso_8601": "2020-10-13T03:43:11Z",
            "timezone": "GMT",
            "timestamp": "Tue Oct 13 03:43:11 2020 UTC",
            "unix_time": "1602560591",
            "local_time": "1602560591",
            "local_timezone": "UTC"
          }
},
...
```

Additional object with filter:
```
curl 'https://localhost:8080/api/v1/kolide/hosts?additional_info_filters=macs,notreal'
...
"additional": {
        "macs": [
          {
            "mac": "00:00:00:00:00:00"
          },
          {
            "mac": "02:42:c0:a8:10:05"
          }
        ],
        "notreal": null
},
...
```
2020-11-13 16:33:25 -08:00
..
app.go Consistent use of constants in fleetctl (#2320) 2020-10-08 10:16:07 -07:00
campaigns.go Update the Go import paths to new repo name (#27) 2020-11-11 09:59:12 -08:00
carves.go Add file carving support (#15) 2020-11-04 20:45:16 -08:00
datastore.go Add file carving support (#15) 2020-11-04 20:45:16 -08:00
emails.go Allow import of github.com/kolide/fleet (#2213) 2020-03-29 19:22:04 -07:00
fleetctl.go Add fleetctl get label, pack, query for individual items by name (#1768) 2018-05-08 18:10:01 -06:00
hosts.go Add host additional info filters (#28) 2020-11-13 16:33:25 -08:00
hosts_test.go Implement pagination of hosts in the web UI 2020-07-21 14:05:46 -07:00
import_config.go Fix documentation typos (#1682) 2017-12-21 18:37:32 -08:00
import_config_test.go Fix bug in Osquery import and updated import docs (#1478) 2017-04-23 19:41:27 -05:00
import_config_unmarshaler.go Fix documentation typos (#1682) 2017-12-21 18:37:32 -08:00
invites.go Remove soft-deletion pattern (#2327) 2020-10-22 10:51:26 -07:00
labels.go Remove soft-deletion pattern (#2327) 2020-10-22 10:51:26 -07:00
live_query_store.go Move live query operations from MySQL to Redis 2020-07-21 14:05:46 -07:00
logging.go Add Google Cloud PubSub logging (#2049) 2019-07-16 15:41:50 -07:00
meta.go Refactor osquery options interface (#1674) 2018-01-02 16:22:45 -08:00
network_interfaces.go Fix flapping host network interfaces (#1283) 2017-02-24 14:37:47 -08:00
osquery.go Add file carving support (#15) 2020-11-04 20:45:16 -08:00
osquery_options.go Consistent use of constants in fleetctl (#2320) 2020-10-08 10:16:07 -07:00
osquery_options_test.go Refactor osquery options interface (#1674) 2018-01-02 16:22:45 -08:00
packs.go Remove soft-deletion pattern (#2327) 2020-10-22 10:51:26 -07:00
queries.go Remove soft-deletion pattern (#2327) 2020-10-22 10:51:26 -07:00
queries_test.go Update query and pack interfaces for fleetctl (#1670) 2018-01-03 11:18:05 -08:00
query_results.go Add warning in query UI when Redis fails (#2086) 2019-08-13 09:42:58 -07:00
scheduled_queries.go Remove soft-deletion pattern (#2327) 2020-10-22 10:51:26 -07:00
service.go Add file carving support (#15) 2020-11-04 20:45:16 -08:00
sessions.go SSO Login and Configuration Support (#1506) 2017-05-17 10:58:40 -05:00
status.go Add ability to disable live queries (#2167) 2020-01-13 16:53:04 -08:00
targets.go Move live query operations from MySQL to Redis 2020-07-21 14:05:46 -07:00
traits.go Remove soft-deletion pattern (#2327) 2020-10-22 10:51:26 -07:00
transactions.go Added support for atomic imports and dry run imports (#1510) 2017-05-30 14:42:00 -05:00
users.go Implement fleetctl user create (#9) 2020-11-04 17:06:55 -08:00
users_test.go Organizing go code (#241) 2016-09-26 11:48:55 -07:00