From 74aa0bc6779af38018a03fd2cf4419fe85917904 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Fri, 19 Apr 2024 07:31:45 +0200 Subject: Adding upstream version 2.9.4. Signed-off-by: Daniel Baumann --- src/tools/analyzer/source_reader.py | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 src/tools/analyzer/source_reader.py (limited to 'src/tools/analyzer/source_reader.py') 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 -- cgit v1.2.3