Cloud Storage v0.5.1 CloudStorage.Azure View Source
CloudStorage Azure Documentation.
Link to this section Summary
Functions
Delete a File
Download a File
Get a File
Get a Rest Token
Purge a CDN path content
Upload a File
Upload a File from an URL
Link to this section Functions
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")
download(remote_path, local_path, bucket \\ nil) View Source
Download a File.
Examples
iex> CloudStorage.Azure.download("accounts/temp_file.txt", "test")
get(full_path, bucket \\ nil) View Source
Get a File.
Examples
iex> CloudStorage.Azure.get("accounts/temp_file.txt")
get_token() View Source
Get a Rest Token.
Examples
iex> CloudStorage.Azure.get_token() |> is_nil() false
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"
purge(full_path, bucket \\ nil) View Source
Purge a CDN path content.
Examples
iex> CloudStorage.Azure.purge("/temp_file.txt")
put(full_path, content \\ "", type \\ "application/octet-stream", bucket \\ nil) View Source
Send a File.
Examples
iex> CloudStorage.Azure.put("accounts/temp_file.txt")
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")
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")