open-consul/agent/consul
Frank Schröder 44e6b8122d acl: consolidate error handling (#3401)
The error handling of the ACL code relies on the presence of certain
magic error messages. Since the error values are sent via RPC between
older and newer consul agents we cannot just replace the magic values
with typed errors and switch to type checks since this would break
compatibility with older clients.

Therefore, this patch moves all magic ACL error messages into the acl
package and provides default error values and helper functions which
determine the type of error.
2017-08-23 16:52:48 +02:00
..
prepared_query agent: move agent/consul/structs to agent/structs 2017-08-09 14:32:12 +02:00
state agent: move agent/consul/structs to agent/structs 2017-08-09 14:32:12 +02:00
acl.go acl: consolidate error handling (#3401) 2017-08-23 16:52:48 +02:00
acl_endpoint.go acl: consolidate error handling (#3401) 2017-08-23 16:52:48 +02:00
acl_endpoint_test.go acl: consolidate error handling (#3401) 2017-08-23 16:52:48 +02:00
acl_replication.go agent: move agent/consul/structs to agent/structs 2017-08-09 14:32:12 +02:00
acl_replication_test.go agent: move agent/consul/structs to agent/structs 2017-08-09 14:32:12 +02:00
acl_test.go acl: consolidate error handling (#3401) 2017-08-23 16:52:48 +02:00
autopilot.go agent: move agent/consul/agent to agent/metadata 2017-08-09 14:36:52 +02:00
autopilot_test.go rpc: run agent/consul tests in parallel 2017-07-07 09:22:34 +02:00
catalog_endpoint.go acl: consolidate error handling (#3401) 2017-08-23 16:52:48 +02:00
catalog_endpoint_test.go acl: consolidate error handling (#3401) 2017-08-23 16:52:48 +02:00
client.go agent: drop unused code 2017-08-22 00:02:46 +02:00
client_test.go agent: move agent/consul/servers to agent/router 2017-08-09 14:36:37 +02:00
config.go agent: move agent/consul/structs to agent/structs 2017-08-09 14:32:12 +02:00
coordinate_endpoint.go acl: consolidate error handling (#3401) 2017-08-23 16:52:48 +02:00
coordinate_endpoint_test.go acl: consolidate error handling (#3401) 2017-08-23 16:52:48 +02:00
filter.go Revert "Return 403 rather than a 404 when acls cause all results to be filter…" 2017-08-09 15:06:57 -07:00
filter_test.go Revert "Return 403 rather than a 404 when acls cause all results to be filter…" 2017-08-09 15:06:57 -07:00
flood.go agent: move agent/consul/servers to agent/router 2017-08-09 14:36:37 +02:00
fsm.go agent: move agent/consul/structs to agent/structs 2017-08-09 14:32:12 +02:00
fsm_test.go agent: move agent/consul/structs to agent/structs 2017-08-09 14:32:12 +02:00
health_endpoint.go agent: move agent/consul/structs to agent/structs 2017-08-09 14:32:12 +02:00
health_endpoint_test.go agent: move agent/consul/structs to agent/structs 2017-08-09 14:32:12 +02:00
helper_test.go test: Changes WAN/LAN join confirmer to use port number vs. address. 2017-07-07 09:22:34 +02:00
internal_endpoint.go acl: consolidate error handling (#3401) 2017-08-23 16:52:48 +02:00
internal_endpoint_test.go acl: consolidate error handling (#3401) 2017-08-23 16:52:48 +02:00
issue_test.go agent: move agent/consul/structs to agent/structs 2017-08-09 14:32:12 +02:00
kvs_endpoint.go acl: consolidate error handling (#3401) 2017-08-23 16:52:48 +02:00
kvs_endpoint_test.go acl: consolidate error handling (#3401) 2017-08-23 16:52:48 +02:00
leader.go acl: consolidate error handling (#3401) 2017-08-23 16:52:48 +02:00
leader_test.go agent: move agent/consul/structs to agent/structs 2017-08-09 14:32:12 +02:00
merge.go agent: move agent/consul/agent to agent/metadata 2017-08-09 14:36:52 +02:00
merge_test.go pkg refactor 2017-06-10 18:52:45 +02:00
operator_autopilot_endpoint.go acl: consolidate error handling (#3401) 2017-08-23 16:52:48 +02:00
operator_autopilot_endpoint_test.go acl: consolidate error handling (#3401) 2017-08-23 16:52:48 +02:00
operator_endpoint.go pkg refactor 2017-06-10 18:52:45 +02:00
operator_raft_endpoint.go acl: consolidate error handling (#3401) 2017-08-23 16:52:48 +02:00
operator_raft_endpoint_test.go acl: consolidate error handling (#3401) 2017-08-23 16:52:48 +02:00
prepared_query_endpoint.go acl: consolidate error handling (#3401) 2017-08-23 16:52:48 +02:00
prepared_query_endpoint_test.go acl: consolidate error handling (#3401) 2017-08-23 16:52:48 +02:00
raft_rpc.go agent: move conn pool for muxed connections into separate pkg 2017-06-21 05:42:39 +02:00
rpc.go agent: move agent/consul/agent to agent/metadata 2017-08-09 14:36:52 +02:00
rpc_test.go agent: move agent/consul/structs to agent/structs 2017-08-09 14:32:12 +02:00
rtt.go agent: move agent/consul/structs to agent/structs 2017-08-09 14:32:12 +02:00
rtt_test.go agent: move agent/consul/structs to agent/structs 2017-08-09 14:32:12 +02:00
serf.go agent: move agent/consul/agent to agent/metadata 2017-08-09 14:36:52 +02:00
serf_test.go pkg refactor 2017-06-10 18:52:45 +02:00
server.go agent: drop unused code 2017-08-22 00:02:46 +02:00
server_test.go agent: move agent/consul/agent to agent/metadata 2017-08-09 14:36:52 +02:00
session_endpoint.go acl: consolidate error handling (#3401) 2017-08-23 16:52:48 +02:00
session_endpoint_test.go acl: consolidate error handling (#3401) 2017-08-23 16:52:48 +02:00
session_timers.go address review comments 2017-07-07 09:22:34 +02:00
session_timers_test.go rpc: refactor sessionTimers and fix racy tests 2017-07-07 09:22:34 +02:00
session_ttl.go agent: move agent/consul/structs to agent/structs 2017-08-09 14:32:12 +02:00
session_ttl_test.go agent: move agent/consul/structs to agent/structs 2017-08-09 14:32:12 +02:00
snapshot_endpoint.go acl: consolidate error handling (#3401) 2017-08-23 16:52:48 +02:00
snapshot_endpoint_test.go acl: consolidate error handling (#3401) 2017-08-23 16:52:48 +02:00
stats_fetcher.go agent: move agent/consul/agent to agent/metadata 2017-08-09 14:36:52 +02:00
stats_fetcher_test.go agent: move agent/consul/agent to agent/metadata 2017-08-09 14:36:52 +02:00
status_endpoint.go agent: move agent/consul/structs to agent/structs 2017-08-09 14:32:12 +02:00
status_endpoint_test.go rpc: run agent/consul tests in parallel 2017-07-07 09:22:34 +02:00
txn_endpoint.go Revert "Return 403 rather than a 404 when acls cause all results to be filter…" 2017-08-09 15:06:57 -07:00
txn_endpoint_test.go acl: consolidate error handling (#3401) 2017-08-23 16:52:48 +02:00
util.go agent: move agent/consul/agent to agent/metadata 2017-08-09 14:36:52 +02:00
util_test.go pkg refactor 2017-06-10 18:52:45 +02:00