open-consul/agent/auto-config
Daniel Nephin 86c9cb037f tlsutil: reduce interface provided to auto-config
Replace two methods with a single one that returns the cert. This moves more
of the logic into the single caller (auto-config).

tlsutil.Configurator is widely used. By keeping it smaller and focused only on storing and
returning TLS config, we make the code easier to follow.

These two methods were more related to auto-config than to tlsutil, so reducing the interface
moves the logic closer to the feature that requires it.
2021-06-22 14:11:28 -04:00
..
auto_config.go hcs-1936: Prepare for adding license auto-retrieval to auto-config in enterprise 2021-05-24 13:20:30 -04:00
auto_config_oss.go hcs-1936: Prepare for adding license auto-retrieval to auto-config in enterprise 2021-05-24 13:20:30 -04:00
auto_config_oss_test.go hcs-1936: Prepare for adding license auto-retrieval to auto-config in enterprise 2021-05-24 13:20:30 -04:00
auto_config_test.go tlsutil: reduce interface provided to auto-config 2021-06-22 14:11:28 -04:00
auto_encrypt.go hcs-1936: Prepare for adding license auto-retrieval to auto-config in enterprise 2021-05-24 13:20:30 -04:00
auto_encrypt_test.go tlsutil: reduce interface provided to auto-config 2021-06-22 14:11:28 -04:00
config.go tlsutil: reduce interface provided to auto-config 2021-06-22 14:11:28 -04:00
config_oss.go hcs-1936: Prepare for adding license auto-retrieval to auto-config in enterprise 2021-05-24 13:20:30 -04:00
config_translate.go Merge of auto-config and auto-encrypt code (#8523) 2020-08-31 13:12:17 -04:00
config_translate_test.go Merge of auto-config and auto-encrypt code (#8523) 2020-08-31 13:12:17 -04:00
mock_oss_test.go hcs-1936: Prepare for adding license auto-retrieval to auto-config in enterprise 2021-05-24 13:20:30 -04:00
mock_test.go tlsutil: reduce interface provided to auto-config 2021-06-22 14:11:28 -04:00
persist.go Merge of auto-config and auto-encrypt code (#8523) 2020-08-31 13:12:17 -04:00
run.go tlsutil: reduce interface provided to auto-config 2021-06-22 14:11:28 -04:00
server_addr.go Merge of auto-config and auto-encrypt code (#8523) 2020-08-31 13:12:17 -04:00
tls.go Merge of auto-config and auto-encrypt code (#8523) 2020-08-31 13:12:17 -04:00
tls_test.go Merge of auto-config and auto-encrypt code (#8523) 2020-08-31 13:12:17 -04:00