proxy

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2020 License: Apache-2.0 Imports: 18 Imported by: 3

Documentation

Overview

Copyright Jetstack Ltd. See LICENSE for details.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options added in v0.2.0

type Options struct {
	DisableImpersonation bool
	TokenReview          bool
}

type Proxy

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

func New

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

func (*Proxy) Error

func (p *Proxy) Error(rw http.ResponseWriter, r *http.Request, err 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)

func (*Proxy) Run

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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