util

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2024 License: Apache-2.0 Imports: 25 Imported by: 3

Documentation

Index

Constants

View Source
const PortForwardProtocolV1Name = "portforward.k8s.io"

PortForwardProtocolV1Name is the subprotocol used for port forwarding.

Variables

This section is empty.

Functions

func GenerateServiceURL added in v0.3.0

func GenerateServiceURL(cluster, namespace, service string) string

func GetKonnectivityTLSConfig added in v0.1.3

func GetKonnectivityTLSConfig(restConfig *rest.Config, proxyConfig *proxyv1alpha1.ManagedProxyConfiguration) (*tls.Config, error)

func IsServiceResolverLegal added in v0.3.0

func IsServiceResolverLegal(mpsr *proxyv1alpha1.ManagedProxyServiceResolver) bool

Types

type LocalProxyServer

type LocalProxyServer interface {
	Listen(ctx context.Context) (func(), error)
}

func NewRoundRobinLocalProxy

func NewRoundRobinLocalProxy(
	restConfig *rest.Config,
	readiness *atomic.Value,
	podNamespace,
	podSelector string,
	targetPort int32) LocalProxyServer

func NewRoundRobinLocalProxyWithReqId added in v0.1.4

func NewRoundRobinLocalProxyWithReqId(
	restConfig *rest.Config,
	readiness *atomic.Value,
	podNamespace,
	podSelector string,
	targetPort int32,
	reqId int) LocalProxyServer

Jump to

Keyboard shortcuts

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