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
}
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{}
Click to show internal directories.
Click to hide internal directories.