swh.vault.cookers package#
Submodules#
- swh.vault.cookers.base module
- swh.vault.cookers.directory module
- swh.vault.cookers.git_bare module
RootObjectType
assert_never()
GitBareCooker
GitBareCooker.BUNDLE_TYPE
GitBareCooker.SUPPORTED_OBJECT_TYPES
GitBareCooker.use_fsck
GitBareCooker.obj_type
GitBareCooker.check_exists()
GitBareCooker.prepare_bundle()
GitBareCooker.init_git()
GitBareCooker.create_object_dirs()
GitBareCooker.repack()
GitBareCooker.git_fsck()
GitBareCooker.write_refs()
GitBareCooker.write_archive()
GitBareCooker.object_exists()
GitBareCooker.write_object()
GitBareCooker.push_subgraph()
GitBareCooker.load_objects()
GitBareCooker.push_revision_subgraph()
GitBareCooker.push_snapshot_subgraph()
GitBareCooker.load_revisions()
GitBareCooker.write_revision_node()
GitBareCooker.load_releases()
GitBareCooker.push_releases_subgraphs()
GitBareCooker.write_release_node()
GitBareCooker.load_directories()
GitBareCooker.load_directory()
GitBareCooker.load_content()
GitBareCooker.write_content()
- swh.vault.cookers.revision_flat module
- swh.vault.cookers.revision_gitfast module
- swh.vault.cookers.utils module
Module contents#
- swh.vault.cookers.get_cooker_cls(bundle_type: str, object_type: ObjectType)[source]#
- swh.vault.cookers.check_config(cfg: Dict[str, Any]) Dict[str, Any] [source]#
Ensure the configuration is ok to run a vault worker, and propagate defaults
- Raises:
EnvironmentError if the configuration is not for remote instance –
ValueError if one of the following keys is missing – vault, storage
- Returns:
New configuration dict to instantiate a vault worker instance
- swh.vault.cookers.get_cooker(bundle_type: str, swhid: CoreSWHID)[source]#
Instantiate a cooker class of type bundle_type.
- Returns:
Cooker class in charge of cooking the bundle_type with id swhid.
- Raises:
ValueError in case of a missing top-level vault key configuration or a storage – key.
EnvironmentError in case the vault configuration reference a non remote class. –