forward

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2021 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Forward

func Forward(services map[string]ServiceMapping)

func PortForwardAService

func PortForwardAService(config *rest.Config, req PortForwardAServiceRequest) (err error)

You have to portforward directly to a pod, the service is the abstraction.

Types

type PortForwardAServiceRequest

type PortForwardAServiceRequest struct {
	RestConfig  *rest.Config
	Service     v1.Service
	LocalPort   int
	ServicePort int
	Streams     genericclioptions.IOStreams
	StopCh      <-chan struct{}
	ReadyCh     chan struct{}
}

type ServiceMapping

type ServiceMapping struct {
	Port       int
	Namespace  string
	Identifier string
	Protocol   string
}

Jump to

Keyboard shortcuts

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