Documentation
¶
Overview ¶
Package admin serves the endpoints Kubernetes and operators talk to: the probes, the Prometheus metrics and the status and pprof endpoints.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler serves the operational endpoints. It carries no authentication: in a sidecar it is the only listener the Pod network can reach, and a Deployment restricts it with a NetworkPolicy.
func NewHandler ¶
NewHandler builds the operational handler.
type Options ¶
type Options struct {
Status StatusReporter
Metrics *metrics.Metrics
Logger *slog.Logger
// Revision is the commit the binary was built from.
Revision string
// PprofEnabled exposes /debug/pprof.
PprofEnabled bool
}
Options configures NewHandler.
type StatusReporter ¶
StatusReporter is the part of the bridge the operational listener reports on.
Click to show internal directories.
Click to hide internal directories.