FileStore.Adapters.S3 (file_store v0.3.0) View Source
Stores files using Amazon S3.
Dependencies
To use this adapter, you'll need to install and configure ExAws.S3
.
Configuration
bucket
- The name of your S3 bucket. This option is required.ex_aws
- A keyword list of options that can be used to override the default configuration forExAws
.
Example
iex> store = FileStore.Adapters.S3.new(
...> bucket: "mybucket"
...> )
%FileStore.Adapters.S3{...}
iex> FileStore.write(store, "foo", "hello world")
:ok
iex> FileStore.read(store, "foo")
{:ok, "hello world"}
Link to this section Summary
Link to this section Functions
Specs
new(keyword()) :: FileStore.t()
Create a new S3 adapter