Skip to content

Initialize a storage handler

Creates a StorageHandler instance for the container name based on the given storage environment, authentication type, and AzureStorageConfig object.

init_storage_handler(
env = options::opt("storage_env"),
container = NULL,
config = NULL,
auth_type = options::opt("auth_type")
)
Argument Description
env Storage environment. One of "local", "staging", "prod".
container Storage container name
config containerio$AzureStorageConfig() object
auth_type Azure auth method. One of "device-code", "sas-token", "client-credentials". If NULL, falls back to session auth method, then "device-code".

A Python object of class StorageHandler

In local mode, all container and auth arguments are ignored and data is read from ./data/.