certbot.plugins.disco¶
Utilities for plugins discovery and selection.
- class certbot.plugins.disco.PluginEntryPoint(entry_point)[source]¶
Bases: object
Plugin entry point.
- PREFIX_FREE_DISTRIBUTIONS = ['certbot', 'certbot-apache', 'certbot-nginx']¶
Distributions for which prefix will be omitted.
Should this plugin be hidden from UI?
- class certbot.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__ takes name 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 if plugin is not found in the registry.