Documentation ¶
Index ¶
Constants ¶
View Source
const ( TerminalTerm = "xterm" SSHKeyKeyword = "SSH-KEY" )
Variables ¶
This section is empty.
Functions ¶
func GetConfigFromSshConnector ¶
func GetConfigFromSshConnector(tgt *SshConnector) *config.ServerListConfig
GetConfigFromSshConnector Get ServerListConfig by SshConnector
Types ¶
type SshConnector ¶
type SshConnector struct { Ip string Port string User string Password string SshTimeout time.Duration HostKeyMutex *sync.Mutex }
func GetSshConnectorFromConfig ¶
func GetSshConnectorFromConfig(conf *config.ServerListConfig) *SshConnector
GetSshConnectorFromConfig Get SshConnector by ServerListConfig
func (*SshConnector) CloseConnection ¶
func (sc *SshConnector) CloseConnection(sshClient *ssh.Client)
func (*SshConnector) CreateConnection ¶
func (sc *SshConnector) CreateConnection() (sshClient *ssh.Client, err error)
func (*SshConnector) Launch ¶
func (sc *SshConnector) Launch() bool
func (*SshConnector) LoadConfig ¶
func (sc *SshConnector) LoadConfig() (config *ssh.ClientConfig)
func (*SshConnector) TryToConnect ¶
func (sc *SshConnector) TryToConnect() (err error)
Click to show internal directories.
Click to hide internal directories.