proxy

package
v0.0.0-...-9bf9460 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2015 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClientConn

func NewClientConn(logger lager.Logger, permissions *ssh.Permissions) (ssh.Conn, <-chan ssh.NewChannel, <-chan *ssh.Request, error)

func ProxyChannels

func ProxyChannels(logger lager.Logger, conn ssh.Conn, channels <-chan ssh.NewChannel)

func ProxyGlobalRequests

func ProxyGlobalRequests(logger lager.Logger, conn ssh.Conn, reqs <-chan *ssh.Request)

func ProxyRequests

func ProxyRequests(logger lager.Logger, channelType string, reqs <-chan *ssh.Request, channel ssh.Channel)

func Wait

func Wait(logger lager.Logger, waiters ...Waiter)

Types

type LogMessage

type LogMessage struct {
	Guid    string `json:"guid"`
	Message string `json:"message"`
	Index   int    `json:"index"`
}

type Proxy

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

func New

func New(
	logger lager.Logger,
	serverConfig *ssh.ServerConfig,
) *Proxy

func (*Proxy) HandleConnection

func (p *Proxy) HandleConnection(netConn net.Conn)

type TargetConfig

type TargetConfig struct {
	Address         string `json:"address"`
	HostFingerprint string `json:"host_fingerprint"`
	User            string `json:"user,omitempty"`
	Password        string `json:"password,omitempty"`
	PrivateKey      string `json:"private_key,omitempty"`
}

type Waiter

type Waiter interface {
	Wait() error
}

Jump to

Keyboard shortcuts

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