letsencrypt.plugins.disco
¶
Utilities for plugins discovery and selection.
-
class
letsencrypt.plugins.disco.
PluginEntryPoint
(entry_point)[source]¶ Bases:
object
Plugin entry point.
-
PREFIX_FREE_DISTRIBUTIONS
= ['letsencrypt', 'letsencrypt-apache', 'letsencrypt-nginx']¶ Distributions for which prefix will be omitted.
-
description
¶ Description of the plugin.
-
description_with_name
¶ Description with name. Handy for UI.
Should this plugin be hidden from UI?
-
initialized
¶ Has the plugin been initialized already?
-
prepared
¶ Has the plugin been prepared already?
-
misconfigured
¶ Is plugin misconfigured?
-
problem
¶ Return the Exception raised during plugin setup, or None if all is well
-
available
¶ Is plugin available, i.e. prepared or misconfigured?
-
-
class
letsencrypt.plugins.disco.
PluginsRegistry
(plugins)[source]¶ Bases:
_abcoll.Mapping
Plugins registry.
-
find_init
(plugin)[source]¶ Find an initialized plugin.
This is particularly useful for finding a name for the plugin (although
IPluginFactory.__call__
takesname
as one of the arguments,IPlugin.name
is not part of the interface):# plugin is an instance providing IPlugin, initialized # somewhere else in the code plugin_registry.find_init(plugin).name
Returns
None
ifplugin
is not found in the registry.
-