Documentation
¶
Index ¶
- func GetProxyList(server string, config conf.Config) (proxyList []string, proxyType map[string]string, err error)
- type Connect
- func (c *Connect) ConTerm(session *ssh.Session) (err error)
- func (c *Connect) CreateSession() (session *ssh.Session, err error)
- func (c *Connect) CreateSshAgentKeyring() (keyring agent.Agent)
- func (c *Connect) PortForwarder()
- func (c *Connect) RunCmd(session *ssh.Session, command []string) (err error)
- func (c *Connect) RunCmdWithOutput(session *ssh.Session, command []string, outputChan chan string)
- type CopyConInfo
- type Proxy
- type Run
- type RunScp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Connect ¶ added in v0.5.0
type Connect struct {
Server string
Conf conf.Config
IsTerm bool
IsParallel bool
IsLocalRc bool
LocalRcData string
LocalRcDecodeCmd string
ForwardLocal string
ForwardRemote string
// contains filtered or unexported fields
}
func (*Connect) CreateSession ¶ added in v0.5.0
@brief: create ssh session
func (*Connect) CreateSshAgentKeyring ¶ added in v0.5.2
type CopyConInfo ¶ added in v0.5.0
Click to show internal directories.
Click to hide internal directories.