Versions in this module Expand all Collapse all v0 v0.4.0 Aug 3, 2025 v0.3.0 Aug 3, 2025 Changes in this version + const DEFAULT_DNS_SERVER + const STATUS_CLOSED + const STATUS_CONNECTED + const STATUS_CONNECTING + type DnsProxy struct + func NewDnsProxy(sshConn *SshConnection, conf *DnsProxyConf) *DnsProxy + func (p *DnsProxy) Start() error + type DnsProxyConf struct + ListenAddress string + RemoteDnsAddress *string + SshClientConf *SshClientConf + type JumpHostConf struct + Identity string + Password string + URI string + type ProgressFunc func(fileSize int64, offset int64, fileName string, progressChan chan int64) + type RemoteShell struct + func NewRemoteShell(sshConn *SshConnection) *RemoteShell + func (rs *RemoteShell) Start(cmd string, requestPty bool) error + func (rs *RemoteShell) Stop() + type SftpClient struct + Client *sftp.Client + func NewSftpClient(sshConnection *SshConnection) *SftpClient + func (s *SftpClient) GetFile(remote, localPath string, maxWorkers int, progressFn *ProgressFunc) error + func (s *SftpClient) PutFile(remote, localPath string, maxWorkers int, progressFn *ProgressFunc) error + func (s *SftpClient) ReadyWait() + func (s *SftpClient) Start() + func (s *SftpClient) Stop() + type SocksProxy struct + func NewSocksProxy(sshConn *SshConnection) *SocksProxy + func (p *SocksProxy) Start(socksAddress string) error + type SocksProxyConf struct + ListenAddress string + SshClientConf *SshClientConf + type SshClientConf struct + Identity string + Insecure bool + JumpHosts []*JumpHostConf + KnownHosts string + Password string + Quiet bool + ServerURI string + func (c *SshClientConf) GetServerEndpoint() *utils.Endpoint + type SshConnection struct + Client *ssh.Client + func NewSshConnection(conf *SshClientConf) *SshConnection + func (s *SshConnection) GetConnectionStatus() string + func (s *SshConnection) GrabPubKey() + func (s *SshConnection) ReadyWait() + func (s *SshConnection) Start() + func (s *SshConnection) Stop()