package portforward
import "k8s.io/kubernetes/pkg/kubectl/cmd/portforward"
Index ¶
- func NewCmdPortForward(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command
- type PortForwardOptions
Functions ¶
func NewCmdPortForward ¶
Types ¶
type PortForwardOptions ¶
type PortForwardOptions struct { Namespace string PodName string RESTClient *restclient.RESTClient Config *restclient.Config PodClient corev1client.PodsGetter Address []string Ports []string PortForwarder portForwarder StopChannel chan struct{} ReadyChannel chan struct{} }
PortForwardOptions contains all the options for running the port-forward cli command.
func (*PortForwardOptions) Complete ¶
Complete completes all the required options for port-forward cmd.
func (PortForwardOptions) RunPortForward ¶
func (o PortForwardOptions) RunPortForward() error
RunPortForward implements all the necessary functionality for port-forward cmd.
func (PortForwardOptions) Validate ¶
func (o PortForwardOptions) Validate() error
Validate validates all the required options for port-forward cmd.
Source Files ¶
portforward.go
- Version
- v1.13.10
- Published
- Aug 17, 2019
- Platform
- js/wasm
- Imports
- 22 packages
- Last checked
- 5 minutes ago –
Tools for package owners.