b.g.GPGStrategy(object) : class documentation

Part of bzrlib.gpg View In Hierarchy

GPG Signing and checking facilities.
Static Method verify_signatures_available check if this strategy can verify signatures
Method __init__ Undocumented
Method sign Undocumented
Method verify Check content has a valid signature.
Method set_acceptable_keys sets the acceptable keys for verifying with this GPGStrategy
Method do_verifications do verifications on a set of revisions
Method verbose_valid_message takes a verify result and returns list of signed commits strings
Method verbose_not_valid_message takes a verify result and returns list of not valid commit info
Method verbose_not_signed_message takes a verify result and returns list of not signed commit info
Method verbose_missing_key_message takes a verify result and returns list of missing key info
Method verbose_expired_key_message takes a verify result and returns list of expired key info
Method valid_commits_message returns message for number of commits
Method unknown_key_message returns message for number of commits
Method commit_not_valid_message returns message for number of commits
Method commit_not_signed_message returns message for number of commits
Method expired_commit_message returns message for number of commits
Method _command_line Undocumented
@staticmethod
def verify_signatures_available():
check if this strategy can verify signatures
Returnsboolean if this strategy can verify signatures
def _command_line(self):
Undocumented
def __init__(self, config):
Undocumented
def sign(self, content):
Undocumented
def verify(self, content, testament):
Check content has a valid signature.

:param content: the commit signature
:param testament: the valid testament string for the commit

:return: SIGNATURE_VALID or a failed SIGNATURE_ value, key uid if valid
def set_acceptable_keys(self, command_line_input):
sets the acceptable keys for verifying with this GPGStrategy
Parameterscommand_line_inputcomma separated list of patterns from command line
Returnsnothing
def do_verifications(self, revisions, repository, process_events_callback=None):
do verifications on a set of revisions
Parametersrevisionslist of revision ids to verify
repositoryrepository object
process_events_callbackmethod to call for GUI frontends that want to keep their UI refreshed
Returnscount dictionary of results of each type, result list for each revision, boolean True if all results are verified successfully
def verbose_valid_message(self, result):
takes a verify result and returns list of signed commits strings
def verbose_not_valid_message(self, result, repo):
takes a verify result and returns list of not valid commit info
def verbose_not_signed_message(self, result, repo):
takes a verify result and returns list of not signed commit info
def verbose_missing_key_message(self, result):
takes a verify result and returns list of missing key info
def verbose_expired_key_message(self, result, repo):
takes a verify result and returns list of expired key info
def valid_commits_message(self, count):
returns message for number of commits
def unknown_key_message(self, count):
returns message for number of commits
def commit_not_valid_message(self, count):
returns message for number of commits
def commit_not_signed_message(self, count):
returns message for number of commits
def expired_commit_message(self, count):
returns message for number of commits
API Documentation for Bazaar, generated by pydoctor at 2019-09-18 00:32:59.