Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Bicopy ¶ added in v0.5.11
func Bicopy(ctx context.Context, c1, c2 io.ReadWriteCloser)
Bicopy copies all of the data between the two connections and will close them after one or both of them are done writing. If the context is canceled, both of the connections will be closed.
func ExpandRelativeHomePath ¶ added in v0.5.11
ExpandRelativeHomePath expands the tilde at the beginning of a path to the current user's home directory and returns a full absolute path.
Types ¶
type Conn ¶
type Conn struct { // Negotiator is responsible for exchanging messages. Negotiator proto.DRPCPeerBrokerClient *peer.Conn }
Conn wraps a peer connection with helper functions to communicate with the agent.
func (*Conn) DialContext ¶ added in v0.5.11
DialContext dials an arbitrary protocol+address from inside the workspace and proxies it through the provided net.Conn.
func (*Conn) ReconnectingPTY ¶ added in v0.5.2
ReconnectingPTY returns a connection serving a TTY that can be reconnected to via ID.
type ReconnectingPTYRequest ¶ added in v0.5.2
type ReconnectingPTYRequest struct { Data string `json:"data"` Height uint16 `json:"height"` Width uint16 `json:"width"` }
ReconnectingPTYRequest is sent from the client to the server to pipe data to a PTY.