ACIL FM
Dark
Refresh
Current DIR:
/lib/python3.9/site-packages/certbot/_internal
/
lib
python3.9
site-packages
certbot
_internal
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
cli
-
chmod
Open
Rename
Delete
display
-
chmod
Open
Rename
Delete
plugins
-
chmod
Open
Rename
Delete
tests
-
chmod
Open
Rename
Delete
__pycache__
-
chmod
Open
Rename
Delete
account.py
14.3 MB
chmod
View
DL
Edit
Rename
Delete
auth_handler.py
20.58 MB
chmod
View
DL
Edit
Rename
Delete
cert_manager.py
17.59 MB
chmod
View
DL
Edit
Rename
Delete
client.py
36.05 MB
chmod
View
DL
Edit
Rename
Delete
constants.py
7.22 MB
chmod
View
DL
Edit
Rename
Delete
eff.py
4.38 MB
chmod
View
DL
Edit
Rename
Delete
error_handler.py
7.28 MB
chmod
View
DL
Edit
Rename
Delete
hooks.py
10.39 MB
chmod
View
DL
Edit
Rename
Delete
lock.py
9.95 MB
chmod
View
DL
Edit
Rename
Delete
log.py
15.02 MB
chmod
View
DL
Edit
Rename
Delete
main.py
72.57 MB
chmod
View
DL
Edit
Rename
Delete
renewal.py
25.38 MB
chmod
View
DL
Edit
Rename
Delete
snap_config.py
5.93 MB
chmod
View
DL
Edit
Rename
Delete
storage.py
51.46 MB
chmod
View
DL
Edit
Rename
Delete
updater.py
4.64 MB
chmod
View
DL
Edit
Rename
Delete
__init__.py
184 B
chmod
View
DL
Edit
Rename
Delete
Edit file: /lib/python3.9/site-packages/certbot/_internal/updater.py
"""Updaters run at renewal""" import logging from certbot import configuration from certbot import errors from certbot import interfaces from certbot._internal import storage from certbot._internal.plugins import disco as plugin_disco from certbot._internal.plugins import selection as plug_sel from certbot.plugins import enhancements logger = logging.getLogger(__name__) def run_generic_updaters(config: configuration.NamespaceConfig, lineage: storage.RenewableCert, plugins: plugin_disco.PluginsRegistry) -> None: """Run updaters that the plugin supports :param config: Configuration object :type config: certbot.configuration.NamespaceConfig :param lineage: Certificate lineage object :type lineage: storage.RenewableCert :param plugins: List of plugins :type plugins: certbot._internal.plugins.disco.PluginsRegistry :returns: `None` :rtype: None """ if config.dry_run: logger.debug("Skipping updaters in dry-run mode.") return try: installer = plug_sel.get_unprepared_installer(config, plugins) except errors.Error as e: logger.error("Could not choose appropriate plugin for updaters: %s", e) return if installer: _run_updaters(lineage, installer, config) _run_enhancement_updaters(lineage, installer, config) def run_renewal_deployer(config: configuration.NamespaceConfig, lineage: storage.RenewableCert, installer: interfaces.Installer) -> None: """Helper function to run deployer interface method if supported by the used installer plugin. :param config: Configuration object :type config: certbot.configuration.NamespaceConfig :param lineage: Certificate lineage object :type lineage: storage.RenewableCert :param installer: Installer object :type installer: interfaces.Installer :returns: `None` :rtype: None """ if config.dry_run: logger.debug("Skipping renewal deployer in dry-run mode.") return if not config.disable_renew_updates and isinstance(installer, interfaces.RenewDeployer): installer.renew_deploy(lineage) _run_enhancement_deployers(lineage, installer, config) def _run_updaters(lineage: storage.RenewableCert, installer: interfaces.Installer, config: configuration.NamespaceConfig) -> None: """Helper function to run the updater interface methods if supported by the used installer plugin. :param lineage: Certificate lineage object :type lineage: storage.RenewableCert :param installer: Installer object :type installer: interfaces.Installer :returns: `None` :rtype: None """ if not config.disable_renew_updates: if isinstance(installer, interfaces.GenericUpdater): installer.generic_updates(lineage) def _run_enhancement_updaters(lineage: storage.RenewableCert, installer: interfaces.Installer, config: configuration.NamespaceConfig) -> None: """Iterates through known enhancement interfaces. If the installer implements an enhancement interface and the enhance interface has an updater method, the updater method gets run. :param lineage: Certificate lineage object :type lineage: storage.RenewableCert :param installer: Installer object :type installer: interfaces.Installer :param config: Configuration object :type config: certbot.configuration.NamespaceConfig """ if config.disable_renew_updates: return for enh in enhancements._INDEX: # pylint: disable=protected-access if isinstance(installer, enh["class"]) and enh["updater_function"]: getattr(installer, enh["updater_function"])(lineage) def _run_enhancement_deployers(lineage: storage.RenewableCert, installer: interfaces.Installer, config: configuration.NamespaceConfig) -> None: """Iterates through known enhancement interfaces. If the installer implements an enhancement interface and the enhance interface has an deployer method, the deployer method gets run. :param lineage: Certificate lineage object :type lineage: storage.RenewableCert :param installer: Installer object :type installer: interfaces.Installer :param config: Configuration object :type config: certbot.configuration.NamespaceConfig """ if config.disable_renew_updates: return for enh in enhancements._INDEX: # pylint: disable=protected-access if isinstance(installer, enh["class"]) and enh["deployer_function"]: getattr(installer, enh["deployer_function"])(lineage)
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply