Drew Bailey
b702dede49
adds qc param, address pr feedback
2020-01-09 15:15:11 -05:00
Drew Bailey
9a80938fb1
region forwarding; prevent recursive forwards for impossible requests
...
prevent region forwarding loop, backfill tests
fix failing test
2020-01-09 15:15:06 -05:00
Drew Bailey
aec81a0b99
api agent endpoints
...
helper func to return serverPart based off of serverID
2020-01-09 15:15:05 -05:00
Drew Bailey
318b6c91bf
monitor command takes no args
...
rm extra new line
fix lint errors
return after close
fix, simplify test
2019-11-05 09:51:55 -05:00
Drew Bailey
0e759c401c
moving endpoints over to frames
2019-11-05 09:51:54 -05:00
Drew Bailey
fb23c1325d
fix deadlock issue, switch to frames envelope
2019-11-05 09:51:54 -05:00
Drew Bailey
17d876d5ef
rename function, initialize log level better
...
underscores instead of dashes for query params
2019-11-05 09:51:53 -05:00
Drew Bailey
8178beecf0
address feedback, use agent_endpoint instead of monitor
2019-11-05 09:51:53 -05:00
Drew Bailey
2533617888
rpc acl tests for both monitor endpoints
2019-11-05 09:51:51 -05:00
Drew Bailey
3c33747e1f
client monitor endpoint tests
2019-11-05 09:51:50 -05:00
Drew Bailey
3b9c33a5f0
new hclog with standardlogger intercept
2019-11-05 09:51:49 -05:00
Drew Bailey
a45ae1cd58
enable json formatting, use queryoptions
2019-11-05 09:51:49 -05:00
Drew Bailey
e076204820
get local rpc endpoint working
2019-11-05 09:51:48 -05:00
Drew Bailey
976c43157c
remove log_writer
...
prefix output with proper spacing
update gzip handler, adjust first byte flow to allow gzip handler bypass
wip, first stab at wiring up rpc endpoint
2019-11-05 09:51:48 -05:00
Drew Bailey
b386119d15
Add Agent Monitor to receive streaming logs
...
Queries /v1/agent/monitor and receives streaming logs from client
2019-11-05 09:51:47 -05:00
Jeff Mitchell
13dab7dd24
Divest api/ package of deps elsewhere in the nomad repo. ( #5488 )
...
* Divest api/ package of deps elsewhere in the nomad repo.
This will allow making api/ a module without then pulling in the
external repo, leading to a package name conflict.
This required some migration of tests to an apitests/ folder (can be
moved anywhere as it has no deps on it). It also required some
duplication of code, notably some test helpers from api/ -> apitests/
and part (but not all) of testutil/ -> api/testutil/.
Once there's more separation and an e.g. sdk/ folder those can be
removed in favor of a dep on the sdk/ folder, provided the sdk/ folder
doesn't depend on api/ or /.
* Also remove consul dep from api/ package
* Fix stupid linters
* Some restructuring
2019-03-29 14:47:40 -04:00
Michael Schurter
7dd7fbcda2
non-Existent -> nonexistent
...
Reverting from #3963
https://www.merriam-webster.com/dictionary/existent
2018-03-12 11:59:33 -07:00
Josh Soref
85fabc63c8
spelling: expected
2018-03-11 17:57:01 +00:00
Josh Soref
7f6e4012a0
spelling: existent
2018-03-11 18:30:37 +00:00
Michael Schurter
f141bf3fe5
Add Agent.Health to api package
2017-10-13 16:43:00 -07:00
Alex Dadgar
4173834231
Enable more linters
2017-09-26 15:26:33 -07:00
Alex Dadgar
789751d84e
Parallel
2017-07-21 16:33:04 -07:00
Ben Barnard
372303f4c6
Return AgentSelf struct from Agent.Self() instead of map
...
api.AgentSelf mirrors command.agent.agentSelf, and makes it easier to
work with the results of a call to Agent.Self()
2017-03-08 15:59:10 +01:00
Diptanu Choudhury
e057c39ea1
Fixed a test
2016-11-08 15:48:47 -08:00
Sean Chittenden
5e11e25639
Remove testing for an API that doesn't exist any more.
2016-06-10 15:50:11 -04:00
Jake Champlin
9a6bd0d7fe
Updates from comments, fix tests
2016-01-28 23:11:13 -05:00
Gregory Man
1af62592c1
Sort server-members output using name and tags
2015-10-23 21:33:18 +03:00
Ryan Uber
fb35ceb4c3
api: add client server methods
2015-09-24 21:17:33 -07:00
Ryan Uber
b9cd47807c
api: fix agent test
2015-09-14 13:24:03 -07:00
Ryan Uber
761aad186a
api: return the number of nodes joined
2015-09-14 13:24:03 -07:00
Ryan Uber
40a5696fb2
api: finish agent endpoint
2015-09-08 14:47:29 -07:00
Ryan Uber
801db291ed
api: agent join api works
2015-09-08 14:26:53 -07:00
Ryan Uber
5a8bc52c56
api: region is queryable, optimize agent caching
2015-09-08 12:13:39 -07:00
Ryan Uber
500daf5d7f
api: datacenter is cached and queryable
2015-09-08 12:01:54 -07:00
Ryan Uber
c1f4faaab3
api: allow querying node name from agent
2015-09-08 11:51:20 -07:00
Ryan Uber
f5c57cedfa
api: add agent self call
2015-09-08 11:41:03 -07:00