Changeset View
Changeset View
Standalone View
Standalone View
swh/objstorage/factory.py
Show All 9 Lines | |||||
from swh.objstorage.backends.generator import RandomGeneratorObjStorage | from swh.objstorage.backends.generator import RandomGeneratorObjStorage | ||||
from swh.objstorage.backends.http import HTTPReadOnlyObjStorage | from swh.objstorage.backends.http import HTTPReadOnlyObjStorage | ||||
from swh.objstorage.backends.in_memory import InMemoryObjStorage | from swh.objstorage.backends.in_memory import InMemoryObjStorage | ||||
from swh.objstorage.backends.noop import NoopObjStorage | from swh.objstorage.backends.noop import NoopObjStorage | ||||
from swh.objstorage.backends.pathslicing import PathSlicingObjStorage | from swh.objstorage.backends.pathslicing import PathSlicingObjStorage | ||||
from swh.objstorage.backends.seaweedfs import SeaweedFilerObjStorage | from swh.objstorage.backends.seaweedfs import SeaweedFilerObjStorage | ||||
from swh.objstorage.multiplexer import MultiplexerObjStorage, StripingObjStorage | from swh.objstorage.multiplexer import MultiplexerObjStorage, StripingObjStorage | ||||
from swh.objstorage.multiplexer.filter import add_filters | from swh.objstorage.multiplexer.filter import add_filters | ||||
from swh.objstorage.objstorage import ID_HEXDIGEST_LENGTH, ObjStorage # noqa | from swh.objstorage.objstorage import ObjStorage | ||||
__all__ = ["get_objstorage", "ObjStorage"] | __all__ = ["get_objstorage", "ObjStorage"] | ||||
_STORAGE_CLASSES: Dict[str, Union[type, Callable[..., type]]] = { | _STORAGE_CLASSES: Dict[str, Union[type, Callable[..., type]]] = { | ||||
"pathslicing": PathSlicingObjStorage, | "pathslicing": PathSlicingObjStorage, | ||||
"remote": RemoteObjStorage, | "remote": RemoteObjStorage, | ||||
"memory": InMemoryObjStorage, | "memory": InMemoryObjStorage, | ||||
▲ Show 20 Lines • Show All 103 Lines • Show Last 20 Lines |