ExMicrosoftAzureStorage.Storage.Blob (ex_microsoft_azure_storage v1.1.1) View Source

Blob

Link to this section Summary

Link to this section Functions

Link to this function

copy(source, target, opts \\ [])

View Source
Link to this function

copy_stream(source, target, opts \\ [])

View Source
Link to this function

delete_blob(blob, opts \\ [])

View Source
Link to this function

get_blob(blob, opts \\ [])

View Source
Link to this function

get_blob_properties(blob)

View Source
Link to this function

get_block_list(blob, block_list_type \\ :all, snapshot \\ nil)

View Source
Link to this function

new(container, blob_name)

View Source
Link to this function

put_blob(blob, blob_data, opts \\ [])

View Source
Link to this function

put_blob_from_url(blob, url, opts \\ [])

View Source
Link to this function

put_block(blob, block_id, content)

View Source

The put_block operation creates a new block to be committed as part of a blob.

Link to this function

put_block_list(blob, block_list, headers \\ [])

View Source

The put_block_list operation writes a blob by specifying the list of block IDs that make up the blob.

Link to this function

set_blob_properties(blob, blob_properties)

View Source

Sets blob properties.

Follows the same behaviour as the underlying REST API where setting one property will also implicitly set others to nil, unless you explitly set them in this request.

See https://docs.microsoft.com/en-us/rest/api/storageservices/set-blob-properties

Link to this function

update_blob_properties(blob, blob_properties)

View Source

Updates blob properties.

Similar to set_blob_properties/2 but keeps existing values by first performing get_blob_properties/2, merging the result and handing it over to set_blob_properties/2.

Link to this function

upload_file(container, source_path, blob_name \\ nil, blob_properties \\ nil)

View Source

Specs

upload_file(
  ExMicrosoftAzureStorage.Storage.Container.t(),
  String.t(),
  String.t() | nil,
  map() | nil
) :: {:ok, map()} | {:error, map()}