sshtunnel

package
v1.9.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SSHTunnel

type SSHTunnel struct {
	// contains filtered or unexported fields
}

func NewSSHTunnel

func NewSSHTunnel(sshConfig *ssh.ClientConfig, host string, localPort string, remotePort string) *SSHTunnel

func (*SSHTunnel) Close

func (c *SSHTunnel) Close()

func (*SSHTunnel) ForwardTunnel

func (c *SSHTunnel) ForwardTunnel()

func (*SSHTunnel) ReverseTunnel

func (c *SSHTunnel) ReverseTunnel()

func (*SSHTunnel) SetAttemptSleepTime

func (c *SSHTunnel) SetAttemptSleepTime(sleepTime time.Duration) *SSHTunnel

func (*SSHTunnel) SetLogger

func (c *SSHTunnel) SetLogger(logger func(format string, v ...any)) *SSHTunnel

func (*SSHTunnel) SetNoLogger

func (c *SSHTunnel) SetNoLogger() *SSHTunnel

func (*SSHTunnel) Wait

func (c *SSHTunnel) Wait()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL