open-nomad/nomad/structs
Tim Gross 624ecab901
evaluations list pagination and filtering (#11648)
API queries can request pagination using the `NextToken` and `PerPage`
fields of `QueryOptions`, when supported by the underlying API.

Add a `NextToken` field to the `structs.QueryMeta` so that we have a
common field across RPCs to tell the caller where to resume paging
from on their next API call. Include this field on the `api.QueryMeta`
as well so that it's available for future versions of List HTTP APIs
that wrap the response with `QueryMeta` rather than returning a simple
list of structs. In the meantime callers can get the `X-Nomad-NextToken`.

Add pagination to the `Eval.List` RPC by checking for pagination token
and page size in `QueryOptions`. This will allow resuming from the
last ID seen so long as the query parameters and the state store
itself are unchanged between requests.

Add filtering by job ID or evaluation status over the results we get
out of the state store.

Parse the query parameters of the `Eval.List` API into the arguments
expected for filtering in the RPC call.
2021-12-10 13:43:03 -05:00
..
config ui: change Consul/Vault base URL field name (#11589) 2021-11-30 13:20:29 -05:00
batch_future.go
batch_future_test.go
bitmap.go
bitmap_test.go
connect.go e2e: consul namespace tests from nomad ent 2021-04-19 15:35:31 -06:00
connect_test.go consul/connect: add support for connect mesh gateways 2021-06-04 08:24:49 -05:00
consul.go chore: fix incorrect docstring formatting. 2021-08-30 11:08:12 +02:00
consul_oss.go gofmt all the files 2021-10-01 10:14:28 -04:00
consul_oss_test.go gofmt all the files 2021-10-01 10:14:28 -04:00
consul_test.go consul: plubming for specifying consul namespace in job/group 2021-04-05 10:03:19 -06:00
csi.go chore: fix incorrect docstring formatting. 2021-08-30 11:08:12 +02:00
csi_test.go CSI: use AccessMode/AttachmentMode from CSIVolumeClaim 2021-04-07 11:24:09 -04:00
devices.go Initial implementation of device preemption 2018-11-15 11:09:26 -06:00
devices_test.go Split device accounter and allocator 2018-11-07 10:32:03 -08:00
diff.go Allow using specific object ID on diff (#11400) 2021-11-01 15:16:31 -04:00
diff_test.go Allow using specific object ID on diff (#11400) 2021-11-01 15:16:31 -04:00
encoding.go json handles were moved to a new package in #10202 2021-04-02 13:31:10 +00:00
errors.go scheduler: config option to reject job registration (#11610) 2021-12-06 15:20:34 -05:00
errors_test.go api: acl bootstrap errors aren't 500 2019-11-19 15:51:57 -05:00
event.go docs: fix typo in structs/event.go 2021-08-21 17:02:07 +05:30
extensions.go json handles were moved to a new package in #10202 2021-04-02 13:31:10 +00:00
funcs.go Fix preemption panic (#11346) 2021-10-19 20:22:03 -04:00
funcs_test.go oversubscription: Add MemoryMaxMB to internal structs 2021-03-30 16:55:58 -04:00
generate.sh When serializing msgpack, only consider codec tag 2020-05-11 14:14:10 -04:00
handlers.go json handles were moved to a new package in #10202 2021-04-02 13:31:10 +00:00
network.go cli: show host_network in nomad status (#11432) 2021-11-05 09:02:46 -04:00
network_test.go Support configurable dynamic port range 2021-09-10 11:52:47 +03:00
node.go chore: fix incorrect docstring formatting. 2021-08-30 11:08:12 +02:00
node_class.go use allow/deny instead of the colored alternatives (#9019) 2020-10-12 08:47:05 -04:00
node_class_test.go Device hook and devices affect computed node class 2018-11-27 17:25:33 -08:00
node_test.go
operator.go scheduler: config option to reject job registration (#11610) 2021-12-06 15:20:34 -05:00
search.go api: implement fuzzy search API 2021-04-16 16:36:07 -06:00
service_identities.go consul: plubming for specifying consul namespace in job/group 2021-04-05 10:03:19 -06:00
services.go connect: update allowed protocols in ingress gateway config (#11187) 2021-09-16 10:47:53 -04:00
services_test.go connect: update allowed protocols in ingress gateway config (#11187) 2021-09-16 10:47:53 -04:00
streaming_rpc.go Fix some errcheck errors (#9811) 2021-01-14 12:46:35 -08:00
structs.go evaluations list pagination and filtering (#11648) 2021-12-10 13:43:03 -05:00
structs_codegen.go
structs_oss.go gofmt all the files 2021-10-01 10:14:28 -04:00
structs_periodic_test.go tests for periodic job scheduling and DST 2020-05-07 17:36:59 -04:00
structs_test.go gofmt all the files 2021-10-01 10:14:28 -04:00
testing.go chore: fix incorrect docstring formatting. 2021-08-30 11:08:12 +02:00
volumes.go csi: validate volume block has attachment_mode and access_mode 2021-06-03 16:07:19 -04:00