Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PortForward ¶
type PortForward struct {
// contains filtered or unexported fields
}
PortForward is a handle represents a port-forward connection.
func New ¶
func New(cfg *rest.Config, localAddress string, localPort uint16, namespace string, name string, port uint16) *PortForward
Create new PortForward handle
func (*PortForward) LocalAddress ¶
func (pfw *PortForward) LocalAddress() string
func (*PortForward) LocalPort ¶
func (pfw *PortForward) LocalPort() uint16
func (*PortForward) Start ¶
func (pfw *PortForward) Start() error
Start port-forwarding; blocks up to 10 seconds, until port-forward is ready, or an error or timeout occurred; Start() may be called only once (even after error); any further call will return an error.
func (*PortForward) Stop ¶
func (pfw *PortForward) Stop()
Stop port-forwarding; calling Stop() on a not yet started or already stopped handle has no effect.
Click to show internal directories.
Click to hide internal directories.