tunnel

package
v0.7.9 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LocalMode  = "local"
	RemoteMode = "remote"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type SSHTunnel

type SSHTunnel struct {
	Mode        string
	Source      string
	Destination string
	// contains filtered or unexported fields
}

func NewSSHTunnel

func NewSSHTunnel(conf *transport.ClientConfig, destination, source, mode string) *SSHTunnel

func (*SSHTunnel) Close

func (s *SSHTunnel) Close()

func (*SSHTunnel) GetErrorMsg

func (s *SSHTunnel) GetErrorMsg() string

func (*SSHTunnel) SetErrorMsg

func (s *SSHTunnel) SetErrorMsg(msg string, err error)

func (*SSHTunnel) Start

func (s *SSHTunnel) Start()

func (*SSHTunnel) Status

func (s *SSHTunnel) Status() bool

Jump to

Keyboard shortcuts

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