validationproxy

package
v0.0.0-...-a52e8f6 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2020 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CertificateInfoHeader = "X-Forwarded-Client-Cert"
)

Variables

This section is empty.

Functions

func NewHandler

func NewHandler(proxyHandler ProxyHandler) http.Handler

func NewProxyHandler

func NewProxyHandler(
	group string,
	tenant string,
	eventServicePathPrefixV1 string,
	eventServicePathPrefixV2 string,
	eventServiceHost string,
	eventMeshPathPrefix string,
	eventMeshHost string,
	appRegistryPathPrefix string,
	appRegistryHost string,
	applicationGetter ApplicationGetter,
	cache Cache) *proxyHandler

Types

type ApplicationGetter

type ApplicationGetter interface {
	Get(name string, options metav1.GetOptions) (*v1alpha1.Application, error)
}

type Cache

type Cache interface {
	Get(k string) (interface{}, bool)
	Set(k string, x interface{}, d time.Duration)
}

type ProxyHandler

type ProxyHandler interface {
	ProxyAppConnectorRequests(w http.ResponseWriter, r *http.Request)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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