package
0.0.0-20220709153646-cd005297bbf2
Repository: https://github.com/erikbos/gatekeeper.git
Documentation: pkg.go.dev

# Functions

CheckIPACL checks if requestor's ip address matches ACL.
GetRequestID returns RequestID from request context.
GetRole returns role of requestor.
GetUser returns name of requestor.
JSONMessage returns an error message.
JSONMessageAndAbort returns an error message, and aborts request.
LogHTTPRequest logs details of an HTTP request.
New returns a new webadmin.
ReadinessProbe answer with OK.
SetRequestID adds a Request-Id HTTP header for tracking purposes.
ShowAllRoutes shows HTML page based with all registered routes.
ShowStartupConfiguration prints configuration object as yaml.
StoreRole stores provided role in request context.
StoreUser stores provided username in request context.

# Constants

Path endpoint for showing running configuration.
Prometheus metrics endpoint.
Path to be used by k8s readiness check.
RequestID header.
Key of RequestID in request context.
Key of user's role in request context.

# Structs

Config holds the configuration of a webadmin.
Webadmin is an instance of our admin interface that provides operational information.