certbot/examples/plugins/letsencrypt_example_plugins.py

28 lines
739 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):
2015-03-26 09:55:23 -04:00
zope.interface.implements(interfaces.IAuthenticator)
description = 'Example Authenticator plugin'
# 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):
zope.interface.implements(interfaces.IInstaller)
description = 'Example Installer plugin'
# Implement all methods from IInstaller, remembering to add
# "self" as first argument, e.g. def get_all_names(self)...