open-nomad/client/driver/executor
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
..
executor.go Refactor Consul Syncer into new ServiceClient 2017-04-19 12:42:47 -07:00
executor_basic.go Push the Client's cleanup of Cgroups down 2016-07-09 23:45:33 -07:00
executor_linux.go Various fixes for setting user/group of task 2017-03-20 14:21:13 -07:00
executor_linux_test.go Fix tests broken by API change 2017-03-02 15:54:12 -08:00
executor_test.go Refactor Consul Syncer into new ServiceClient 2017-04-19 12:42:47 -07:00
executor_unix.go Move chroot building into TaskRunner 2017-01-05 16:31:49 -08:00
resource_container_default.go Rename resourceContainer{,Context} and resCon{,Ctx}. 2016-07-11 00:02:55 -07:00
resource_container_linux.go Rename resourceContainer{,Context} and resCon{,Ctx}. 2016-07-11 00:02:55 -07:00