Skip to main content

Module render

Module render 

Source
Expand description

The JSON renderings, shared by both front ends.

One shape per admin resource, and the boundary this module exists to hold: everything here is read by the CLI’s --json branches and by crates/admin/src/webadmin/, so a change is a change to a wire format two callers parse. The human-readable renderings are the CLI’s alone and live in cli::render, which is where colour is woven in — none of it can reach this file, so --json output stays byte-identical whatever the terminal is.

Each surfaces the admin-only fields the ACME wire format deliberately does not carry (an order’s revocation, an account’s traceability columns), and each omits rather than nulls an absent one, so a template asking {% if account.createdIp %} is asking the question it looks like it is asking.

Structs§

ProfileSummary
One ACME endpoint, as every surface describes it.

Functions§

render_account_json
JSON representation for account admin display.
render_admin_session_detail_json
A session listing plus one member no CLI rendering needed: whether this row is the caller’s own live session.
render_admin_session_json
admin session list --json.
render_admin_user_detail_json
admin user show --json: the listing shape plus the two members that cost a query.
render_admin_user_json
admin user list --json.
render_eab_created_json
eab create JSON output (includes secret).
render_eab_json
eab list --json / eab show --json.
render_expiring_json
One row of the expiry list: GET /api/expiring, /ui/expiring and order list --expiring-in --json.
render_job_detail_json
jobs show --json / GET /api/jobs/{id} — the job plus, for a relay issuance, the upstream_orders row it drives.
render_job_json
One background job, for acme-proxy jobs list/show and GET /api/jobs.
render_nonce_stats_json
nonce count --json and GET /api/nonces.
render_order_detail_json
order show --json JSON output.
render_order_json
JSON representation for order admin display.
render_profile_json
profile list --json, GET /api/profiles and /ui/profiles.
render_upstream_order_detail_json
upstream order show --json / GET /api/upstream-orders/{id} — the row plus the most recent relay job for it, live or terminal.
render_upstream_order_json
One relay upstream_orders row joined to its local order, for acme-proxy upstream order list/show and GET /api/upstream-orders.