sshtunnel

package
v0.9.6 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2026 License: MPL-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecuteCommand

func ExecuteCommand(
	ctx context.Context,
	client client2.WorkspaceClient,
	addPrivateKeys bool,
	agentInject AgentInjectFunc,
	sshCommand,
	command string,
	log log.Logger,
	tunnelServerFunc TunnelServerFunc,
) (*config2.Result, error)

ExecuteCommand runs the command in an SSH Tunnel and returns the result.

Types

type AgentInjectFunc

type AgentInjectFunc func(context.Context, string, *os.File, *os.File, io.WriteCloser) error

type TunnelLogStreamer added in v0.9.1

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

func NewTunnelLogStreamer added in v0.9.1

func NewTunnelLogStreamer(logger log.Logger) *TunnelLogStreamer

func (*TunnelLogStreamer) Close added in v0.9.1

func (l *TunnelLogStreamer) Close() error

func (*TunnelLogStreamer) ErrorOutput added in v0.9.1

func (l *TunnelLogStreamer) ErrorOutput() string

func (*TunnelLogStreamer) Write added in v0.9.1

func (l *TunnelLogStreamer) Write(p []byte) (int, error)

type TunnelServerFunc

type TunnelServerFunc func(ctx context.Context, stdin io.WriteCloser, stdout io.Reader) (*config2.Result, error)

Jump to

Keyboard shortcuts

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