mirror of https://github.com/status-im/consul.git
786b3b1095
In order to be able to reload the TLS configuration, we need one way to generate the different configurations. This PR introduces a `tlsutil.Configurator` which holds a `tlsutil.Config`. Afterwards it is responsible for rendering every `tls.Config`. In this particular PR I moved `IncomingHTTPSConfig`, `IncomingTLSConfig`, and `OutgoingTLSWrapper` into `tlsutil.Configurator`. This PR is a pure refactoring - not a single feature added. And not a single test added. I only slightly modified existing tests as necessary. |
||
---|---|---|
.. | ||
builder.go | ||
config.go | ||
default.go | ||
default_oss.go | ||
doc.go | ||
flags.go | ||
flags_test.go | ||
flagset.go | ||
merge.go | ||
merge_test.go | ||
patch_hcl.go | ||
patch_hcl_test.go | ||
runtime.go | ||
runtime_test.go | ||
segment_oss.go | ||
segment_oss_test.go | ||
translate.go | ||
translate_test.go |