Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SSHProxy ¶
type SSHProxy struct {
// contains filtered or unexported fields
}
SSHProxy is a ssh client that port forwards based on configuration information.
func (*SSHProxy) Forward ¶
Forward forwards a remote addess to a local port. Set localPort to 0 to generate a random port.
func (*SSHProxy) Shutdown ¶
func (p *SSHProxy) Shutdown()
Shutdown waits for all connections to stop
func (*SSHProxy) WithContext ¶
WithContext sets the current context value
Click to show internal directories.
Click to hide internal directories.