Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PortForwarder ¶
type PortForwarder struct {
// contains filtered or unexported fields
}
PortForwarder can manage a port forwarding session.
func NewPortForwarder ¶
func NewPortForwarder(restConfig *rest.Config, opts PortForwardingOpts) (*PortForwarder, error)
NewPortForwarder creates a PortForwarder.
func (*PortForwarder) Address ¶
func (p *PortForwarder) Address() string
Address returns an address for communicating with a port-forwarded pod.
func (*PortForwarder) KeepAlive ¶
func (p *PortForwarder) KeepAlive(ctx context.Context)
KeepAlive can be used to restart the port forwarding session in the background.
func (*PortForwarder) Stop ¶
func (p *PortForwarder) Stop()
Stop terminates a port forwarding session.
Click to show internal directories.
Click to hide internal directories.