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.

Link to this function

get_connection_string_value(key)

View Source
@spec get_connection_string_value(String.t()) :: String.t() | nil

Returns the value in the connection string given the string key.

Link to this function

parse_connection_string(connection_string)

View Source
@spec parse_connection_string(nil | binary()) :: map()

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)
%{}
Link to this function

storage_account_connection_string()

View Source
@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.