mirror of
https://github.com/empayre/fleet.git
synced 2024-11-07 01:15:22 +00:00
ab23e60a98
This PR adds support for getting resources by name. ``` $ fleetctl get queries no queries found $ fleetctl apply -f ./query.yaml [+] applied 1 queries $ fleetctl get queries +-----------------+--------------------------------+--------------------------------+ | NAME | DESCRIPTION | QUERY | +-----------------+--------------------------------+--------------------------------+ | osquery_version | The version of the Launcher | select launcher.version, | | | and Osquery process | osquery.version from | | | | kolide_launcher_info launcher, | | | | osquery_info osquery; | +-----------------+--------------------------------+--------------------------------+ $ fleetctl get query osquery_version apiVersion: v1 kind: query spec: description: The version of the Launcher and Osquery process name: osquery_version query: select launcher.version, osquery.version from kolide_launcher_info launcher, osquery_info osquery; ```
4 lines
40 B
Go
4 lines
40 B
Go
package kolide
|
|
|
|
const ApiVersion = "v1"
|