proxy

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Proxy

func Proxy(source io.Reader, sink io.Writer, conn *net.UnixConn) error

Proxy connects the read and writer with the specified connection. Under typical usage the connection will be to the steps gRPC service listening on api.DefaultSocketPath, and the source and sink will be the stdin and stdout (respectively) of a streaming-text based protocol like `ssh` or `docker exec`.

The proxy should exit immediately if either of the write or read loop finish. Whether proxying was complete and successful cannot be determined here and is up to the caller to determine based on the result of the data/operation being proxied.

Types

This section is empty.

Jump to

Keyboard shortcuts

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