utils

package
v1.3.0 Latest Latest
Warning

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

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

Documentation

Overview

Package utils provides utility for port forwarding.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PortForwardOpt

type PortForwardOpt struct {
	LocalPort   int64
	RemotePort  int64
	MatchLabels map[string]string
	Namespace   string
	PodName     string
	TargetSvc   string
}

PortForwardOpt details for a pod

func InitiatePortForward

func InitiatePortForward(c *k8s.Client, localPort int64, remotePort int64, matchLabels map[string]string, targetSvc string) (PortForwardOpt, error)

InitiatePortForward : Initiate port forwarding

Jump to

Keyboard shortcuts

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