internalapi

package
v0.0.0-...-affaa53 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const TokenURLFormat = "%s?token=%s"

Variables

This section is empty.

Functions

func NewHandlerBuilder

func NewHandlerBuilder(functionalMiddlewares FunctionalMiddlewares, globalMiddlewares []mux.MiddlewareFunc) *handlerBuilder

func NewRevocationHandler

func NewRevocationHandler(revocationListRepository revocation.RevocationListRepository) *revocationHandler

Types

type Config

type Config struct {
	TokenManager            tokens.Creator
	CSRInfoURL              string
	ContextExtractor        clientcontext.ConnectorClientExtractor
	RevokedCertsRepo        revocation.RevocationListRepository
	RevokedRuntimeCertsRepo revocation.RevocationListRepository
}

type FunctionalMiddlewares

type FunctionalMiddlewares struct {
	ApplicationCtxMiddleware mux.MiddlewareFunc
	RuntimeCtxMiddleware     mux.MiddlewareFunc
}

type TokenHandler

type TokenHandler interface {
	CreateToken(w http.ResponseWriter, r *http.Request)
}

func NewTokenHandler

func NewTokenHandler(tokenManager tokens.Creator, csrInfoURL string, connectorClientExtractor clientcontext.ConnectorClientExtractor) TokenHandler

Jump to

Keyboard shortcuts

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