Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/certbot/certbot.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'certbot/examples/plugins/certbot_example_plugins.py')
-rw-r--r--certbot/examples/plugins/certbot_example_plugins.py31
1 files changed, 31 insertions, 0 deletions
diff --git a/certbot/examples/plugins/certbot_example_plugins.py b/certbot/examples/plugins/certbot_example_plugins.py
new file mode 100644
index 000000000..9dec2e108
--- /dev/null
+++ b/certbot/examples/plugins/certbot_example_plugins.py
@@ -0,0 +1,31 @@
+"""Example Certbot plugins.
+
+For full examples, see `certbot.plugins`.
+
+"""
+import zope.interface
+
+from certbot import interfaces
+from certbot.plugins import common
+
+
+@zope.interface.implementer(interfaces.IAuthenticator)
+@zope.interface.provider(interfaces.IPluginFactory)
+class Authenticator(common.Plugin):
+ """Example Authenticator."""
+
+ description = "Example Authenticator plugin"
+
+ # Implement all methods from IAuthenticator, remembering to add
+ # "self" as first argument, e.g. def prepare(self)...
+
+
+@zope.interface.implementer(interfaces.IInstaller)
+@zope.interface.provider(interfaces.IPluginFactory)
+class Installer(common.Plugin):
+ """Example Installer."""
+
+ description = "Example Installer plugin"
+
+ # Implement all methods from IInstaller, remembering to add
+ # "self" as first argument, e.g. def get_all_names(self)...