sshtunnel

package
v0.4.24 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2025 License: Apache-2.0 Imports: 7 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 {
	Host       string
	Port       int
	User       string
	PrivateKey []byte
}

func (*SshTunnel) IsEnabled

func (r *SshTunnel) IsEnabled() bool

type SshTunnelDialer

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

func NewSshTunnelDialer

func NewSshTunnelDialer(tunnel *SshTunnel) (*SshTunnelDialer, error)

func (*SshTunnelDialer) Close

func (d *SshTunnelDialer) Close() error

func (*SshTunnelDialer) Dial

func (d *SshTunnelDialer) Dial(network, address string) (net.Conn, error)

func (*SshTunnelDialer) DialContext

func (d *SshTunnelDialer) DialContext(ctx context.Context, network, address string) (net.Conn, error)

func (*SshTunnelDialer) DialTimeout

func (d *SshTunnelDialer) DialTimeout(network, address string, timeout time.Duration) (net.Conn, error)

Jump to

Keyboard shortcuts

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