MCPcopy Create free account
hub / github.com/PostHog/duckgres / listOperators

Method listOperators

controlplane/admin/operators_api.go:32–39  ·  view source on GitHub ↗
(c *gin.Context)

Source from the content-addressed store, hash-verified

30 store operatorStore
31}
32
33// registerOperatorsAPI wires the Operators management endpoints. Every route is
34// admin-only (RequireAdmin per-route, so the gate travels with the route and a
35// rename can't silently downgrade it). Mutations also flow through the audited
36// /api/v1 group, so operator changes are recorded automatically.
37func registerOperatorsAPI(r *gin.RouterGroup, store operatorStore) {
38 h := &operatorsHandler{store: store}
39 r.GET("/operators", RequireAdmin(), h.listOperators)
40 r.POST("/operators", RequireAdmin(), h.upsertOperator)
41 r.DELETE("/operators/:email", RequireAdmin(), h.deleteOperator)
42}

Callers 1

useOperatorsFunction · 0.80

Calls 2

ListOperatorsMethod · 0.80
ErrorMethod · 0.45

Tested by

no test coverage detected