consul/command/agent
Frank Schroeder 8ad66f4bea
agent: support custom check id and name
This patch adds support for a custom check id and name when
registering a service.

This is achieved by adding a CheckID and a Name field to the
CheckType structure which is used to register checks with a
service and when returning health check definitions.

CheckDefinition is a superset of CheckType which duplicates
some of the fields of CheckType. This patch decouples these
two structures by removing the embedding of CheckType in
CheckDefinition.

Fixes #3047
2017-05-17 20:17:08 +02:00
..
acl.go golint: Untangle if blocks with return in else 2017-04-25 09:26:13 -07:00
acl_endpoint.go Use fmt.Fprint/Fprintf/Fprintln 2017-04-20 09:02:59 -07:00
acl_endpoint_test.go test: drop error check on http.NewRequest 2017-05-10 17:42:38 +02:00
acl_test.go test: add helper for ioutil.TempDir/TempFile 2017-05-12 22:12:47 +02:00
agent.go agent: support custom check id and name 2017-05-17 20:17:08 +02:00
agent_endpoint.go agent: support custom check id and name 2017-05-17 20:17:08 +02:00
agent_endpoint_test.go agent: support custom check id and name 2017-05-17 20:17:08 +02:00
agent_test.go agent: support custom check id and name 2017-05-17 20:17:08 +02:00
bindata_assetfs.go Updates built-in static assets for web UI. 2017-05-08 19:50:54 -07:00
catalog_endpoint.go api: Return empty list instead of nil 2017-04-28 15:00:08 -07:00
catalog_endpoint_test.go test: inline request body encoding 2017-05-10 17:42:38 +02:00
check.go agent: support custom check id and name 2017-05-17 20:17:08 +02:00
check_test.go retry: Removes the description parameter. 2017-05-05 17:07:03 +02:00
command.go agent: move isAddrANY to separate package 2017-05-15 22:44:43 +02:00
command_test.go test: add helper for ioutil.TempDir/TempFile 2017-05-12 22:12:47 +02:00
config.go agent: move isAddrANY to separate package 2017-05-15 22:44:43 +02:00
config_aws.go Move AWS discovery code to command/agent/config_aws.go 2017-05-04 01:41:47 +02:00
config_gce.go Move GCE discovery code to command/agent/config_gce.go 2017-05-04 01:41:47 +02:00
config_test.go agent: support custom check id and name 2017-05-17 20:17:08 +02:00
coordinate_endpoint.go golint: Drop the unused value from range 2017-04-25 09:26:13 -07:00
coordinate_endpoint_test.go test: drop error check on http.NewRequest 2017-05-10 17:42:38 +02:00
dns.go Merge pull request #2690 from zeroae/f-simple-rfc2782 2017-03-02 14:49:36 -08:00
dns_test.go Tweaks some tests that were having a hard time in Travis CI and 2017-05-09 06:48:26 -07:00
event_endpoint.go Use fmt.Fprint/Fprintf/Fprintln 2017-04-20 09:02:59 -07:00
event_endpoint_test.go test: replace blocks and comments with sub-tests 2017-05-10 17:42:38 +02:00
flag_slice_value.go Working on the agent 2013-12-20 16:39:32 -08:00
flag_slice_value_test.go Revert "test: Run command/agent tests in parallel" 2017-04-27 14:39:04 -07:00
health_endpoint.go api: Return empty list instead of nil 2017-04-28 15:00:08 -07:00
health_endpoint_test.go test: drop error check on http.NewRequest 2017-05-10 17:42:38 +02:00
http.go agent: drop atlas/scada code 2017-05-10 23:06:36 +02:00
http_api.md Add `/v1/agent/self` and return local agent config 2014-05-27 01:15:33 +02:00
http_test.go test: add helper for ioutil.TempDir/TempFile 2017-05-12 22:12:47 +02:00
keyring.go agent: Replace client/server with delegate interface 2017-05-15 18:35:38 +02:00
keyring_test.go test: add helper for ioutil.TempDir/TempFile 2017-05-12 22:12:47 +02:00
kvs_endpoint.go golint: Untangle if blocks with return in else 2017-04-25 09:26:13 -07:00
kvs_endpoint_test.go test: drop error check on http.NewRequest 2017-05-10 17:42:38 +02:00
local.go golint: Drop the unused value from range 2017-04-25 09:26:13 -07:00
local_test.go test: Fix badly formatted retry.Run tests 2017-05-05 17:07:03 +02:00
operator_endpoint.go golint: Untangle if blocks with return in else 2017-04-25 09:26:13 -07:00
operator_endpoint_test.go test: drop error check on http.NewRequest 2017-05-10 17:42:38 +02:00
prepared_query_endpoint.go golint: Untangle if blocks with return in else 2017-04-25 09:26:13 -07:00
prepared_query_endpoint_test.go test: drop error check on http.NewRequest 2017-05-10 17:42:38 +02:00
remote_exec.go Remove duplicate constants 2017-04-20 09:54:49 -07:00
remote_exec_test.go Revert "test: Run command/agent tests in parallel" 2017-04-27 14:39:04 -07:00
session_endpoint.go golint: Drop the unused value from range 2017-04-25 09:26:13 -07:00
session_endpoint_test.go test: drop error check on http.NewRequest 2017-05-10 17:42:38 +02:00
snapshot_endpoint.go Adds support for snapshots and restores. (#2396) 2016-10-25 19:20:24 -07:00
snapshot_endpoint_test.go test: drop error check on http.NewRequest 2017-05-10 17:42:38 +02:00
status_endpoint.go More HTTP endpoints 2013-12-23 16:20:51 -08:00
status_endpoint_test.go Revert "test: Run command/agent tests in parallel" 2017-04-27 14:39:04 -07:00
structs.go agent: support custom check id and name 2017-05-17 20:17:08 +02:00
structs_test.go Revert "test: Run command/agent tests in parallel" 2017-04-27 14:39:04 -07:00
translate_addr.go Factors translate out into a separate file and makes safe for in-memory RPCs. 2016-08-15 15:05:02 -07:00
txn_endpoint.go golint: Untangle if blocks with return in else 2017-04-25 09:26:13 -07:00
txn_endpoint_test.go test: drop error check on http.NewRequest 2017-05-10 17:42:38 +02:00
ui_endpoint.go Remove duplicate constants 2017-04-20 09:54:49 -07:00
ui_endpoint_test.go test: add helper for ioutil.TempDir/TempFile 2017-05-12 22:12:47 +02:00
user_event.go Changes `disable_remote_exec` default to true so remote exec is opt-in. 2017-03-30 09:43:32 -07:00
user_event_test.go retry: Removes the description parameter. 2017-05-05 17:07:03 +02:00
util.go Remove the RPC client interface and update docs 2017-02-28 13:41:09 -08:00
util_test.go test: add helper for ioutil.TempDir/TempFile 2017-05-12 22:12:47 +02:00
watch_handler.go agent: Stop reaping child processes (resolves #1988) 2016-10-04 09:36:41 -06:00
watch_handler_test.go Revert "test: Run command/agent tests in parallel" 2017-04-27 14:39:04 -07:00