Documentation ¶
Overview ¶
Package portforward holds the infrastructure to support the port forward command.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFileDescriptionConn ¶
func NewFileDescriptionConn(file *vfs.FileDescription) proxyConn
NewFileDescriptionConn initializes a fileDescriptionConn.
func NewHostInetConn ¶
NewHostInetConn creates a hostInetConn backed by a host socket on the localhost address.
Types ¶
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
Proxy controls copying data between two proxyConnections. Proxy takes ownership over the two connections and is responsible for cleaning up their resources (i.e. calling their Close method). Proxy(s) all run internal to the sandbox on the supervisor context.
func (*Proxy) AddCleanup ¶
func (pf *Proxy) AddCleanup(cu func())
AddCleanup adds a cleanup to this Proxy's cleanup.
Click to show internal directories.
Click to hide internal directories.