sshtunnel

package
v0.0.0-...-fc827b4 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSSHClient

func NewSSHClient(
	sshHost, sshPort, sshUser, sshPass, privateKey string,
) (*ssh.Client, error)

Types

type ViaSSHDialer

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

func NewViaSSHDialer

func NewViaSSHDialer(client *ssh.Client) *ViaSSHDialer

func (*ViaSSHDialer) DialTCP

func (d *ViaSSHDialer) DialTCP(ctx context.Context, address string) (net.Conn, error)

Jump to

Keyboard shortcuts

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