Documentation ¶
Index ¶
- Constants
- func NewHandlerBuilder(funcMiddlwares FunctionalMiddlewares, globalMiddlewares []mux.MiddlewareFunc) *handlerBuilder
- func NewManagementInfoHandler(connectorClientExtractor clientcontext.ConnectorClientExtractor, ...) *managementInfoHandler
- func NewRevocationHandler(revocationList revocation.RevocationListRepository, ...) *revocationHandler
- func NewStaticFileHandler(path string) http.Handler
- type CSRInfoHandler
- type Config
- type FunctionalMiddlewares
- type ManagementInfoHandler
- type SignatureHandler
Constants ¶
View Source
const ( TokenFormat = "?token=%s" CertsEndpoint = "/certificates" )
View Source
const ( RenewCertURLFormat = "%s/certificates/renewals" RevocationCertURLFormat = "%s/certificates/revocations" )
Variables ¶
This section is empty.
Functions ¶
func NewHandlerBuilder ¶
func NewHandlerBuilder(funcMiddlwares FunctionalMiddlewares, globalMiddlewares []mux.MiddlewareFunc) *handlerBuilder
func NewManagementInfoHandler ¶
func NewManagementInfoHandler(connectorClientExtractor clientcontext.ConnectorClientExtractor, certProtectedBaseURL string) *managementInfoHandler
func NewRevocationHandler ¶
func NewRevocationHandler(revocationList revocation.RevocationListRepository, headerParser certificates.HeaderParser) *revocationHandler
func NewStaticFileHandler ¶
NewStaticFileHandler creates handler for returning API spec
Types ¶
type CSRInfoHandler ¶
type CSRInfoHandler interface {
GetCSRInfo(w http.ResponseWriter, r *http.Request)
}
func NewCSRInfoHandler ¶
func NewCSRInfoHandler(tokenManager tokens.Creator, connectorClientExtractor clientcontext.ConnectorClientExtractor, getInfoURL string, baseURL string) CSRInfoHandler
type Config ¶
type Config struct { TokenCreator tokens.Creator ContextExtractor clientcontext.ConnectorClientExtractor ManagementInfoURL string ConnectorServiceBaseURL string CertificateProtectedBaseURL string CertService certificates.Service RevokedCertsRepo revocation.RevocationListRepository HeaderParser certificates.HeaderParser }
type FunctionalMiddlewares ¶
type FunctionalMiddlewares struct { AppTokenResolverMiddleware mux.MiddlewareFunc RuntimeTokenResolverMiddleware mux.MiddlewareFunc RuntimeURLsMiddleware mux.MiddlewareFunc AppContextFromSubjectMiddleware mux.MiddlewareFunc CheckForRevokedCertMiddleware mux.MiddlewareFunc }
type ManagementInfoHandler ¶
type ManagementInfoHandler interface {
GetManagementInfo(w http.ResponseWriter, r *http.Request)
}
type SignatureHandler ¶
type SignatureHandler interface {
SignCSR(w http.ResponseWriter, r *http.Request)
}
func NewSignatureHandler ¶
func NewSignatureHandler(certificateService certificates.Service, connectorClientExtractor clientcontext.ConnectorClientExtractor) SignatureHandler
Source Files ¶
Click to show internal directories.
Click to hide internal directories.