Expand description
Operator deploy handlers shared by both transports. Shared operator-deploy handlers used by both transports.
Every operation authorizes via crate::deploy::DeployGuard before any
handler logic runs, then maps engine outcomes onto the deploy wire
contract: deploy_denied for authorization, version_pinned for
route-active/pinned refusals, invalid_input for malformed archives and
the same-hash-different-manifest tripwire, not_found for unknown
(type, version), and 503/Unavailable for drain/shutdown windows.
Mutations emit one structured audit line and the deploy metrics.
Enums§
- Deploy
ApiError - Deploy failure classes the transports must render distinctly: 503 vs 413 vs the regular wire-code mapping.
Functions§
- list_
versions - Handles the deploy read model (
ListVersions/GET /deploy/versions). - load_
package - Handles a deploy archive upload (
LoadPackage/POST /deploy/packages). - route_
version - Handles a route re-point (
RouteVersion/POST /deploy/route). - unload_
version - Handles a version unload (
UnloadVersion/POST /deploy/unload).