tunnel

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrivateKeyFile

func PrivateKeyFile(file, passphrase string) ssh.AuthMethod

Types

type Endpoint

type Endpoint struct {
	Host string
	Port int
	User string
}

func NewEndpoint

func NewEndpoint(addr string) *Endpoint

func (*Endpoint) String

func (endpoint *Endpoint) String() string

type Tunnel

type Tunnel struct {
	Local  *Endpoint
	Jump   *Endpoint
	Remote *Endpoint
	Config *ssh.ClientConfig
}

func NewTunnel

func NewTunnel(local, jump, remote string, auth ssh.AuthMethod) *Tunnel

func (*Tunnel) Dial

func (t *Tunnel) Dial()

Jump to

Keyboard shortcuts

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