session

package
v0.0.0-...-9758eb9 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 67 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StdinBufferLimit    = 1024
	ResizeSleepInterval = 500 * time.Millisecond
)

Variables

This section is empty.

Functions

func NewDockerExecSessionHandler

func NewDockerExecSessionHandler(
	logger *zap.Logger,
	proxyConfig *sshConfig.ProxyConfig,
) *dockerExecSessionHandler

func NewEc2InstanceConnectSessionHandler

func NewEc2InstanceConnectSessionHandler(logger *zap.Logger, config *config.ProxyConfig) *sshSessionHandler

func NewKubectlExecSessionHandler

func NewKubectlExecSessionHandler(
	logger *zap.Logger,
	proxyConfig *sshConfig.ProxyConfig,
) *kubectlExecSessionHandler

func NewLocalSessionHandler

func NewLocalSessionHandler(logger *zap.Logger, config *config.ProxyConfig) *localSessionHandler

func NewSshSessionHandler

func NewSshSessionHandler(logger *zap.Logger, config *config.ProxyConfig) (*sshSessionHandler, error)

func NewSsmSessionHandler

func NewSsmSessionHandler(logger *zap.Logger, config *config.ProxyConfig) (*ssmSessionHandler, error)

Types

type PipeWriteChannel

type PipeWriteChannel struct {
	ssh.Channel
	// contains filtered or unexported fields
}

func NewPipeWriteChannel

func NewPipeWriteChannel(channel ssh.Channel) *PipeWriteChannel

func (*PipeWriteChannel) Write

func (pwc *PipeWriteChannel) Write(data []byte) (int, error)

type SessionHandler

type SessionHandler interface {
	Proxy(conn net.Conn)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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