transport

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertGetter added in v1.2.0

type CertGetter interface {
	// GetAPIServerClientCert returns the currently selected certificate, as well as
	// the associated certificate and key data in PEM format.
	GetAPIServerClientCert() *tls.Certificate
	// GetCAData returns CA file data.
	GetCAData() []byte
}

type Interface

type Interface interface {
	// CurrentTransport get transport that used by load balancer
	// and can be used by multiple goroutines concurrently.
	CurrentTransport() http.RoundTripper
	// BearerTransport returns transport for proxying request with bearer token in header
	BearerTransport() http.RoundTripper
	// Close all net connections that specified by address
	Close(address string)
}

Interface is an transport interface for managing clients that used to connecting kube-apiserver

func NewTransportManager

func NewTransportManager(certGetter CertGetter, stopCh <-chan struct{}) (Interface, error)

NewTransportManager create a transport interface object.

Jump to

Keyboard shortcuts

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