util

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 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 GetKonnectivityTLSConfig added in v0.1.3

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

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