WIP storage
This commit is contained in:
12
backup_box/storage/storage.py
Normal file
12
backup_box/storage/storage.py
Normal file
@@ -0,0 +1,12 @@
|
||||
from abc import ABC, abstractmethod
|
||||
from ..config import StorageItem
|
||||
|
||||
class Storage(ABC):
|
||||
@classmethod
|
||||
def get_storage_type(cls) -> str:
|
||||
return cls.__name__ + "Item"
|
||||
|
||||
@classmethod
|
||||
@abstractmethod
|
||||
def from_config(cls, cfg: StorageItem) -> 'Storage':
|
||||
...
|
||||
Reference in New Issue
Block a user