Skip to main content

Module admin

Module admin 

Source
Expand description

Admin verb rendering for the v1 broker.

Re-exports§

pub use crate::broker::protocol::registry::ADMIN_PAYLOAD_PROTOCOL;

Structs§

AdminBackend
Backend row used in admin output.
AdminInodePressure
Inode usage row for status --json (#390). On Windows (and on Unix filesystems without a fixed inode table) supported is false and the counters are absent rather than faked.
AdminSnapshot
Snapshot consumed by admin verb renderers.
AdminSpawnBudget
Spawn budget row used in admin output.

Enums§

AdminConnectionError
Errors raised while serving a framed admin connection.
AdminFrameError
Errors raised by admin frame validation/dispatch.

Constants§

ADMIN_SCHEMA_VERSION
Frozen admin JSON schema version.

Functions§

handle_admin_connection
Handle one already-accepted broker admin connection.
handle_admin_frame
Handle one decoded admin frame and return a response frame.
render_admin_reply
Render one typed admin request into a typed admin reply.
render_backend_health_json
Render backend-health <service> --json.
render_config_json
Render config --effective --json.
render_diagnose_json
Render diagnose --output <path> summary JSON.
render_dump_json
Render dump --json.
render_healthz
Health endpoint body.
render_list_instances_json
Render list-instances --json.
render_metrics_text
Render OpenMetrics text.
render_readyz
Readiness endpoint body.
render_status_json
Render status --json.
serve_one_admin_socket
Run one blocking local-socket accept and serve exactly one admin request.