Azure Blob Storage operations.
Supports binary and iodata uploads and downloads. upload_stream/4 and
download_stream/4 accept enumerables but buffer content in memory in v0.1.0;
chunked streaming is planned for a future release.
Summary
Functions
Deletes a blob.
Downloads a blob and returns its content.
Downloads a blob as an enumerable.
Returns blob metadata.
Sets blob metadata. Replaces all existing metadata keys.
Uploads a blob from binary or iodata content.
Uploads a blob from an enumerable.
Types
Functions
@spec delete(AzureSDK.Storage.Client.t(), String.t(), String.t(), keyword()) :: {:ok, :deleted} | {:error, AzureSDK.Error.t()}
Deletes a blob.
@spec download(AzureSDK.Storage.Client.t(), String.t(), String.t(), keyword()) :: {:ok, blob()} | {:error, AzureSDK.Error.t()}
Downloads a blob and returns its content.
@spec download_stream(AzureSDK.Storage.Client.t(), String.t(), String.t(), keyword()) :: {:ok, Enumerable.t()} | {:error, AzureSDK.Error.t()}
Downloads a blob as an enumerable.
In v0.1.0 the full blob is downloaded into memory first, then exposed as a single-chunk enumerable. Chunked streaming is planned for a future release.
@spec metadata(AzureSDK.Storage.Client.t(), String.t(), String.t(), keyword()) :: {:ok, map()} | {:error, AzureSDK.Error.t()}
Returns blob metadata.
@spec set_metadata( AzureSDK.Storage.Client.t(), String.t(), String.t(), map(), keyword() ) :: {:ok, map()} | {:error, AzureSDK.Error.t()}
Sets blob metadata. Replaces all existing metadata keys.
Returns the metadata that was set.
@spec upload(AzureSDK.Storage.Client.t(), String.t(), String.t(), iodata(), keyword()) :: {:ok, blob()} | {:error, AzureSDK.Error.t()}
Uploads a blob from binary or iodata content.
@spec upload_stream( AzureSDK.Storage.Client.t(), String.t(), String.t(), Enumerable.t(), keyword() ) :: {:ok, blob()} | {:error, AzureSDK.Error.t()}
Uploads a blob from an enumerable.
In v0.1.0 the enumerable is fully materialized in memory before upload.