Documentation
¶
Index ¶
- type Channel
- type Cli
- func (c *Cli) ForwardRemoteToLocal(privateKey string, sshAddress, remoteEndpoint, localEndpoint string) (err error)
- func (c *Cli) RunScript(privateKey string, sshAddress, script string) (result string, err error)
- func (c *Cli) StartSocks5Proxy(privateKey string, sshAddress, socks5Address string) (err error)
- type SocksLogger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel interface {
StartSocks5Proxy(privateKey string, sshAddress, socks5Address string) error
ForwardRemoteToLocal(privateKey string, sshAddress, remoteEndpoint, localEndpoint string) error
RunScript(privateKey string, sshAddress, script string) (string, error)
}
Channel network channel
type Cli ¶
type Cli struct{}
Cli the singleton type
func (*Cli) ForwardRemoteToLocal ¶
func (c *Cli) ForwardRemoteToLocal(privateKey string, sshAddress, remoteEndpoint, localEndpoint string) (err error)
ForwardRemoteToLocal forward remote request to local
type SocksLogger ¶
type SocksLogger struct{}
func (SocksLogger) Println ¶
func (s SocksLogger) Println(v ...interface{})
Click to show internal directories.
Click to hide internal directories.