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 createJSON output (includes secret).- render_
eab_ json eab list --json/eab show --json.- render_
order_ detail_ json order show --jsonJSON output.- render_
order_ json - JSON representation for order admin display.