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:
Pranesh Pandurangan 2014-06-10 08:31:04 -07:00
parent 0be7808705
commit 1d739dea9c
1 changed files with 28 additions and 0 deletions

View File

@ -39,3 +39,31 @@ class Backend(object):
def close(self):
"""Closes any resources this backend has open."""
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