Commit d40dbe3
add NewSSHSessionForExternalClient for managing ssh client externally (#125)
* add NewSSHSessionForExternalClient for transport_ssh
This enables user to initiate and manage (including closing)
of ssh client externally.
This enables transport session to reuse external ssh client for
multiple sessions.
* Update netconf/transport_ssh.go
refactor: rename externClient to managedSession on TransportSSH
Co-authored-by: Brandon Bennett <[email protected]>
* fixup! Update netconf/transport_ssh.go
Signed-off-by: thebinary <[email protected]>
* rename NewSSHSessionForExternalClient to NewSSHClientSession
Signed-off-by: thebinary <[email protected]>
* refactor: remove redundant clientToTransport fn
Signed-off-by: thebinary <[email protected]>
---------
Signed-off-by: thebinary <[email protected]>
Co-authored-by: Brandon Bennett <[email protected]>1 parent 92d0d9c commit d40dbe3
1 file changed
+23
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
37 | 40 | | |
38 | 41 | | |
39 | 42 | | |
| |||
48 | 51 | | |
49 | 52 | | |
50 | 53 | | |
51 | | - | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
52 | 57 | | |
53 | 58 | | |
54 | 59 | | |
55 | 60 | | |
56 | 61 | | |
57 | | - | |
| 62 | + | |
58 | 63 | | |
59 | 64 | | |
60 | 65 | | |
| |||
117 | 122 | | |
118 | 123 | | |
119 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
120 | 141 | | |
121 | 142 | | |
122 | 143 | | |
| |||
0 commit comments