32 lines
861 B
Python
32 lines
861 B
Python
"""Example Certbot plugins.
|
|
|
|
For full examples, see `certbot.plugins`.
|
|
|
|
"""
|
|
import zope.interface
|
|
|
|
from certbot import interfaces
|
|
from certbot.plugins import common
|
|
|
|
|
|
@zope.interface.implementer(interfaces.IAuthenticator)
|
|
@zope.interface.provider(interfaces.IPluginFactory)
|
|
class Authenticator(common.Plugin):
|
|
"""Example Authenticator."""
|
|
|
|
description = "Example Authenticator plugin"
|
|
|
|
# Implement all methods from IAuthenticator, remembering to add
|
|
# "self" as first argument, e.g. def prepare(self)...
|
|
|
|
|
|
@zope.interface.implementer(interfaces.IInstaller)
|
|
@zope.interface.provider(interfaces.IPluginFactory)
|
|
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)...
|