handlers

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Apr 11, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Config       config.Config
	CacheClient  cache.ClientInterface
	OIDCVerifier *oidc.IDTokenVerifier
	UserClient   user.ClientInterface
	ClaimsClient claims.ClientInterface
	HealthClient health.ClientInterface
}

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, config config.Config, cacheClient cache.ClientInterface, userClient user.ClientInterface, claimsClient claims.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