uploadproxy

package
v1.41.1 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2021 License: Apache-2.0 Imports: 25 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertWatcher added in v1.13.0

type CertWatcher interface {
	GetCertificate(_ *tls.ClientHelloInfo) (*tls.Certificate, error)
}

CertWatcher is the interface for resources that watch certs

type ClientCreator added in v1.13.0

type ClientCreator interface {
	CreateClient() (*http.Client, error)
}

ClientCreator crates *http.Clients

type Server

type Server interface {
	Start() error
}

Server is the public interface to the upload proxy

func NewUploadProxy

func NewUploadProxy(bindAddress string,
	bindPort uint,
	apiServerPublicKey string,
	certWatcher CertWatcher,
	clientCertFetcher fetcher.CertFetcher,
	serverCAFetcher fetcher.CertBundleFetcher,
	client kubernetes.Interface) (Server, error)

NewUploadProxy returns an initialized uploadProxyApp

Jump to

Keyboard shortcuts

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