kubernetes: k8s.io/kubernetes/pkg/kubectl/cmd/portforward Index | Files

package portforward

import "k8s.io/kubernetes/pkg/kubectl/cmd/portforward"

Index

Package Files

portforward.go

func NewCmdPortForward Uses

func NewCmdPortForward(f cmdutil.Factory, streams genericclioptions.IOStreams) *cobra.Command

type PortForwardOptions Uses

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 Uses

func (o *PortForwardOptions) Complete(f cmdutil.Factory, cmd *cobra.Command, args []string) error

Complete completes all the required options for port-forward cmd.

func (PortForwardOptions) RunPortForward Uses

func (o PortForwardOptions) RunPortForward() error

RunPortForward implements all the necessary functionality for port-forward cmd.

func (PortForwardOptions) Validate Uses

func (o PortForwardOptions) Validate() error

Validate validates all the required options for port-forward cmd.

Package portforward imports 22 packages (graph) and is imported by 10 packages. Updated 2019-06-29. Refresh now. Tools for package owners.