add deploy_ocsp_prefetch to API

This commit is contained in:
Brad Warren 2020-04-30 15:16:30 -07:00
parent eca207f658
commit c4b75b1bbd

View file

@ -191,6 +191,17 @@ class OCSPPrefetchEnhancement(object):
to finalize the plugin initialization.
"""
@abc.abstractmethod
def deploy_ocsp_prefetch(self, lineage, *args, **kwargs):
"""
Gets called for a lineage when its certificate is successfully renewed.
This method is used to prefetch the OCSP response before configuring
the server to use the renewed certificates.
:param lineage: Certificate lineage object
:type lineage: certbot.interfaces.RenewableCert
"""
@abc.abstractmethod
def enable_ocsp_prefetch(self, lineage, domains, *args, **kwargs):
"""