Cloud Storage v0.4.0 CloudStorage.Google View Source
CloudStorage Google Documentation.
Link to this section Summary
Functions
Delete a File
Download a File
Get Files
Get a Rest Token
A callback executed when the Goth.Config server starts
List Files
Purge a CDN path content
Upload a File
Upload a File from an URL
Link to this section Functions
Delete a File.
Examples
iex> CloudStorage.Google.delete(“temp_file.txt”)
iex> CloudStorage.Google.put(“temp_file.txt”)
A callback executed when the Goth.Config server starts.
The sole argument is the :goth
configuration as stored in the
application environment. It must return {:ok, keyword}
with the updated
list of configuration.
To have your module’s init/1
callback called at startup, add your module
as the :config_module
in the application environment:
config :goth, config_module: MyConfig
Callback implementation for Goth.Config.init/1
.
List Files.
Examples
iex> CloudStorage.Google.list(“temp_file.txt”) |> elem(1) |> List.first() |> Map.get(“name”) “temp_file.txt”