1
0
mirror of https://github.com/certbot/certbot.git synced 2026-01-14 23:22:21 +03:00
Files
certbot/examples/plugins/letsencrypt_example_plugins.py

28 lines
739 B
Python

"""Example Let's Encrypt plugins.
For full examples, see `letsencrypt.client.plugins`.
"""
import zope.interface
from letsencrypt.client import interfaces
from letsencrypt.client.plugins import common
class Authenticator(common.Plugin):
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)...
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)...