Class ServiceConfig.Lakefs

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

public static class ServiceConfig.Lakefs extends Object implements ServiceConfig
Configuration for service lakefs.
  • Field Details

    • branch

      public final String branch

      Name of the branch or a commit ID. Default is main.

      This is optional.

    • endpoint

      public final String endpoint

      Base url.

      This is required.

    • password

      public final String password

      Password for Lakefs basic authentication.

      This is required.

    • repository

      public final String repository

      The repository name

      This is required.

    • root

      public final String root

      Root of this backend. Can be "/path/to/dir".

      Default is "/".

    • username

      public final String username

      Username for Lakefs basic authentication.

      This is required.

  • Constructor Details

    • Lakefs

      public Lakefs()
  • 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