Tunnel implementation, allow using ssh on connection screen

This commit is contained in:
Dan Sosedoff
2016-01-14 19:50:01 -06:00
parent fb66acebc3
commit f0f447857f
11 changed files with 229 additions and 93 deletions

17
pkg/shared/ssh_info.go Normal file
View File

@@ -0,0 +1,17 @@
package shared
import (
"fmt"
)
type SSHInfo struct {
Host string `json:"host,omitempty"`
Port string `json:"port,omitempty"`
User string `json:"user,omitempty"`
Password string `json:"password,omitempty"`
Key string `json:"key,omitempty"`
}
func (info SSHInfo) String() string {
return fmt.Sprintf("%s@%s:%s", info.User, info.Host, info.Port)
}