connectorruntime

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dialer

type Dialer interface {
	DialContext(ctx context.Context, network, address string) (net.Conn, error)
}

type DialerFunc

type DialerFunc func(ctx context.Context, network, address string) (net.Conn, error)

func (DialerFunc) DialContext

func (f DialerFunc) DialContext(ctx context.Context, network, address string) (net.Conn, error)

type ExecRequest

type ExecRequest struct {
	Server string
	Plan   providerapi.ConnectorPlan
	Dialer Dialer
	Stream StreamConfig
}

type Executor

type Executor interface {
	RunShell(ctx context.Context, request ShellRequest) error
	RunExec(ctx context.Context, request ExecRequest) (int, error)
}

type InteractiveSession

type InteractiveSession interface {
	Run(ctx context.Context, stream StreamConfig) error
	Resize(ctx context.Context, size TerminalSize) error
	Close() error
}

type ShellRequest

type ShellRequest struct {
	Server         string
	Plan           providerapi.ConnectorPlan
	LocalRCCommand string
	StartupMarker  string
	Dialer         Dialer
	Stream         StreamConfig
}

type StreamConfig

type StreamConfig struct {
	Stdin  io.Reader
	Stdout io.Writer
	Stderr io.Writer
}

type StreamSession

type StreamSession interface {
	Run(ctx context.Context, stream StreamConfig) (int, error)
	Close() error
}

type TerminalSize

type TerminalSize struct {
	Cols int
	Rows int
}

Jump to

Keyboard shortcuts

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