Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PortForwarder ¶
type PortForwarder struct {
// contains filtered or unexported fields
}
PortForwarder manages port-forwarding to a deployment with automatic reconnection
func NewPortForwarder ¶
func NewPortForwarder(namespace, deployment string, remotePort, localPort int) *PortForwarder
NewPortForwarder creates a new port forwarder
func (*PortForwarder) GetLocalPort ¶
func (pf *PortForwarder) GetLocalPort() int
GetLocalPort returns the actual assigned local port
func (*PortForwarder) IsConnected ¶
func (pf *PortForwarder) IsConnected() bool
IsConnected returns whether the port-forward is currently connected
Click to show internal directories.
Click to hide internal directories.