ssh

package
v0.0.0-...-b2d74e5 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const MODULE_GROUP = "global"
View Source
const MODULE_NAME = "ssh"
View Source
const MODULE_TYPE = "connect"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	LocalEndpointHost string
	LocalEndpointPort int

	ServerEndpointHost string
	ServerEndpointPort int

	RemoteEndpointHost string
	RemoteEndpointPort int

	RemoteUser string

	// Full path to id_rsa key
	KeyPath string
}

type Endpoint

type Endpoint struct {
	Host string
	Port int
}

func (*Endpoint) String

func (endpoint *Endpoint) String() string

type GlobalConnectSsh

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

func (*GlobalConnectSsh) Close

func (m *GlobalConnectSsh) Close() error

func (*GlobalConnectSsh) GetConfig

func (m *GlobalConnectSsh) GetConfig() interface{}

func (*GlobalConnectSsh) GetGroup

func (m *GlobalConnectSsh) GetGroup() string

func (*GlobalConnectSsh) GetName

func (m *GlobalConnectSsh) GetName() string

func (*GlobalConnectSsh) GetType

func (m *GlobalConnectSsh) GetType() string

func (*GlobalConnectSsh) InitModule

func (m *GlobalConnectSsh) InitModule(_cfg interface{}) error

func (*GlobalConnectSsh) InitPipe

func (m *GlobalConnectSsh) InitPipe(w io.Writer, r io.Reader) error

func (*GlobalConnectSsh) Run

func (m *GlobalConnectSsh) Run(ctx context.Context) error

type SSHtunnel

type SSHtunnel struct {
	Local    *Endpoint
	Server   *Endpoint
	Remote   *Endpoint
	Listener net.Listener

	Config *ssh.ClientConfig
}

func (*SSHtunnel) Start

func (tunnel *SSHtunnel) Start() error

func (*SSHtunnel) Stop

func (tunnel *SSHtunnel) Stop() error

Jump to

Keyboard shortcuts

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