certbot/examples/plugins/letsencrypt_example_plugins.py

32 lines
900 B
Python
Raw Normal View History

"""Example Let's Encrypt plugins.
2015-05-10 08:25:29 -04:00
For full examples, see `letsencrypt.plugins`.
"""
2015-03-26 09:55:23 -04:00
import zope.interface
2015-05-10 08:25:29 -04:00
from letsencrypt import interfaces
from letsencrypt.plugins import common
2015-03-26 09:55:23 -04:00
class Authenticator(common.Plugin):
"""Example Authenticator."""
2015-03-26 09:55:23 -04:00
zope.interface.implements(interfaces.IAuthenticator)
zope.interface.classProvides(interfaces.IPluginFactory)
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
class Installer(common.Plugins):
"""Example Installer."""
zope.interface.implements(interfaces.IInstaller)
zope.interface.classProvides(interfaces.IPluginFactory)
description = "Example Installer plugin"
# Implement all methods from IInstaller, remembering to add
# "self" as first argument, e.g. def get_all_names(self)...