tunnels

package
v0.0.0-...-e39acb4 Latest Latest
Warning

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

Go to latest
Published: May 10, 2019 License: BlueOak-1.0.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 DynamicTunnel

type DynamicTunnel struct {
	Local Endpoint
	// contains filtered or unexported fields
}

func (*DynamicTunnel) Close

func (t *DynamicTunnel) Close()

func (*DynamicTunnel) Name

func (t *DynamicTunnel) Name() string

func (*DynamicTunnel) Run

func (t *DynamicTunnel) Run()

type Endpoint

type Endpoint struct {
	Host string
	Port int
}

func (Endpoint) String

func (endpoint Endpoint) String() string

type FixedTunnel

type FixedTunnel struct {
	Local  Endpoint
	Remote Endpoint
	// contains filtered or unexported fields
}

func (*FixedTunnel) Close

func (t *FixedTunnel) Close()

func (*FixedTunnel) Name

func (t *FixedTunnel) Name() string

func (*FixedTunnel) Run

func (t *FixedTunnel) Run()

type Manager

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

func NewManager

func NewManager(c *ssh.Client) *Manager

func (*Manager) Dynamic

func (m *Manager) Dynamic(name string, local Endpoint) error

func (*Manager) Fixed

func (m *Manager) Fixed(name string, local, remote Endpoint) error

func (*Manager) Run

func (m *Manager) Run()

type Tunnel

type Tunnel interface {
	Run()
	Close()
	Name() string
}

Jump to

Keyboard shortcuts

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