open-consul/agent/metadata
Daniel Nephin f2cf586414 Refactor of serf feature flag tags.
This refactor is to make it easier to see how serf feature flags are
encoded as serf tags, and where those feature flags are read.

- use constants for both the prefix and feature flag name. A constant
  makes it much easier for an IDE to locate the read and write location.
- isolate the feature-flag encoding logic in the metadata package, so
  that the feature flag prefix can be unexported. Only expose a function
  for encoding the flags into tags. This logic is now next to the logic
  which reads the tags.
- remove the duplicate `addEnterpriseSerfTags` functions. Both Client
  and Server structs had the same implementation. And neither
  implementation needed the method receiver.
2021-05-20 12:57:06 -04:00
..
build.go Skips unique node ID check for old versions of Consul. 2017-09-05 22:57:29 -07:00
build_test.go Replace goe/verify.Values with testify/require.Equal (#7993) 2020-06-02 12:41:25 -04:00
server.go Refactor of serf feature flag tags. 2021-05-20 12:57:06 -04:00
server_internal_test.go agent: move agent/consul/agent to agent/metadata 2017-08-09 14:36:52 +02:00
server_test.go Refactor of serf feature flag tags. 2021-05-20 12:57:06 -04:00