Changeset View
Changeset View
Standalone View
Standalone View
swh/vault/__init__.py
Show All 10 Lines | |||||
import warnings | import warnings | ||||
logger = logging.getLogger(__name__) | logger = logging.getLogger(__name__) | ||||
BACKEND_TYPES: Dict[str, str] = { | BACKEND_TYPES: Dict[str, str] = { | ||||
"remote": ".api.client.RemoteVaultClient", | "remote": ".api.client.RemoteVaultClient", | ||||
"local": ".backend.VaultBackend", | "local": ".backend.VaultBackend", | ||||
"memory": ".in_memory_backend.InMemoryVaultBackend", | |||||
} | } | ||||
def get_vault(cls: str = "remote", **kwargs): | def get_vault(cls: str = "remote", **kwargs): | ||||
""" | """ | ||||
Get a vault object of class `vault_class` with arguments | Get a vault object of class `vault_class` with arguments | ||||
`vault_args`. | `vault_args`. | ||||
Show All 28 Lines |