2015-05-02 03:01:44 -04:00
|
|
|
"""Example Let's Encrypt plugins.
|
|
|
|
|
|
2015-05-10 08:25:29 -04:00
|
|
|
For full examples, see `letsencrypt.plugins`.
|
2015-05-02 03:01:44 -04:00
|
|
|
|
|
|
|
|
"""
|
2015-03-26 09:55:23 -04:00
|
|
|
import zope.interface
|
|
|
|
|
|
2015-05-10 08:25:29 -04:00
|
|
|
from letsencrypt import interfaces
|
|
|
|
|
from letsencrypt.plugins import common
|
2015-03-26 09:55:23 -04:00
|
|
|
|
|
|
|
|
|
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
|
|
|
zope.interface.implements(interfaces.IAuthenticator)
|
2015-05-03 03:56:49 -04:00
|
|
|
zope.interface.classProvides(interfaces.IPluginFactory)
|
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
|
|
|
|
|
|
|
|
class Installer(common.Plugins):
|
2015-05-03 03:56:49 -04:00
|
|
|
"""Example Installer."""
|
2015-05-02 03:01:44 -04:00
|
|
|
zope.interface.implements(interfaces.IInstaller)
|
2015-05-03 03:56:49 -04:00
|
|
|
zope.interface.classProvides(interfaces.IPluginFactory)
|
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)...
|