Skip to main content

render_expiring_json

Function render_expiring_json 

Source
pub fn render_expiring_json(entry: &ExpiringEntry) -> Value
Expand description

One row of the expiry list: GET /api/expiring, /ui/expiring and order list --expiring-in --json.

A shape of its own rather than render_order_json plus two members, for two reasons. That renderer takes authz_ids, which no expiry view shows and which would be a query per row to supply; and this shape is deliberately the digest’s own (acme_proxy_jobs::notify::ExpiringCertificate), so the mail, the page, the API and the terminal all describe an expiring certificate the same way.

supersededBy is omitted when nothing has replaced this certificate, like every other absent member here — and an operator scanning the list is looking for exactly the rows where it is absent, so null would be a value where the question is presence.