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 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 crate::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.

Functions§

profile_base_url
The public base URL of one endpoint, as the server itself derives it.
render_account_json
JSON representation for account admin display.
render_admin_session_json
admin session list --json.
render_admin_user_json
admin user list --json / admin user show --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_order_detail_json
order show --json JSON output.
render_order_json
JSON representation for order admin display.