summaryrefslogtreecommitdiffstats
path: root/src/tools/analyzer/source_reader.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 05:31:45 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-19 05:31:45 +0000
commit74aa0bc6779af38018a03fd2cf4419fe85917904 (patch)
tree9cb0681aac9a94a49c153d5823e7a55d1513d91f /src/tools/analyzer/source_reader.py
parentInitial commit. (diff)
downloadsssd-74aa0bc6779af38018a03fd2cf4419fe85917904.tar.xz
sssd-74aa0bc6779af38018a03fd2cf4419fe85917904.zip
Adding upstream version 2.9.4.upstream/2.9.4
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/tools/analyzer/source_reader.py')
-rw-r--r--src/tools/analyzer/source_reader.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/tools/analyzer/source_reader.py b/src/tools/analyzer/source_reader.py
new file mode 100644
index 0000000..10d2d37
--- /dev/null
+++ b/src/tools/analyzer/source_reader.py
@@ -0,0 +1,27 @@
+from enum import Enum
+
+from abc import ABC, abstractmethod
+
+
+class Reader(ABC):
+ """
+ An abstract class used to represent a source Reader
+ """
+
+ class Component(Enum):
+ """ SSSD component to enable for reading """
+ NSS = 1 # NSS Responder
+ PAM = 2 # PAM Responder
+ BE = 3 # Backend
+
+ @abstractmethod
+ def __init__(self):
+ pass
+
+ @abstractmethod
+ def __iter__(self):
+ pass
+
+ @abstractmethod
+ def set_component(self):
+ pass