View Source Azurex.Blob.Config (AzureX v1.1.0)
Azurex Blob Config
Summary
Functions
Azure endpoint url, optional
Defaults to https://{name}.blob.core.windows.net
where name
is the storage_account_name
Azure container name, optional.
Returns the value in the connection string given the string key.
Parses a connection string to a key value map.
Azure storage account connection string.
Required if storage_account_name
or storage_account_key
not set.
Azure storage account access key. Base64 encoded, as provided by azure UI.
Required if storage_account_connection_string
not set.
Azure storage account name.
Required if storage_account_connection_string
not set.
Functions
@spec api_url() :: String.t()
Azure endpoint url, optional
Defaults to https://{name}.blob.core.windows.net
where name
is the storage_account_name
@spec default_container() :: String.t() | nil
Azure container name, optional.
Returns the value in the connection string given the string key.
Parses a connection string to a key value map.
Examples
iex> parse_connection_string("Key=value")
%{"Key" => "value"}
iex> parse_connection_string("Key1=hello;Key2=world")
%{"Key1" => "hello", "Key2" => "world"}
iex> parse_connection_string(nil)
%{}
@spec storage_account_connection_string() :: String.t() | nil
Azure storage account connection string.
Required if storage_account_name
or storage_account_key
not set.
@spec storage_account_key() :: binary()
Azure storage account access key. Base64 encoded, as provided by azure UI.
Required if storage_account_connection_string
not set.
@spec storage_account_name() :: String.t()
Azure storage account name.
Required if storage_account_connection_string
not set.