Class ServiceConfig.Etcd

java.lang.Object
org.apache.opendal.ServiceConfig.Etcd
All Implemented Interfaces:
ServiceConfig
Enclosing interface:
ServiceConfig

public static class ServiceConfig.Etcd extends Object implements ServiceConfig
Configuration for service etcd.
  • Field Details

    • caPath

      public final String caPath

      PEM certificate authority file used to verify the server. Enables TLS independently of cert_path and key_path.

      default is None

    • certPath

      public final String certPath

      PEM client certificate file used for mutual TLS. Must be configured together with key_path.

      default is None

    • endpoints

      public final String endpoints

      network address of the Etcd services. Use HTTPS endpoints for TLS. Set ca_path to trust a custom certificate authority. Client authentication additionally requires both cert_path and key_path. e.g. "127.0.0.1:23790,127.0.0.1:23791,127.0.0.1:23792" or "http://127.0.0.1:23790,http://127.0.0.1:23791,http://127.0.0.1:23792" or "https://127.0.0.1:23790,https://127.0.0.1:23791,https://127.0.0.1:23792"

      default is "http://127.0.0.1:2379"

    • keyPath

      public final String keyPath

      PEM client private key file used for mutual TLS. Must be configured together with cert_path.

      default is None

    • maxDecodingMessageSize

      public final Long maxDecodingMessageSize

      the maximum size in bytes of a gRPC response that the etcd client decodes.

      Set this to read values larger than the etcd client's own limit. The etcd server must also allow responses of that size.

      Refer to etcd_client::KvClient::max_decoding_message_size

      default is None, which keeps the etcd client default of 4 MiB

    • password

      public final String password

      the password for authentication

      default is None

    • root

      public final String root

      the working directory of the etcd service. Can be "/path/to/dir"

      default is "/"

    • username

      public final String username

      the username to connect etcd service.

      default is None

  • Constructor Details

    • Etcd

      public Etcd()
  • Method Details

    • scheme

      public String scheme()
      Description copied from interface: ServiceConfig
      The scheme of the service.
      Specified by:
      scheme in interface ServiceConfig
      Returns:
      the scheme
    • configMap

      public Map<String,String> configMap()
      Description copied from interface: ServiceConfig
      Convert the structured config to a type erased config map.

      A map-valued field becomes one entry, under the field's option name, whose value is a JSON object string, such as assume_role_session_tags = {"Team":"data"}. The map's entries are not flattened into top-level entries. Its keys are sorted, an empty map becomes {}, and an unset field has no entry.

      Specified by:
      configMap in interface ServiceConfig
      Returns:
      the config map