summaryrefslogtreecommitdiff
path: root/clients/connectionmaker.go
diff options
context:
space:
mode:
authorPaul Bütow <pbuetow@mimecast.com>2020-01-09 20:30:15 +0000
committerPaul Bütow <pbuetow@mimecast.com>2020-01-09 20:30:15 +0000
commit3755a9911ecb05886577095f2b8cc8b9e4066a3a (patch)
tree86e24bc466986cb5c9c6d167a918e6064defeafc /clients/connectionmaker.go
Release of DTail v1.0.0v1.0.0
Diffstat (limited to 'clients/connectionmaker.go')
-rw-r--r--clients/connectionmaker.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/clients/connectionmaker.go b/clients/connectionmaker.go
new file mode 100644
index 0000000..9e08c2b
--- /dev/null
+++ b/clients/connectionmaker.go
@@ -0,0 +1,12 @@
+package clients
+
+import (
+ "dtail/clients/remote"
+ "dtail/ssh/client"
+
+ gossh "golang.org/x/crypto/ssh"
+)
+
+type connectionMaker interface {
+ makeConnection(server string, sshAuthMethods []gossh.AuthMethod, hostKeyCallback *client.HostKeyCallback) *remote.Connection
+}