proxy

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: UPL-1.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureKubernetesAPIProxy

func ConfigureKubernetesAPIProxy(authproxy *AuthProxy, k8sClient client.Client, log *zap.SugaredLogger) error

ConfigureKubernetesAPIProxy configures the server handler and the proxy client for the AuthProxy instance

Types

type AuthProxy

type AuthProxy struct {
	http.Server
}

AuthProxy wraps the server instance

func InitializeProxy

func InitializeProxy(port int) *AuthProxy

InitializeProxy returns a configured AuthProxy instance

type Handler

type Handler struct {
	URL           string
	Client        *retryablehttp.Client
	Log           *zap.SugaredLogger
	OIDCConfig    map[string]string
	Authenticator auth.Authenticator
	K8sClient     client.Client
	AuthInited    atomic.Bool
	BearerToken   string
}

Handler performs HTTP handling for the AuthProxy Server

func (*Handler) ServeHTTP

func (h *Handler) ServeHTTP(rw http.ResponseWriter, req *http.Request)

ServeHTTP accepts an incoming server request and forwards it to the Kubernetes API server

Jump to

Keyboard shortcuts

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