Documentation
¶
Overview ¶
Package transport supplies owned byte streams independently of the CS API.
Index ¶
- func NewWebSocket(conn *websocket.Conn) io.ReadWriteCloser
- func Run(ctx context.Context, input io.Reader, output, stderr io.Writer, ...) error
- func Start(executable string, args ...string) (io.ReadWriteCloser, error)
- func StartIn(directory, executable string, args ...string) (io.ReadWriteCloser, error)
- func StartPeerIn(directory, executable string, stderr io.Writer, args ...string) (io.ReadWriteCloser, error)
- func StartPeerWithEnv(executable string, stderr io.Writer, env []string, args ...string) (io.ReadWriteCloser, error)
- func StartPeerWithOutput(executable string, stderr io.Writer, args ...string) (io.ReadWriteCloser, error)
- func StartWithOutput(directory, executable string, stderr io.Writer, args ...string) (io.ReadWriteCloser, error)
- type Stdio
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewWebSocket ¶
func NewWebSocket(conn *websocket.Conn) io.ReadWriteCloser
func Run ¶
func Run(ctx context.Context, input io.Reader, output, stderr io.Writer, executable string, args ...string) error
Run executes a bounded bootstrap command. Cancellation kills its process group so SSH proxy children cannot keep inherited descriptors open.
func Start ¶
func Start(executable string, args ...string) (io.ReadWriteCloser, error)
Start launches a protocol peer without a terminal. stdout carries frames and stderr remains diagnostic output. Close always reaps the process.
func StartIn ¶
func StartIn(directory, executable string, args ...string) (io.ReadWriteCloser, error)
StartIn starts a headless process beside its workspace.
func StartPeerIn ¶
func StartPeerIn(directory, executable string, stderr io.Writer, args ...string) (io.ReadWriteCloser, error)
StartPeerIn owns a protocol peer in its workspace, including EOF shutdown.
func StartPeerWithEnv ¶
func StartPeerWithEnv(executable string, stderr io.Writer, env []string, args ...string) (io.ReadWriteCloser, error)
StartPeerWithEnv supplies an environment only to this child process.
func StartPeerWithOutput ¶
func StartPeerWithOutput(executable string, stderr io.Writer, args ...string) (io.ReadWriteCloser, error)
StartPeerWithOutput owns a protocol peer, including graceful EOF shutdown.
func StartWithOutput ¶
func StartWithOutput(directory, executable string, stderr io.Writer, args ...string) (io.ReadWriteCloser, error)
StartWithOutput supplies a separate stderr sink; stdout stays protocol-only.