pctasks.core.storage.StorageFactory#
- class pctasks.core.storage.StorageFactory(tokens: Optional[Tokens] = None, account_url: Optional[str] = None)#
Factory that produces Storage objects.
Fetches cached storage objects for folder and file URIs. Uses Tokens to enable SAS token IO from blob storage.
- Parameters:
tokens (Optional[Tokens]) –
account_url (Optional[str]) –
- __init__(tokens: Optional[Tokens] = None, account_url: Optional[str] = None) None#
- Parameters:
tokens (Optional[Tokens]) –
account_url (Optional[str]) –
- Return type:
None
Methods
__init__([tokens, account_url])clear_cache()Clears the cache.
get_storage(uri)Gets storage that represents the folder at the uri.
get_storage_for_file(file_uri)Returns storage and the path to the file based on that storage.
Attributes
tokensOptional tokens to use for blob storage.
account_urlBlob storage endpoint.