Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ForwardPort ¶
func ForwardPort(ctx context.Context, cmd *PortForwardCommand) error
ForwardPort forwards a port until context is canceled
Types ¶
type PortForwardCommand ¶
type PortForwardCommand struct { Namespace string PodName string Config *restclient.Config Client restclient.Interface PodClient corev1client.PodsGetter Ports []string Address []string Out, ErrOut *bytes.Buffer PortForwarder *portforward.PortForwarder StopChannel chan struct{} ReadyChannel chan struct{} }
func BuildPortForwardCommand ¶
func BuildPortForwardCommand(ctx context.Context, kubeConfigPath string, opts PortForwardOptions) (*PortForwardCommand, error)
Click to show internal directories.
Click to hide internal directories.