Initialize a storage handler from a toml config file
Description
Section titled “Description”Creates a StorageHandler instance for the container_key based on the toml_file.
init_handler_from_toml( container_key, toml_file = "container-config.toml", env = options::opt("storage_env"), auth_type = options::opt("auth_type"))Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
container_key |
Character string. Logical container key defined in the [containers] section of the TOML file (e.g. "raw", "analytics"). |
toml_file |
Character string. Path to the TOML configuration file. Defaults to "container-config.toml". |
env |
Storage environment. One of "local", "staging", "prod". |
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
See Also
Section titled “See Also”[containerio_config()(containerio_config/) [init_storage_handler()(init_storage_handler/)
