open-nomad/nomad
Michael Schurter e204a287ed Refactor Consul Syncer into new ServiceClient
Fixes #2478 #2474 #1995 #2294

The new client only handles agent and task service advertisement. Server
discovery is mostly unchanged.

The Nomad client agent now handles all Consul operations instead of the
executor handling task related operations. When upgrading from an
earlier version of Nomad existing executors will be told to deregister
from Consul so that the Nomad agent can re-register the task's services
and checks.

Drivers - other than qemu - now support an Exec method for executing
abritrary commands in a task's environment. This is used to implement
script checks.

Interfaces are used extensively to avoid interacting with Consul in
tests that don't assert any Consul related behavior.
2017-04-19 12:42:47 -07:00
..
mock Upsert Job Histories 2017-04-15 17:08:05 -07:00
state Respond to review comments 2017-04-19 10:54:03 -07:00
structs Respond to review comments 2017-04-19 10:54:03 -07:00
types
alloc_endpoint.go Nomad builds 2017-02-07 20:31:23 -08:00
alloc_endpoint_test.go Fix nomad tests 2017-02-07 22:10:33 -08:00
blocked_evals.go Cancel blocked evals upon successful one for job 2017-01-04 16:16:04 -08:00
blocked_evals_test.go Cancel blocked evals upon successful one for job 2017-01-04 16:16:04 -08:00
config.go Push to configs 2017-04-14 15:24:55 -07:00
core_sched.go GC and some fixes 2017-04-15 17:08:05 -07:00
core_sched_test.go GC and some fixes 2017-04-15 17:08:05 -07:00
eval_broker.go NewEvalBroker comment 2017-04-14 15:26:54 -07:00
eval_broker_test.go Push to configs 2017-04-14 15:24:55 -07:00
eval_endpoint.go Nomad builds 2017-02-07 20:31:23 -08:00
eval_endpoint_test.go Diff code fixes 2017-04-16 16:54:40 -07:00
fsm.go non-purge deregisters 2017-04-15 17:08:05 -07:00
fsm_test.go non-purge deregisters 2017-04-15 17:08:05 -07:00
heartbeat.go Nomad builds 2017-02-07 20:31:23 -08:00
heartbeat_test.go Merge pull request #2282 from hashicorp/f-raft-v2-stage-one 2017-02-08 15:26:16 -08:00
job_endpoint.go GC and some fixes 2017-04-15 17:08:05 -07:00
job_endpoint_test.go GC and some fixes 2017-04-15 17:08:05 -07:00
leader.go Push to configs 2017-04-14 15:24:55 -07:00
leader_test.go Push to configs 2017-04-14 15:24:55 -07:00
merge.go
node_endpoint.go Fix error checking 2017-03-29 13:59:43 -07:00
node_endpoint_test.go Recoverable struct field must be exported 2017-03-28 12:18:57 -07:00
operator_endpoint.go Operator command/endpoint/documentation 2017-02-09 18:04:46 -08:00
operator_endpoint_test.go Operator command/endpoint/documentation 2017-02-09 18:04:46 -08:00
periodic.go Handle periodic paramaterized jobs 2017-03-01 11:45:20 -08:00
periodic_endpoint.go Nomad builds 2017-02-07 20:31:23 -08:00
periodic_endpoint_test.go Tests compile 2017-02-07 21:30:57 -08:00
periodic_test.go Handle periodic paramaterized jobs 2017-03-01 11:45:20 -08:00
plan_apply.go Fix a panic during plan evaluation 2017-04-10 14:56:21 -07:00
plan_apply_pool.go
plan_apply_pool_test.go
plan_apply_test.go Tests compile 2017-02-07 21:30:57 -08:00
plan_endpoint.go
plan_endpoint_test.go
plan_queue.go
plan_queue_test.go
pool.go Remove dead code 2017-03-03 18:27:49 -08:00
raft_rpc.go Join + Leave peer 2017-02-02 15:49:06 -08:00
regions_endpoint.go
regions_endpoint_test.go
rpc.go Require TLS for server RPC when enabled 2017-04-06 09:34:36 -07:00
rpc_test.go
serf.go Handle Serf Reap event 2017-02-13 14:22:54 -08:00
serf_test.go Handle Serf Reap event 2017-02-13 14:22:54 -08:00
server.go Refactor Consul Syncer into new ServiceClient 2017-04-19 12:42:47 -07:00
server_test.go Refactor Consul Syncer into new ServiceClient 2017-04-19 12:42:47 -07:00
status_endpoint.go Respond to comments 2017-02-08 14:50:19 -08:00
status_endpoint_test.go
system_endpoint.go
system_endpoint_test.go GC and some fixes 2017-04-15 17:08:05 -07:00
timetable.go
timetable_test.go
util.go
util_test.go
vault.go remove leading slash on vault path 2017-02-28 14:03:18 -08:00
vault_test.go Recoverable struct field must be exported 2017-03-28 12:18:57 -07:00
vault_testing.go Add server metrics 2017-02-14 16:02:18 -08:00
worker.go Nomad builds 2017-02-07 20:31:23 -08:00
worker_test.go Tests compile 2017-02-07 21:30:57 -08:00