handlers

package
v0.0.42 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOIDCHandler added in v0.0.27

func NewOIDCHandler(h http.HandlerFunc, tenantID string, clientID string) http.Handler

NewOIDCHandler returns a http.Handler to take care of the JWT validation

Types

type Client

type Client struct {
	CacheClient  cache.ClientInterface
	UserClient   user.ClientInterface
	HealthClient health.ClientInterface
	// contains filtered or unexported fields
}

Client ...

func (*Client) AzadKubeProxyHandler

func (client *Client) AzadKubeProxyHandler(ctx context.Context, p *httputil.ReverseProxy) func(http.ResponseWriter, *http.Request)

AzadKubeProxyHandler ...

func (*Client) ErrorHandler

func (client *Client) ErrorHandler(ctx context.Context) func(w http.ResponseWriter, r *http.Request, err error)

ErrorHandler ...

func (*Client) LivenessHandler

func (client *Client) LivenessHandler(ctx context.Context) func(http.ResponseWriter, *http.Request)

LivenessHandler ...

func (*Client) ReadinessHandler

func (client *Client) ReadinessHandler(ctx context.Context) func(http.ResponseWriter, *http.Request)

ReadinessHandler ...

type ClientInterface

type ClientInterface interface {
	ReadinessHandler(ctx context.Context) func(http.ResponseWriter, *http.Request)
	LivenessHandler(ctx context.Context) func(http.ResponseWriter, *http.Request)
	AzadKubeProxyHandler(ctx context.Context, p *httputil.ReverseProxy) func(http.ResponseWriter, *http.Request)
	ErrorHandler(ctx context.Context) func(w http.ResponseWriter, r *http.Request, err error)
}

ClientInterface ...

func NewHandlersClient

func NewHandlersClient(ctx context.Context, cfg *config.Config, cacheClient cache.ClientInterface, userClient user.ClientInterface, healthClient health.ClientInterface) (ClientInterface, error)

NewHandlersClient ...

Jump to

Keyboard shortcuts

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