ac78c23021
Fixes: #4222 # Data Filtering This PR will implement filtering for the following endpoints: ## Supported HTTP Endpoints - `/agent/checks` - `/agent/services` - `/catalog/nodes` - `/catalog/service/:service` - `/catalog/connect/:service` - `/catalog/node/:node` - `/health/node/:node` - `/health/checks/:service` - `/health/service/:service` - `/health/connect/:service` - `/health/state/:state` - `/internal/ui/nodes` - `/internal/ui/services` More can be added going forward and any endpoint which is used to list some data is a good candidate. ## Usage When using the HTTP API a `filter` query parameter can be used to pass a filter expression to Consul. Filter Expressions take the general form of: ``` <selector> == <value> <selector> != <value> <value> in <selector> <value> not in <selector> <selector> contains <value> <selector> not contains <value> <selector> is empty <selector> is not empty not <other expression> <expression 1> and <expression 2> <expression 1> or <expression 2> ``` Normal boolean logic and precedence is supported. All of the actual filtering and evaluation logic is coming from the [go-bexpr](https://github.com/hashicorp/go-bexpr) library ## Other changes Adding the `Internal.ServiceDump` RPC endpoint. This will allow the UI to filter services better.
31 lines
771 B
TOML
31 lines
771 B
TOML
# This file is autogenerated, do not edit; changes may be undone by the next 'dep ensure'.
|
|
|
|
|
|
[[projects]]
|
|
name = "github.com/davecgh/go-spew"
|
|
packages = ["spew"]
|
|
revision = "346938d642f2ec3594ed81d874461961cd0faa76"
|
|
version = "v1.1.0"
|
|
|
|
[[projects]]
|
|
name = "github.com/pmezard/go-difflib"
|
|
packages = ["difflib"]
|
|
revision = "792786c7400a136282c1664665ae0a8db921c6c2"
|
|
version = "v1.0.0"
|
|
|
|
[[projects]]
|
|
name = "github.com/stretchr/testify"
|
|
packages = [
|
|
"assert",
|
|
"require"
|
|
]
|
|
revision = "b91bfb9ebec76498946beb6af7c0230c7cc7ba6c"
|
|
version = "v1.2.0"
|
|
|
|
[solve-meta]
|
|
analyzer-name = "dep"
|
|
analyzer-version = 1
|
|
inputs-digest = "2d160a7dea4ffd13c6c31dab40373822f9d78c73beba016d662bef8f7a998876"
|
|
solver-name = "gps-cdcl"
|
|
solver-version = 1
|