b.t.s.SSHVendorManager(object) : class documentation

Part of bzrlib.transport.ssh View In Hierarchy

Known subclasses: bzrlib.tests.test_ssh_transport.TestSSHVendorManager

Manager for manage SSH vendors.
Method __init__ Undocumented
Method register_default_vendor Register default SSH vendor.
Method register_vendor Register new SSH vendor by name.
Method clear_cache Clear previously cached lookup result.
Method get_vendor Find out what version of SSH is on the system.
Method _get_vendor_by_environment Return the vendor or None based on BZR_SSH environment variable.
Method _get_ssh_version_string Return SSH version string from the subprocess.
Method _get_vendor_by_version_string Return the vendor or None based on output from the subprocess.
Method _get_vendor_by_inspection Return the vendor or None by checking for known SSH implementations.
Method _get_vendor_from_path Return the vendor or None using the program at the given path
def __init__(self):
Undocumented
def register_default_vendor(self, vendor):
Register default SSH vendor.
def register_vendor(self, name, vendor):
Register new SSH vendor by name.
def clear_cache(self):
Clear previously cached lookup result.
def _get_vendor_by_environment(self, environment=None):
Return the vendor or None based on BZR_SSH environment variable.
RaisesUnknownSSHif the BZR_SSH environment variable contains unknown vendor name
def _get_ssh_version_string(self, args):
Return SSH version string from the subprocess.
def _get_vendor_by_version_string(self, version, progname):
Return the vendor or None based on output from the subprocess.
ParametersversionThe output of 'ssh -V' like command.
argsCommand line that was run.
def _get_vendor_by_inspection(self):
Return the vendor or None by checking for known SSH implementations.
def _get_vendor_from_path(self, path):
Return the vendor or None using the program at the given path
def get_vendor(self, environment=None):
Find out what version of SSH is on the system.
RaisesSSHVendorNotFoundif no any SSH vendor is found
UnknownSSHif the BZR_SSH environment variable contains unknown vendor name
API Documentation for Bazaar, generated by pydoctor at 2022-06-16 00:25:16.