create_etcd_tls_options

Function create_etcd_tls_options 

Source
pub fn create_etcd_tls_options(
    tls_config: &TlsOption,
) -> Result<Option<TlsOptions>>
Expand description

Creates a Etcd [TlsOptions] from a TlsOption.

This function builds the TLS options for etcd client connections based on the provided TlsOption. It supports disabling TLS, setting a custom CA certificate, and configuring client identity for mutual TLS authentication.

Note: All TlsMode variants except TlsMode::Disable will be treated as enabling TLS.