l.a.a.SignableArchive : class documentation

Part of lp.archivepublisher.archivesigningkey View In Hierarchy

Known subclasses: lp.archivepublisher.archivesigningkey.ArchiveSigningKey

IArchive adapter for operations that involve signing files.
Method __init__ Undocumented
Method can_sign See ISignableArchive.
Method signRepository See ISignableArchive.
Method signFile See ISignableArchive.
Method _makeSignatures Make a sequence of signatures.
def __init__(self, archive):
Undocumented
@property
def can_sign(self):
See ISignableArchive.
def _makeSignatures(self, signatures, log=None):
Make a sequence of signatures.

This abstraction is useful in the case where we're using an in-process GPGHandler, since it avoids having to import the secret key more than once.

ParameterssignaturesA sequence of (input path, output path, SigningMode, suite) tuples. Note that some backends may make a policy decision not to produce all the requested output paths.
logAn optional logger.
ReturnsA list of output paths that were produced.
def signRepository(self, suite, pubconf=None, suffix='', log=None):
See ISignableArchive.
def signFile(self, suite, path, log=None):
See ISignableArchive.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.