mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-24 04:51:27 +00:00
feature(backups): register localfile backend
This commit is contained in:
parent
aeb66b9c72
commit
0ce6624d5a
|
@ -3,10 +3,12 @@ from selfprivacy_api.backup.providers.provider import AbstractBackupProvider
|
|||
|
||||
from selfprivacy_api.backup.providers.backblaze import Backblaze
|
||||
from selfprivacy_api.backup.providers.memory import InMemoryBackup
|
||||
from selfprivacy_api.backup.providers.local_file import LocalFileBackup
|
||||
|
||||
PROVIDER_MAPPING = {
|
||||
BackupProvider.BACKBLAZE: Backblaze,
|
||||
BackupProvider.MEMORY: InMemoryBackup,
|
||||
BackupProvider.FILE: LocalFileBackup,
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -20,3 +20,4 @@ class BackupProvider(Enum):
|
|||
BACKBLAZE = "BACKBLAZE"
|
||||
# for testing purposes, make sure not selectable in prod.
|
||||
MEMORY = "MEMORY"
|
||||
FILE = "FILE"
|
||||
|
|
Loading…
Reference in a new issue