forwarder

package
v0.1.72 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRunningKubeAPIServerPod

func GetRunningKubeAPIServerPod(ctx context.Context, kbClient crclient.Client, cpNamespace string) (*corev1.Pod, error)

Types

type PortForwarder

type PortForwarder struct {
	Namespace string
	PodName   string
	Client    kubernetes.Interface
	Config    *restclient.Config
	Out       io.Writer
	ErrOut    io.Writer
}

portForwarder starts port forwarding to a given pod

func (*PortForwarder) ForwardPorts

func (f *PortForwarder) ForwardPorts(ports []string, stopChan <-chan struct{}) error

ForwardPorts will forward a set of ports from a pod, the stopChan will stop the forwarding when it's closed or receives a struct{}

Jump to

Keyboard shortcuts

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