certbot.plugins.disco¶
Utilities for plugins discovery and selection.
-
class
certbot.plugins.disco.PluginEntryPoint(entry_point)[source]¶ Bases:
objectPlugin entry point.
-
PREFIX_FREE_DISTRIBUTIONS= ['certbot', 'certbot-apache', 'certbot-dns-cloudflare', 'certbot-dns-cloudxns', 'certbot-dns-digitalocean', 'certbot-dns-dnsimple', 'certbot-dns-google', 'certbot-dns-nsone', 'certbot-dns-route53', 'certbot-nginx']¶ Distributions for which prefix will be omitted.
-
description¶ Description of the plugin.
-
description_with_name¶ Description with name. Handy for UI.
-
long_description¶ Long description of the plugin.
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
certbot.plugins.disco.PluginsRegistry(plugins)[source]¶ Bases:
_abcoll.MappingPlugins registry.
-
find_init(plugin)[source]¶ Find an initialized plugin.
This is particularly useful for finding a name for the plugin (although
IPluginFactory.__call__takesnameas one of the arguments,IPlugin.nameis not part of the interface):# plugin is an instance providing IPlugin, initialized # somewhere else in the code plugin_registry.find_init(plugin).name
Returns
Noneifpluginis not found in the registry.
-