handlers

package
v0.0.0-...-4d6c6f7 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 20 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dialer

type Dialer interface {
	Dial(net, addr string) (net.Conn, error)
}

type DirectTcpipChannelHandler

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

func NewDirectTcpipChannelHandler

func NewDirectTcpipChannelHandler(dialer Dialer) *DirectTcpipChannelHandler

func (*DirectTcpipChannelHandler) HandleNewChannel

func (handler *DirectTcpipChannelHandler) HandleNewChannel(logger lager.Logger, newChannel ssh.NewChannel)

type GlobalRequestHandler

type GlobalRequestHandler interface {
	HandleRequest(logger lager.Logger, request *ssh.Request, conn ssh.Conn, lnStore *helpers.ListenerStore)
}

type NewChannelHandler

type NewChannelHandler interface {
	HandleNewChannel(logger lager.Logger, newChannel ssh.NewChannel)
}

type Runner

type Runner interface {
	Start(cmd *exec.Cmd) error
	Wait(cmd *exec.Cmd) error
	Signal(cmd *exec.Cmd, signal syscall.Signal) error
}

func NewCommandRunner

func NewCommandRunner() Runner

type SessionChannelHandler

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

func NewSessionChannelHandler

func NewSessionChannelHandler(
	runner Runner,
	shellLocator ShellLocator,
	defaultEnv map[string]string,
	keepalive time.Duration,
) *SessionChannelHandler

func (*SessionChannelHandler) HandleNewChannel

func (handler *SessionChannelHandler) HandleNewChannel(logger lager.Logger, newChannel ssh.NewChannel)

type ShellLocator

type ShellLocator interface {
	ShellPath() string
}

func NewShellLocator

func NewShellLocator() ShellLocator

Directories

Path Synopsis
Code generated by counterfeiter.
Code generated by counterfeiter.
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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