l.a.i.a.ISignableArchive(Interface) : interface documentation

Part of lp.archivepublisher.interfaces.archivesigningkey View In Hierarchy

Known subclasses: lp.archivepublisher.interfaces.archivesigningkey.IArchiveSigningKey

SignableArchive interface.

IArchive adapter for operations that involve signing files.

Object archive Undocumented
Attribute can_sign True if this archive is set up for signing.
Method signRepository Sign the corresponding repository.
Method signFile Sign the corresponding file.
archive =
Undocumented
can_sign =
True if this archive is set up for signing.
def signRepository(suite, pubconf=None, suffix='', log=None):
Sign the corresponding repository.
Parameterssuitesuite name to be signed.
pubconfan optional publisher configuration instance indicating where files should be written (if not passed, uses the archive's defaults).
suffixan optional suffix for repository index files (e.g. ".new" to help with publishing files atomically).
logan optional logger.
ReturnsA sequence of output paths that were produced, relative to the suite's path, with suffix removed.
RaisesCannotSignArchiveif the context archive is not set up for signing.
AssertionErrorif there is no Release file in the given suite.
def signFile(suite, path, log=None):
Sign the corresponding file.
Parameterssuitename of the suite containing the file to be signed.
pathpath within dists to sign with the archive key.
logan optional logger.
RaisesCannotSignArchiveif the context archive is not set up for signing.
AssertionErrorif the given 'path' is outside of the archive root.
API Documentation for Launchpad, generated by pydoctor at 2022-06-16 00:00:12.