summaryrefslogtreecommitdiffstats
path: root/src/tools/analyzer/source_reader.py
blob: 10d2d3769979da519c008c1fa44e161acb6e2590 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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