Documentation
¶
Overview ¶
Package adminwire attaches the admin handler's optional stores to its dependencies: the api-gateway catalog store and embed-job queue, the index-jobs reporter, and the memory store the admin memory list reads (#1926). Each is attached only when the deployment has it, so a typed nil never reaches an interface field and a missing store leaves its routes unregistered.
It is a package of its own rather than another function in the composition root because that root is at its size budget.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MountDatabaseAPIs ¶ added in v1.150.0
func MountDatabaseAPIs(mux *http.ServeMux, p *platform.Platform, auth func(*platform.Platform) func(http.Handler) http.Handler, author func(*http.Request) string, )
MountDatabaseAPIs registers the admin routes over database rows, behind the admin API's authentication (auth): what a persona reaches (#2257), which reads references from the database when there is one, the stored secrets (#2051), and how managed resources are indexed (#2111) where there are resources. author resolves the acting administrator.
Types ¶
This section is empty.