Class ServiceConfig.Swift

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

public static class ServiceConfig.Swift extends Object implements ServiceConfig
Configuration for service swift.
  • Field Details

    • container

      public final String container

      The container for Swift.

    • endpoint

      public final String endpoint

      The endpoint for Swift.

    • root

      public final String root

      The root for Swift.

    • tempUrlHashAlgorithm

      public final String tempUrlHashAlgorithm

      The hash algorithm for TempURL signing.

      Supported values: sha1, sha256, sha512. Defaults to sha256. The cluster must have the chosen algorithm in its tempurl.allowed_digests (check GET /info).

    • tempUrlKey

      public final String tempUrlKey

      The TempURL key for generating presigned URLs.

      This corresponds to the X-Account-Meta-Temp-URL-Key or X-Container-Meta-Temp-URL-Key header value configured on the Swift account or container.

    • token

      public final String token

      The token for Swift.

  • Constructor Details

    • Swift

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