fleet/server/datastore/inmem
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 Update the Go import paths to new repo name (#27) 2020-11-11 09:59:12 -08:00
campaigns.go Update the Go import paths to new repo name (#27) 2020-11-11 09:59:12 -08:00
email_changes.go Email confirmation fix (#1231) 2017-02-16 21:07:20 +08:00
errors.go catch sql.ErrNoRows in mysql/invites (#667) 2016-12-20 16:31:09 -05:00
hosts.go Add host additional info filters (#28) 2020-11-13 16:33:25 -08:00
inmem.go Update the Go import paths to new repo name (#27) 2020-11-11 09:59:12 -08:00
inmem_test.go Update the Go import paths to new repo name (#27) 2020-11-11 09:59:12 -08:00
invites.go Update the Go import paths to new repo name (#27) 2020-11-11 09:59:12 -08:00
labels.go Update the Go import paths to new repo name (#27) 2020-11-11 09:59:12 -08:00
packs.go Update the Go import paths to new repo name (#27) 2020-11-11 09:59:12 -08:00
password_reset.go Update the Go import paths to new repo name (#27) 2020-11-11 09:59:12 -08:00
queries.go Update the Go import paths to new repo name (#27) 2020-11-11 09:59:12 -08:00
sessions.go Update the Go import paths to new repo name (#27) 2020-11-11 09:59:12 -08:00
targets.go Update the Go import paths to new repo name (#27) 2020-11-11 09:59:12 -08:00
users.go Update the Go import paths to new repo name (#27) 2020-11-11 09:59:12 -08:00