1"""
2Application Kinds of Salt apps.
3These are used to indicate what kind of Application is using RAET
4"""
5
6from collections import namedtuple
7
8from salt.utils.odict import OrderedDict
9
10# Python equivalent of an enum
11APPL_KINDS = OrderedDict([("master", 0), ("minion", 1), ("syndic", 2), ("caller", 3)])
12APPL_KIND_NAMES = OrderedDict(
13    (v, k) for k, v in list(APPL_KINDS.items())
14)  # inverse map
15ApplKind = namedtuple("ApplKind", list(APPL_KINDS.keys()))
16applKinds = ApplKind(**APPL_KINDS)
17