Changeset View
Changeset View
Standalone View
Standalone View
swh/objstorage/__init__.py
# Copyright (C) 2016 The Software Heritage developers | # Copyright (C) 2016 The Software Heritage developers | ||||
# See the AUTHORS file at the top-level directory of this distribution | # See the AUTHORS file at the top-level directory of this distribution | ||||
# License: GNU General Public License version 3, or any later version | # License: GNU General Public License version 3, or any later version | ||||
# See top-level LICENSE file for more information | # See top-level LICENSE file for more information | ||||
from .objstorage import ObjStorage | from .objstorage import ObjStorage | ||||
from .objstorage_pathslicing import PathSlicingObjStorage | from .objstorage_pathslicing import PathSlicingObjStorage | ||||
from .objstorage_in_memory import InMemoryObjStorage | from .objstorage_in_memory import InMemoryObjStorage | ||||
from .api.client import RemoteObjStorage | from .api.client import RemoteObjStorage | ||||
from .multiplexer import MultiplexerObjStorage, StripingObjStorage | from .multiplexer import MultiplexerObjStorage, StripingObjStorage | ||||
from .multiplexer.filter import add_filters | from .multiplexer.filter import add_filters | ||||
from swh.objstorage.objstorage_weed import WeedObjStorage | |||||
__all__ = ['get_objstorage', 'ObjStorage'] | __all__ = ['get_objstorage', 'ObjStorage'] | ||||
_STORAGE_CLASSES = { | _STORAGE_CLASSES = { | ||||
'pathslicing': PathSlicingObjStorage, | 'pathslicing': PathSlicingObjStorage, | ||||
'remote': RemoteObjStorage, | 'remote': RemoteObjStorage, | ||||
'memory': InMemoryObjStorage, | 'memory': InMemoryObjStorage, | ||||
'weed': WeedObjStorage, | |||||
} | } | ||||
_STORAGE_CLASSES_MISSING = { | _STORAGE_CLASSES_MISSING = { | ||||
} | } | ||||
try: | try: | ||||
from swh.objstorage.cloud.objstorage_azure import ( | from swh.objstorage.cloud.objstorage_azure import ( | ||||
AzureCloudObjStorage, | AzureCloudObjStorage, | ||||
▲ Show 20 Lines • Show All 75 Lines • Show Last 20 Lines |