Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ForwardOnePort ¶
func ForwardOnePort(fw PortForward, ns, resource string, port uint16) (string, uint16, context.CancelFunc, error)
A helper utility to forward one port of Kubernetes resource.
Types ¶
type PortForward ¶
type PortForward interface { Forward(namespace, resourceName string, addresses []string, ports []string) ([]portforward.ForwardedPort, context.CancelFunc, error) ForwardPod(pod *corev1.Pod, addresses []string, ports []string) ([]portforward.ForwardedPort, context.CancelFunc, error) }
PortForward represents an interface which can forward local ports to a pod.
func NewPortForwarder ¶
func NewPortForwarder(ctx context.Context, restClientGetter genericclioptions.RESTClientGetter) (PortForward, error)
Click to show internal directories.
Click to hide internal directories.