25 lines
510 B
Python
25 lines
510 B
Python
"""
|
|
********************************************
|
|
* @Date: 2024 09 27
|
|
* @Description: TargetBase存储后端的抽象类
|
|
********************************************
|
|
"""
|
|
|
|
from abc import ABC, abstractmethod
|
|
from core.objects.backup_object import BackupObject
|
|
|
|
class TargetBase(ABC):
|
|
@abstractmethod
|
|
def test(self) -> bool:
|
|
"""
|
|
测试目标连通性
|
|
|
|
:param
|
|
:return
|
|
"""
|
|
pass
|
|
|
|
@abstractmethod
|
|
def back(self, back_object: BackupObject):
|
|
pass
|