2016-04-14 13:20:23 -04:00
|
|
|
"""Example Certbot plugins.
|
2015-05-02 03:01:44 -04:00
|
|
|
|
2016-04-14 13:20:23 -04:00
|
|
|
For full examples, see `certbot.plugins`.
|
2015-05-02 03:01:44 -04:00
|
|
|
|
|
|
|
|
"""
|
2015-03-26 09:55:23 -04:00
|
|
|
import zope.interface
|
|
|
|
|
|
2016-04-14 13:20:23 -04:00
|
|
|
from certbot import interfaces
|
|
|
|
|
from certbot.plugins import common
|
2015-03-26 09:55:23 -04:00
|
|
|
|
|
|
|
|
|
2016-02-20 01:08:40 -05:00
|
|
|
@zope.interface.implementer(interfaces.IAuthenticator)
|
2016-02-20 01:08:40 -05:00
|
|
|
@zope.interface.provider(interfaces.IPluginFactory)
|
2015-05-02 03:01:44 -04:00
|
|
|
class Authenticator(common.Plugin):
|
2015-05-03 03:56:49 -04:00
|
|
|
"""Example Authenticator."""
|
2015-03-26 09:55:23 -04:00
|
|
|
|
2015-05-03 03:56:49 -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
|
|
|
|
2015-05-02 03:01:44 -04:00
|
|
|
|
2016-02-20 01:08:40 -05:00
|
|
|
@zope.interface.implementer(interfaces.IInstaller)
|
2016-02-20 01:08:40 -05:00
|
|
|
@zope.interface.provider(interfaces.IPluginFactory)
|
2015-05-15 15:53:41 -04:00
|
|
|
class Installer(common.Plugin):
|
2015-05-03 03:56:49 -04:00
|
|
|
"""Example Installer."""
|
2015-05-02 03:01:44 -04:00
|
|
|
|
2015-05-03 03:56:49 -04:00
|
|
|
description = "Example Installer plugin"
|
2015-05-02 03:01:44 -04:00
|
|
|
|
|
|
|
|
# Implement all methods from IInstaller, remembering to add
|
|
|
|
|
# "self" as first argument, e.g. def get_all_names(self)...
|