Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PortForwarder ¶
type PortForwarder struct {
Namespace string
PodName string
Client kubernetes.Interface
Config *restclient.Config
Out io.Writer
ErrOut io.Writer
// contains filtered or unexported fields
}
PortForwarder starts port forwarding to a given pod.
func (*PortForwarder) ForwardPorts ¶
func (f *PortForwarder) ForwardPorts(ports []string, stopChan <-chan struct{}) error
ForwardPorts will forward a set of ports from a pod, the stopChan will stop the forwarding when it's closed or receives a struct{}
func (*PortForwarder) GetPorts ¶ added in v0.1.86
func (f *PortForwarder) GetPorts() ([]portforward.ForwardedPort, error)
GetPorts returns the locally bound ports after ForwardPorts has been called. Use this to retrieve the actual local port when binding with local port 0.
Click to show internal directories.
Click to hide internal directories.