Documentation
¶
Overview ¶
Package apiroutesapi serves /api/v1/admin/api-route-connections: the operations a persona's API route rules can be written against.
It is the authoring counterpart to the two browse surfaces #1478 shipped. Those answer what a reader reaches and are route-policy filtered; this one answers what exists, filtered by nothing. The difference matters here and nowhere else: an operator writing rules for one persona is not that persona, and a listing narrowed by the operator's own rules would hide exactly the operations they are trying to grant back.
A decomposition seam of pkg/admin, which is at its package size budget; the parent registers it on the admin mux alongside the persona routes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct {
// Toolkits is the live registry, read per request so a connection added
// through the admin API appears without a restart. Nil leaves the route
// unregistered.
Toolkits ToolkitLister
}
Config wires the surface to the registry it reads.
type ToolkitLister ¶
ToolkitLister is the live toolkit registry, narrowed to the enumeration this surface needs. Satisfied by *registry.Registry.