Source code for thoth.common.enums
#!/usr/bin/env python3
# thoth-common
# Copyright(C) 2020 Francesco Murdaca
#
# This program is free software: you can redistribute it and / or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
"""Enum types used for Thoth adviser integrations."""
from enum import Enum, auto
[docs]class ThothAdviserIntegrationEnum(Enum):
"""Class for Thoth Adviser integrations."""
CLI = 1
KEBECHET = 2
S2I = 3
JUPYTER_NOTEBOOK = 5
[docs]class InternalTriggerEnum(Enum):
"""Class containing different types of triggers, this is used to generate justifications for PRs and issues."""
CVE = auto()
HASH_MISMATCH = auto()
MISSING_PACKAGE = auto()
MISSING_VERSION = auto()
NEW_RELEASE = auto()