Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SshClient ¶
type SshClient struct {
// contains filtered or unexported fields
}
func NewSshClient ¶
func NewSshClient(config *SshClientConfig) (*SshClient, error)
func (*SshClient) Exec ¶
func (client *SshClient) Exec(opts *SshExecOpts) error
func (*SshClient) SendRequest ¶
func (*SshClient) Tunnel ¶
func (client *SshClient) Tunnel(opts *SshTunnelOpts)
type SshClientConfig ¶
type SshExecOpts ¶
type SshTunnelOpts ¶
type SshTunnelOpts struct { LocalPort string RemoteHost string RemotePort string OnTunnelStartCallback func(string) OnTunnelStopCallback func(string) OnTunnelErrorCallback func(error) }
func (*SshTunnelOpts) LocalAddress ¶
func (t *SshTunnelOpts) LocalAddress() string
func (*SshTunnelOpts) Network ¶
func (t *SshTunnelOpts) Network() string
func (*SshTunnelOpts) RemoteAddress ¶
func (t *SshTunnelOpts) RemoteAddress() string
Click to show internal directories.
Click to hide internal directories.