thoth.adviser.boots package¶
Submodules¶
thoth.adviser.boots.cve_timestamp module¶
A boot to provide information about the last CVE update.
-
class
thoth.adviser.boots.cve_timestamp.
CveTimestampBoot
(*, unit_run: bool = False, configuration: Dict[str, Any] = NOTHING)[source]¶ Bases:
thoth.adviser.boot.Boot
A boot to provide information about the last CVE update.
thoth.adviser.boots.environment_info module¶
A boot to notify about environment used.
-
class
thoth.adviser.boots.environment_info.
EnvironmentInfoBoot
(*, unit_run: bool = False, configuration: Dict[str, Any] = NOTHING)[source]¶ Bases:
thoth.adviser.boot.Boot
A boot to notify about environment used.
thoth.adviser.boots.fully_specified_environment module¶
A boot to check for fully specified environment.
-
class
thoth.adviser.boots.fully_specified_environment.
FullySpecifiedEnvironment
(*, unit_run: bool = False, configuration: Dict[str, Any] = NOTHING)[source]¶ Bases:
thoth.adviser.boot.Boot
A boot to check for fully specified environment.
thoth.adviser.boots.labels module¶
A boot to notify about labels used during the resolution.
-
class
thoth.adviser.boots.labels.
LabelsBoot
(*, unit_run: bool = False, configuration: Dict[str, Any] = NOTHING)[source]¶ Bases:
thoth.adviser.boot.Boot
A boot to notify about labels used during the resolution.
thoth.adviser.boots.pipfile_hash module¶
A boot that checks for Pipfile hash and reports any mismatch to users..
-
class
thoth.adviser.boots.pipfile_hash.
PipfileHashBoot
(*, unit_run: bool = False, configuration: Dict[str, Any] = NOTHING)[source]¶ Bases:
thoth.adviser.boot.Boot
A boot that checks for Pipfile hash and reports any mismatch to users..
thoth.adviser.boots.platform module¶
A boot to check if recommendation is targeting a supported platform.
-
class
thoth.adviser.boots.platform.
PlatformBoot
(*, unit_run: bool = False, configuration: Dict[str, Any] = NOTHING)[source]¶ Bases:
thoth.adviser.boot.Boot
A boot to check if a supported platform is used.
We could check this based on the database entries, but as this will change rarely, we can hardcode supported platforms here.
thoth.adviser.boots.prescription_release module¶
A boot that adds info about prescription release.
-
class
thoth.adviser.boots.prescription_release.
PrescriptionReleaseBoot
(*, unit_run: bool = False, configuration: Dict[str, Any] = NOTHING)[source]¶ Bases:
thoth.adviser.boot.Boot
Add information about prescription release used.
thoth.adviser.boots.python_version module¶
A boot to check Python version configuration used in adviser.
-
class
thoth.adviser.boots.python_version.
PythonVersionBoot
(*, unit_run: bool = False, configuration: Dict[str, Any] = NOTHING)[source]¶ Bases:
thoth.adviser.boot.Boot
A boot that checks Python3 configuration used by user.
thoth.adviser.boots.rhel_version module¶
A boot to adjust RHEL version to its major version.
-
class
thoth.adviser.boots.rhel_version.
RHELVersionBoot
(*, unit_run: bool = False, configuration: Dict[str, Any] = NOTHING)[source]¶ Bases:
thoth.adviser.boot.Boot
A boot that changes version of RHEL used.
RHEL guarantees ABI compatibility across major minor releases.
thoth.adviser.boots.solved_software_environment module¶
A boot to check for solved software environment before running any resolution.
-
class
thoth.adviser.boots.solved_software_environment.
SolvedSoftwareEnvironmentBoot
(*, unit_run: bool = False, configuration: Dict[str, Any] = NOTHING)[source]¶ Bases:
thoth.adviser.boot.Boot
A boot to check for solved software environment before running any resolution.
thoth.adviser.boots.solvers_configured module¶
A boot to notify about runtime environments not supported by solvers enabled in a deployment.
-
class
thoth.adviser.boots.solvers_configured.
SolversConfiguredBoot
(*, unit_run: bool = False, configuration: Dict[str, Any] = NOTHING)[source]¶ Bases:
thoth.adviser.boot.Boot
A boot to notify about runtime environments not supported by solvers enabled in a deployment.
thoth.adviser.boots.thoth_s2i module¶
A boot that recommends to use Thoth’s s2i if users do not use it.
-
class
thoth.adviser.boots.thoth_s2i.
ThothS2IBoot
(*, unit_run: bool = False, configuration: Dict[str, Any] = NOTHING)[source]¶ Bases:
thoth.adviser.boot.Boot
A boot that notifies about missing observations.
thoth.adviser.boots.thoth_s2i_info module¶
A boot that adds information about Thoth s2i used.
-
class
thoth.adviser.boots.thoth_s2i_info.
ThothS2IInfoBoot
(*, unit_run: bool = False, configuration: Dict[str, Any] = NOTHING)[source]¶ Bases:
thoth.adviser.boot.Boot
A boot that adds information about Thoth s2i used.
-
CONFIGURATION_DEFAULT
= {'link': None, 'message': None, 'type': 'INFO'}¶
-
CONFIGURATION_SCHEMA
= <Schema({'message': <class 'str'>, 'link': <class 'str'>, 'type': <class 'str'>}, extra=PREVENT_EXTRA, required=False) object>¶
-
thoth.adviser.boots.thoth_search module¶
A boot to provide a link to Thoth search showing results in a UI.
-
class
thoth.adviser.boots.thoth_search.
ThothSearchBoot
(*, unit_run: bool = False, configuration: Dict[str, Any] = NOTHING, search_url: str = 'https://thoth-station.ninja/search/{document_id}/summary', document_id: str = 'UNKNOWN')[source]¶ Bases:
thoth.adviser.boot.Boot
A boot to provide a link to Thoth search showing results in a UI.
thoth.adviser.boots.ubi module¶
A boot to remap UBI to RHEL.
-
class
thoth.adviser.boots.ubi.
UbiBoot
(*, unit_run: bool = False, configuration: Dict[str, Any] = NOTHING)[source]¶ Bases:
thoth.adviser.boot.Boot
Remap UBI to RHEL.
As UBI has ABI compatibility with RHEL, remap any UBI to RHEL.
thoth.adviser.boots.version_check module¶
A boot to check for fully specified environment.
-
class
thoth.adviser.boots.version_check.
VersionCheckBoot
(*, unit_run: bool = False, configuration: Dict[str, Any] = NOTHING)[source]¶ Bases:
thoth.adviser.boot.Boot
A boot that checks if versions are too lax.
Module contents¶
Boot units implemented in adviser.
-
class
thoth.adviser.boots.
ThothSearchBoot
(*, unit_run: bool = False, configuration: Dict[str, Any] = NOTHING, search_url: str = 'https://thoth-station.ninja/search/{document_id}/summary', document_id: str = 'UNKNOWN')[source]¶ Bases:
thoth.adviser.boot.Boot
A boot to provide a link to Thoth search showing results in a UI.
-
class
thoth.adviser.boots.
PlatformBoot
(*, unit_run: bool = False, configuration: Dict[str, Any] = NOTHING)[source]¶ Bases:
thoth.adviser.boot.Boot
A boot to check if a supported platform is used.
We could check this based on the database entries, but as this will change rarely, we can hardcode supported platforms here.
-
class
thoth.adviser.boots.
CveTimestampBoot
(*, unit_run: bool = False, configuration: Dict[str, Any] = NOTHING)[source]¶ Bases:
thoth.adviser.boot.Boot
A boot to provide information about the last CVE update.
-
class
thoth.adviser.boots.
LabelsBoot
(*, unit_run: bool = False, configuration: Dict[str, Any] = NOTHING)[source]¶ Bases:
thoth.adviser.boot.Boot
A boot to notify about labels used during the resolution.
-
class
thoth.adviser.boots.
PipfileHashBoot
(*, unit_run: bool = False, configuration: Dict[str, Any] = NOTHING)[source]¶ Bases:
thoth.adviser.boot.Boot
A boot that checks for Pipfile hash and reports any mismatch to users..
-
class
thoth.adviser.boots.
VersionCheckBoot
(*, unit_run: bool = False, configuration: Dict[str, Any] = NOTHING)[source]¶ Bases:
thoth.adviser.boot.Boot
A boot that checks if versions are too lax.
-
class
thoth.adviser.boots.
ThothS2IBoot
(*, unit_run: bool = False, configuration: Dict[str, Any] = NOTHING)[source]¶ Bases:
thoth.adviser.boot.Boot
A boot that notifies about missing observations.
-
class
thoth.adviser.boots.
ThothS2IInfoBoot
(*, unit_run: bool = False, configuration: Dict[str, Any] = NOTHING)[source]¶ Bases:
thoth.adviser.boot.Boot
A boot that adds information about Thoth s2i used.
-
CONFIGURATION_DEFAULT
= {'link': None, 'message': None, 'type': 'INFO'}¶
-
CONFIGURATION_SCHEMA
= <Schema({'message': <class 'str'>, 'link': <class 'str'>, 'type': <class 'str'>}, extra=PREVENT_EXTRA, required=False) object>¶
-
-
class
thoth.adviser.boots.
UbiBoot
(*, unit_run: bool = False, configuration: Dict[str, Any] = NOTHING)[source]¶ Bases:
thoth.adviser.boot.Boot
Remap UBI to RHEL.
As UBI has ABI compatibility with RHEL, remap any UBI to RHEL.
-
class
thoth.adviser.boots.
PythonVersionBoot
(*, unit_run: bool = False, configuration: Dict[str, Any] = NOTHING)[source]¶ Bases:
thoth.adviser.boot.Boot
A boot that checks Python3 configuration used by user.
-
class
thoth.adviser.boots.
EnvironmentInfoBoot
(*, unit_run: bool = False, configuration: Dict[str, Any] = NOTHING)[source]¶ Bases:
thoth.adviser.boot.Boot
A boot to notify about environment used.
-
class
thoth.adviser.boots.
SolvedSoftwareEnvironmentBoot
(*, unit_run: bool = False, configuration: Dict[str, Any] = NOTHING)[source]¶ Bases:
thoth.adviser.boot.Boot
A boot to check for solved software environment before running any resolution.
-
class
thoth.adviser.boots.
RHELVersionBoot
(*, unit_run: bool = False, configuration: Dict[str, Any] = NOTHING)[source]¶ Bases:
thoth.adviser.boot.Boot
A boot that changes version of RHEL used.
RHEL guarantees ABI compatibility across major minor releases.
-
class
thoth.adviser.boots.
SolversConfiguredBoot
(*, unit_run: bool = False, configuration: Dict[str, Any] = NOTHING)[source]¶ Bases:
thoth.adviser.boot.Boot
A boot to notify about runtime environments not supported by solvers enabled in a deployment.
-
class
thoth.adviser.boots.
PrescriptionReleaseBoot
(*, unit_run: bool = False, configuration: Dict[str, Any] = NOTHING)[source]¶ Bases:
thoth.adviser.boot.Boot
Add information about prescription release used.
-
class
thoth.adviser.boots.
FullySpecifiedEnvironment
(*, unit_run: bool = False, configuration: Dict[str, Any] = NOTHING)[source]¶ Bases:
thoth.adviser.boot.Boot
A boot to check for fully specified environment.