k8s

package
v1.13.15 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetKubeConfig added in v1.2.0

func GetKubeConfig() (string, error)

func PortForward

func PortForward(req PortForwardRequest) error

Types

type PortForwardRequest

type PortForwardRequest struct {
	// RestConfig is the kubernetes config
	RestConfig *rest.Config

	// Pod is the selected pod for this port forwarding
	Pod v1.Pod

	// ExternalPort the local port that will be selected to expose the InternalPort
	ExternalPort int
	// InternalPort is the target port for forwarding
	InternalPort int

	// StopCh is the channel used to manage the port forward lifecycle
	StopCh <-chan struct{}
	// ReadyCh communicates when the tunnel is ready to receive traffic
	ReadyCh chan struct{}
}

Jump to

Keyboard shortcuts

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