Cloud Storage v0.5.1 CloudStorage.Azure View Source

CloudStorage Azure Documentation.

Link to this section Summary

Link to this section Functions

Link to this function

delete(full_path, bucket \\ nil) View Source

Delete a File.

Examples

iex> CloudStorage.Azure.delete("accounts/temp_file.txt")

iex> CloudStorage.Azure.put("accounts/temp_file.txt")

Link to this function

download(remote_path, local_path, bucket \\ nil) View Source

Download a File.

Examples

iex> CloudStorage.Azure.download("accounts/temp_file.txt", "test")

Link to this function

get(full_path, bucket \\ nil) View Source

Get a File.

Examples

iex> CloudStorage.Azure.get("accounts/temp_file.txt")

Get a Rest Token.

Examples

iex> CloudStorage.Azure.get_token() |> is_nil() false

Link to this function

list(full_path \\ "", folders \\ false, bucket \\ nil) View Source

List Files.

Examples

iex> CloudStorage.Azure.list("accounts/temp_file.txt") |> elem(1) |> List.first() |> Map.get("name") "accounts/temp_file.txt"

Link to this function

purge(full_path, bucket \\ nil) View Source

Purge a CDN path content.

Examples

iex> CloudStorage.Azure.purge("/temp_file.txt")

Link to this function

put(full_path, content \\ "", type \\ "application/octet-stream", bucket \\ nil) View Source

Send a File.

Examples

iex> CloudStorage.Azure.put("accounts/temp_file.txt")

Link to this function

upload(local_path, remote_path, bucket \\ nil) View Source

Upload a File.

Examples

iex> CloudStorage.Azure.upload("test/temp_file.txt", "accounts/temp_file.txt")

Link to this function

url(url, remote_path, bucket \\ nil) View Source

Upload a File from an URL.

Examples

iex> CloudStorage.Azure.url("https://www.google.com.br/images/branding/googlelogo/2x/googlelogo_color_272x92dp.png", "accounts/logo.png")