Skip to main content

image_version_and_created

Function image_version_and_created 

Source
fn image_version_and_created(
    manifest: &ImageManifest,
    config: &ImageConfiguration,
) -> (Option<String>, Option<DateTime<Utc>>)
Expand description

Version and created timestamp for a composefs deployment image.

The version prefers the manifest annotation. When that annotation is absent, configuration labels are used (the OCI version label, then the legacy version label), matching ostree status. The timestamp is parsed from config.created(); an invalid value yields no timestamp.