swh.vault package

Subpackages:

Submodules:

Module contents:

swh.vault.get_vault(cls: str = 'remote', **kwargs)[source]

Get a vault object of class vault_class with arguments vault_args.

Parameters
  • cls – vault’s class, either ‘remote’ or ‘local’

  • kwargs – arguments to pass to the class’ constructor

Returns

an instance of VaultBackend (either local or remote)

Raises

ValueError if passed an unknown storage class.