Tunnel implementation, allow using ssh on connection screen
This commit is contained in:
17
pkg/shared/ssh_info.go
Normal file
17
pkg/shared/ssh_info.go
Normal 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)
|
||||
}
|
||||
Reference in New Issue
Block a user