e2eutils

package
v1.8.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL