connect

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: May 21, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetFreePort

func GetFreePort() (int, error)

func StartTunnel

func StartTunnel(restConfig *restclient.Config, podName string, namspace string, ports []string, opts ...Option) error

StartTunnel starts tunnel to podName in namspace on the listed ports (8080:8080 etc.)

func TunnelForEachPod

func TunnelForEachPod(ctx context.Context, config *rest.Config, clientset *kubernetes.Clientset, object runtime.Object, port int, handle tunnelHandler) error

func TunnelForPod

func TunnelForPod(ctx context.Context, config *rest.Config, pod *corev1.Pod, port int, handle tunnelHandler) error

Types

type Option

type Option interface {
	// contains filtered or unexported methods
}

func WithIOStreams

func WithIOStreams(streams *genericclioptions.IOStreams) Option

func WithReadyChannel

func WithReadyChannel(readyCh chan struct{}) Option

func WithStopChannel

func WithStopChannel(stopCh <-chan struct{}) Option

Jump to

Keyboard shortcuts

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