Method
__init__
(self, ssh_client=None, timeout=60, maxsize=10, host=None)
Source from the content-addressed store, hash-verified
| 121 | scheme = 'ssh' |
| 122 | |
| 123 | def __init__(self, ssh_client=None, timeout=60, maxsize=10, host=None): |
| 124 | super().__init__( |
| 125 | 'localhost', timeout=timeout, maxsize=maxsize |
| 126 | ) |
| 127 | self.ssh_transport = None |
| 128 | self.timeout = timeout |
| 129 | if ssh_client: |
| 130 | self.ssh_transport = ssh_client.get_transport() |
| 131 | self.ssh_host = host |
| 132 | |
| 133 | def _new_conn(self): |
| 134 | return SSHConnection(self.ssh_transport, self.timeout, self.ssh_host) |
Callers
nothing calls this directly
Tested by
no test coverage detected