Documentation ¶
Overview ¶
Package https provides HTTPS helpers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ErrorHTTPHandler ¶
func ErrorHTTPHandler(logger *logrus.Entry, f ErrorHandlerFunc) http.HandlerFunc
ErrorHTTPHandler is a conversion function that sets up a http.StatusInternalServerError if an error is returned
func FourZeroFour ¶
FourZeroFour is the standard 404 handler.
Types ¶
type ErrorHandlerFunc ¶
type ErrorHandlerFunc func(http.ResponseWriter, *http.Request) error
ErrorHandlerFunc is a http handler that can return an error for standard logging and a 500 response
type Server ¶
Server is a HTTPs server that conforms to the runner interface we use in /cmd/controller, and has a public Mux that can be updated has a default 404 handler, to make discovery of k8s services a bit easier.
func (*Server) Run ¶
Run runs the webhook server, starting a https listener. Will close the http server on stop channel close.
func (*Server) WatchForCertificateChanges ¶ added in v1.38.0
WatchForCertificateChanges watches for changes in the certificate files