Debian Codegraph @

src/plugins/fd/kubernetes-backend/baculak8s/services/service.py

raw
1 # Bacula(R) - The Network Backup Solution
2 #
3 # Copyright (C) 2000-2022 Kern Sibbald
4 #
5 # The original author of Bacula is Kern Sibbald, with contributions
6 # from many others, a complete list can be found in the file AUTHORS.
7 #
8 # You may use this file and others of this release according to the
9 # license defined in the LICENSE file, which includes the Affero General
10 # Public License, v3.0 ("AGPLv3") and some additional permissions and
11 # terms pursuant to its AGPLv3 Section 7.
12 #
13 # This notice must be preserved when any source code is
14 # conveyed and/or propagated.
15 #
16 # Bacula(R) is a registered trademark of Kern Sibbald.
17
18
19 from abc import ABCMeta, abstractmethod
20
21
22 class Service(metaclass=ABCMeta):
23 """
24 Abstract Base Class for all the Backend Services
25
26 Services represents auxiliary Business Logic supporting the
27 main functionality implemented by the Backend Jobs Classes
28 """
29
30 @abstractmethod
31 def execute(self, params=None):
32 """
33 Executes the Service
34 """
35 raise NotImplementedError