Buckets.Location (buckets v1.0.0-rc.1)

Represents a storage location for a Buckets.Object.

The config field can be either:

  • A keyword list with adapter configuration
  • A Cloud module atom that implements the Buckets.Cloud behaviour

Summary

Functions

Gets the configuration from a Location.

Types

@type t() :: %Buckets.Location{config: Keyword.t() | module(), path: String.t()}

Functions

Link to this function

get_config(location)

@spec get_config(t()) :: Keyword.t()

Gets the configuration from a Location.

If the config is a keyword list, returns it as-is. If the config is a Cloud module, calls the module's config/0 function.

Link to this function

new(path, config)