pub async fn get_images(
infra: &InfraContext<'_>,
token: &str,
params: &GetImagesParams,
) -> Result<Vec<Image>, Error>Expand description
Fetch IMS images from the backend, oldest-first (newest last).
Filters server-side by params.pattern (glob syntax, matched
against image.name) and by the params.since / params.until
creation-date bounds, then selects the newest params.limit images
and returns them oldest-first for display. Selection happens before
the display flip, so limit = 1 yields the single newest image (see
sort_and_cap).
Both filters run here rather than at the backend because IMS
accepts no query parameters at all — ImsTrait::get_images takes
only an optional image id.
An invalid glob (unbalanced bracket, malformed range, …) or a
since later than until returns [Error::BadRequest]; the
caller’s handler layer maps that to HTTP 400.