Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PortForward ¶
func PortForward(opts ...PortForwardOption) (localPorts []int, stopChan chan struct{}, err error)
Types ¶
type PortForwardOption ¶
type PortForwardOption func(*PortForwardOptions)
func WithAddress ¶
func WithAddress(address string) PortForwardOption
func WithPod ¶
func WithPod(namespace, name string) PortForwardOption
func WithPorts ¶
func WithPorts(ports ...int) PortForwardOption
func WithRestConfig ¶
func WithRestConfig(restConfig *rest.Config) PortForwardOption
type PortForwardOptions ¶
type PortForwardOptions struct { RestConfig *rest.Config Namespace string Name string Address string Ports []int Out io.Writer ErrOut io.Writer }
func (*PortForwardOptions) WithOptions ¶
func (o *PortForwardOptions) WithOptions(opts ...PortForwardOption) *PortForwardOptions
Click to show internal directories.
Click to hide internal directories.