proxy

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2020 License: Apache-2.0 Imports: 21 Imported by: 3

Documentation

Overview

Copyright Jetstack Ltd. See LICENSE for details.

Copyright Jetstack Ltd. See LICENSE for details.

Index

Constants

View Source
const (
	UserHeaderClientIPKey = "Remote-Client-IP"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config added in v0.3.0

type Config struct {
	DisableImpersonation bool
	TokenReview          bool

	FlushInterval   time.Duration
	ExternalAddress string

	ExtraUserHeaders                map[string][]string
	ExtraUserHeadersClientIPEnabled bool
}

type Proxy

type Proxy struct {
	// contains filtered or unexported fields
}

func New

func New(restConfig *rest.Config,
	oidcOptions *options.OIDCAuthenticationOptions,
	auditOptions *options.AuditOptions,
	tokenReviewer *tokenreview.TokenReview,
	ssinfo *server.SecureServingInfo,
	config *Config) (*Proxy, error)

func (*Proxy) OIDCTokenAuthenticator added in v0.2.0

func (p *Proxy) OIDCTokenAuthenticator() authenticator.Token

Return the proxy OIDC token authenticator

func (*Proxy) RoundTrip

func (p *Proxy) RoundTrip(req *http.Request) (*http.Response, error)

RoundTrip is called last and is used to manipulate the forwarded request using context.

func (*Proxy) Run

func (p *Proxy) Run(stopCh <-chan struct{}) (<-chan struct{}, error)

func (*Proxy) RunPreShutdownHooks added in v0.3.0

func (p *Proxy) RunPreShutdownHooks() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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