swh.vault package

Module contents

swh.vault.get_vault(cls='remote', args={})[source]

Get a vault object of class vault_class with arguments vault_args.

Parameters
  • vault (dict) – dictionary with keys:

  • cls (-) – vault’s class, either ‘remote’

  • args (-) – dictionary with keys

Returns

an instance of VaultBackend (either local or remote)

Raises

ValueError if passed an unknown storage class.