Skip to content

refactor ssh client handling#24

Open
clive-jevons wants to merge 1 commit into
elliotchance:masterfrom
clive-jevons:refactor-ssh-client-handling
Open

refactor ssh client handling#24
clive-jevons wants to merge 1 commit into
elliotchance:masterfrom
clive-jevons:refactor-ssh-client-handling

Conversation

@clive-jevons

@clive-jevons clive-jevons commented Jan 7, 2025

Copy link
Copy Markdown

in order to be able to provide different approaches to how the SSH client is handled, as a first step refactor the management of the ssh clients created into its own interface - in a second step we can then provide different implementations via new impls of the interface

so as to maintain backwards compatibility the code uses some "provider" style types / funcs here and there so that if the user of the library changes any of the public facing members after creation, the runtime code will pick up those changes

also did a small refactoring of the logging so that it can be reused between the ssh tunnel itself and the new ssh client manager.


This change is Reviewable

in order to be able to provide different approaches to how the SSH client is handled, as a first step refactor the management of the ssh clients created into its own interface - in a second step we can then provide different implementations via new impls of the interface
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant