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§
- Profile
Summary - 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 createJSON 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/expiringandorder list --expiring-in --json. - render_
job_ detail_ json jobs show --json/GET /api/jobs/{id}— the job plus, for a relay issuance, theupstream_ordersrow it drives.- render_
job_ json - One background job, for
acme-proxy jobs list/showandGET /api/jobs. - render_
nonce_ stats_ json nonce count --jsonandGET /api/nonces.- render_
order_ detail_ json order show --jsonJSON output.- render_
order_ json - JSON representation for order admin display.
- render_
profile_ json profile list --json,GET /api/profilesand/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_ordersrow joined to its local order, foracme-proxy upstream order list/showandGET /api/upstream-orders.