Browse Source

Add some abstract methods to backend

Added some methods in base.py that should probably be defined in
every backend

Change-Id: I6f99994b82c2f17083d83b4723f3b4d61fc80160
Pranesh Pandurangan 4 years ago
parent
commit
1d739dea9c
1 changed files with 28 additions and 0 deletions
  1. 28
    0
      entropy/backends/base.py

+ 28
- 0
entropy/backends/base.py View File

@@ -39,3 +39,31 @@ class Backend(object):
39 39
     def close(self):
40 40
         """Closes any resources this backend has open."""
41 41
         pass
42
+
43
+    @abc.abstractmethod
44
+    def get_audits(self):
45
+        pass
46
+
47
+    @abc.abstractmethod
48
+    def get_repairs(self):
49
+        pass
50
+
51
+    @abc.abstractmethod
52
+    def audit_cfg_from_name(self, name):
53
+        pass
54
+
55
+    @abc.abstractmethod
56
+    def repair_cfg_from_name(self, name):
57
+        pass
58
+
59
+    @abc.abstractmethod
60
+    def get_script_cfg(self, script_type):
61
+        pass
62
+
63
+    @abc.abstractmethod
64
+    def check_script_exists(self, script_type, script_name):
65
+        pass
66
+
67
+    @abc.abstractmethod
68
+    def add_script(self, script_type, data):
69
+        pass

Loading…
Cancel
Save