sshtunnel

package
v2.0.0-...-ab38247 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2021 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Endpoint

type Endpoint struct {
	Host string
	Port int
}

func (*Endpoint) String

func (endpoint *Endpoint) String() string

type SSHtunnel

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

func NewSSHTunnel

func NewSSHTunnel(user, privateKey string, serverEndpoint *Endpoint, tunnels map[string]*SourceDestination, log *logging.Logger) (*SSHtunnel, error)

func (*SSHtunnel) Close

func (tunnel *SSHtunnel) Close()

func (*SSHtunnel) Start

func (tunnel *SSHtunnel) Start() error

func (*SSHtunnel) String

func (tunnel *SSHtunnel) String() string

type SourceDestination

type SourceDestination struct {
	Local  *Endpoint
	Remote *Endpoint
}

Jump to

Keyboard shortcuts

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