selfprivacy-rest-api/selfprivacy_api/backup/providers/__init__.py

12 lines
396 B
Python
Raw Normal View History

2023-02-01 11:58:55 +00:00
from selfprivacy_api.graphql.queries.providers import BackupProvider
from selfprivacy_api.backup.providers.provider import AbstractBackupProvider
from selfprivacy_api.backup.providers.backblaze import Backblaze
PROVIDER_MAPPING = {
BackupProvider.BACKBLAZE: Backblaze
}
def get_provider(provider_type : BackupProvider) -> AbstractBackupProvider:
return PROVIDER_MAPPING[provider_type]