Belt v0.5.1 Belt.Provider.Filesystem View Source
Provider module offering support for storing files in a directory on the local filesystem.
Link to this section Summary
Types
Options for creating an Filesystem provider
Functions
Creates a new Filesystem provider configuration with default credentials
Implementation of the Belt.Provider.delete/3
callback
Implementation of the Belt.Provider.delete_all/2
callback
Implementation of the Belt.Provider.delete_scope/3
callback
Implementation of the Belt.Provider.get_info/3
callback
Implementation of the Belt.Provider.get_url/3
callback
Implementation of the Belt.Provider.list_files/2
callback
Creates a new Filesystem provider configuration
Implementation of the Belt.Provider.store/3
callback
Implementation of the Belt.Provider.store_data/3
callback
Implementation of the Provider.test_connection/2 callback
Link to this section Types
Options for creating an Filesystem provider.
Link to this section Functions
default([filesystem_option()]) :: {:ok, Belt.Provider.configuration()} | {:error, term()}
Creates a new Filesystem provider configuration with default credentials.
Any provided options
override the default settings which are retrieved from
the application configuration.
Example
# config.exs
config :belt, Belt.Provider.Filesystem,
default: [
directory: "/foo",
base_url: "https://example.com/"]
Implementation of the Belt.Provider.delete/3
callback.
Implementation of the Belt.Provider.delete_all/2
callback.
Implementation of the Belt.Provider.delete_scope/3
callback.
Implementation of the Belt.Provider.get_info/3
callback.
Implementation of the Belt.Provider.get_url/3
callback.
Implementation of the Belt.Provider.list_files/2
callback.
new([filesystem_option()]) :: {:ok, Belt.Provider.configuration()}
Creates a new Filesystem provider configuration.
Options
:directory
(required) -Path.t
- path to folder on the file system.:base_url
-String.t
- URL under which files stored with this configuration are accessible
Implementation of the Belt.Provider.store/3
callback.
Implementation of the Belt.Provider.store_data/3
callback.
Implementation of the Provider.test_connection/2 callback.