Changeset View
Changeset View
Standalone View
Standalone View
swh/objstorage/__init__.py
from .objstorage import ObjStorage | from .objstorage import ObjStorage | ||||
from .objstorage_pathslicing import PathSlicingObjStorage | from .objstorage_pathslicing import PathSlicingObjStorage | ||||
from .api.client import RemoteObjStorage | from .api.client import RemoteObjStorage | ||||
from .multiplexer import MultiplexerObjStorage | from .multiplexer import MultiplexerObjStorage | ||||
from .multiplexer.filter import add_filters | from .multiplexer.filter import add_filters | ||||
# TODO remove PathSlicingObjStorage from this list once the config | # TODO remove PathSlicingObjStorage from this list once the config | ||||
# loading will be updated and no hardcoded objstorage types should | # loading will be updated and no hardcoded objstorage types should | ||||
# remains. | # remains. | ||||
__all__ = ['get_objstorage', 'ObjStorage', 'PathSlicingObjStorage'] | __all__ = ['get_objstorage', 'ObjStorage'] | ||||
_STORAGE_CLASSES = { | _STORAGE_CLASSES = { | ||||
'pathslicing': PathSlicingObjStorage, | 'pathslicing': PathSlicingObjStorage, | ||||
'remote': RemoteObjStorage, | 'remote': RemoteObjStorage, | ||||
} | } | ||||
def get_objstorage(cls, args): | def get_objstorage(cls, args): | ||||
Show All 33 Lines |