certbot/examples/plugins/certbot_example_plugins.py

32 lines
861 B
Python
Raw Normal View History

2016-04-14 13:20:23 -04:00
"""Example Certbot plugins.
2016-04-14 13:20:23 -04:00
For full examples, see `certbot.plugins`.
"""
2015-03-26 09:55:23 -04:00
import zope.interface
2016-04-14 13:20:23 -04:00
from certbot import interfaces
from certbot.plugins import common
2015-03-26 09:55:23 -04:00
@zope.interface.implementer(interfaces.IAuthenticator)
@zope.interface.provider(interfaces.IPluginFactory)
class Authenticator(common.Plugin):
"""Example Authenticator."""
2015-03-26 09:55:23 -04:00
description = "Example Authenticator plugin"
2015-03-26 09:55:23 -04:00
# Implement all methods from IAuthenticator, remembering to add
# "self" as first argument, e.g. def prepare(self)...
2015-03-27 18:20:43 -04:00
@zope.interface.implementer(interfaces.IInstaller)
@zope.interface.provider(interfaces.IPluginFactory)
2015-05-15 15:53:41 -04:00
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)...