Add some abstract methods to backend
Added some methods in base.py that should probably be defined in every backend Change-Id: I6f99994b82c2f17083d83b4723f3b4d61fc80160
This commit is contained in:
parent
0be7808705
commit
1d739dea9c
|
@ -39,3 +39,31 @@ class Backend(object):
|
||||||
def close(self):
|
def close(self):
|
||||||
"""Closes any resources this backend has open."""
|
"""Closes any resources this backend has open."""
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
@abc.abstractmethod
|
||||||
|
def get_audits(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
@abc.abstractmethod
|
||||||
|
def get_repairs(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
@abc.abstractmethod
|
||||||
|
def audit_cfg_from_name(self, name):
|
||||||
|
pass
|
||||||
|
|
||||||
|
@abc.abstractmethod
|
||||||
|
def repair_cfg_from_name(self, name):
|
||||||
|
pass
|
||||||
|
|
||||||
|
@abc.abstractmethod
|
||||||
|
def get_script_cfg(self, script_type):
|
||||||
|
pass
|
||||||
|
|
||||||
|
@abc.abstractmethod
|
||||||
|
def check_script_exists(self, script_type, script_name):
|
||||||
|
pass
|
||||||
|
|
||||||
|
@abc.abstractmethod
|
||||||
|
def add_script(self, script_type, data):
|
||||||
|
pass
|
||||||
|
|
Loading…
Reference in New Issue