open-nomad/vendor/github.com/hashicorp/nomad/api
Drew Bailey cb689a8382
Api/event stream payload values (#9277)
* Get concrete types out of dynamic payload

wip

pull out value setting to func

* Add TestEventSTream_SetPayloadValue

Add more assertions

use alias type in unmarshalJSON to handle payload rawmessage

shorten unmarshal and remove anonymous wrap struct

* use map structure and helper functions to return concrete types

* ensure times are properly handled

* update test name

* put all decode logic in a single function

Co-authored-by: Kris Hicks <khicks@hashicorp.com>
2020-11-05 13:04:18 -05:00
..
contexts deps: Switch to Go modules for dependency management 2020-06-02 14:30:36 -05:00
acl.go deps: Switch to Go modules for dependency management 2020-06-02 14:30:36 -05:00
agent.go api: nomad debug new /agent/host (#8325) 2020-07-02 09:51:25 -04:00
allocations.go api: add field filters to /v1/{allocations,nodes} 2020-10-14 10:35:22 -07:00
api.go Add API support for cancelation contexts passed via QueryOptions and WriteOptions (#8836) 2020-09-09 16:22:07 -04:00
constraint.go Update vendored libraries 2020-10-21 15:46:56 -04:00
csi.go Update vendored libraries 2020-10-21 15:46:56 -04:00
deployments.go multiregion CLI: nomad deployment unblock 2020-06-17 11:03:44 -04:00
evaluations.go deps: Switch to Go modules for dependency management 2020-06-02 14:30:36 -05:00
event_sink.go make sync to update event stream api (#9274) 2020-11-05 10:06:56 -05:00
event_stream.go Api/event stream payload values (#9277) 2020-11-05 13:04:18 -05:00
fs.go deps: Switch to Go modules for dependency management 2020-06-02 14:30:36 -05:00
go.mod Api/event stream payload values (#9277) 2020-11-05 13:04:18 -05:00
go.sum Api/event stream payload values (#9277) 2020-11-05 13:04:18 -05:00
ioutil.go deps: Switch to Go modules for dependency management 2020-06-02 14:30:36 -05:00
jobs.go Don't parse the server-set fields of the job struct 2020-10-22 08:18:57 -04:00
namespace.go deps: Switch to Go modules for dependency management 2020-06-02 14:30:36 -05:00
nodes.go api: add field filters to /v1/{allocations,nodes} 2020-10-14 10:35:22 -07:00
operator.go Metrics gotemplate support, debug bundle features (#9067) 2020-10-14 15:16:10 -04:00
operator_autopilot.go deps: Switch to Go modules for dependency management 2020-06-02 14:30:36 -05:00
operator_metrics.go Metrics gotemplate support, debug bundle features (#9067) 2020-10-14 15:16:10 -04:00
quota.go deps: Switch to Go modules for dependency management 2020-06-02 14:30:36 -05:00
raw.go deps: Switch to Go modules for dependency management 2020-06-02 14:30:36 -05:00
recommendations.go added new policy capabilities for recommendations API 2020-10-28 14:32:16 +00:00
regions.go deps: Switch to Go modules for dependency management 2020-06-02 14:30:36 -05:00
resources.go Update vendored libraries 2020-10-21 15:46:56 -04:00
scaling.go added new policy capabilities for recommendations API 2020-10-28 14:32:16 +00:00
search.go deps: Switch to Go modules for dependency management 2020-06-02 14:30:36 -05:00
sentinel.go deps: Switch to Go modules for dependency management 2020-06-02 14:30:36 -05:00
services.go Update vendored libraries 2020-10-21 15:46:56 -04:00
status.go deps: Switch to Go modules for dependency management 2020-06-02 14:30:36 -05:00
system.go deps: Switch to Go modules for dependency management 2020-06-02 14:30:36 -05:00
tasks.go added new policy capabilities for recommendations API 2020-10-28 14:32:16 +00:00
utils.go deps: Switch to Go modules for dependency management 2020-06-02 14:30:36 -05:00