mirror of
https://github.com/sosedoff/pgweb.git
synced 2024-12-14 19:21:46 +03:00
18 lines
373 B
Go
18 lines
373 B
Go
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)
|
|
}
|