certbot/examples/plugins/letsencrypt_example_plugins.py

32 lines
921 B
Python
Raw Normal View History

"""Example Let's Encrypt plugins.
For full examples, see `letsencrypt.client.plugins`.
"""
2015-03-26 09:55:23 -04:00
import zope.interface
from letsencrypt.client import interfaces
from letsencrypt.client.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)...