pub struct OciImageIndex {
pub schema_version: u8,
pub media_type: Option<String>,
pub manifests: Vec<ImageIndexEntry>,
pub annotations: Option<BTreeMap<String, String>>,
}
Expand description
The image index is a higher-level manifest which points to specific image manifest.
It is part of the OCI specification, and is defined here:
Fields§
§schema_version: u8
This is a schema version.
The specification does not specify the width of this integer.
However, the only version allowed by the specification is 2
.
So we have made this a u8.
media_type: Option<String>
This is an optional media type describing this manifest.
It is reserved for compatibility, but the specification does not seem to recommend setting it.
manifests: Vec<ImageIndexEntry>
This property contains a list of manifests for specific platforms. The spec says this field must be present but the value may be an empty array.
annotations: Option<BTreeMap<String, String>>
The annotations for this manifest
The specification says “If there are no annotations then this property MUST either be absent or be an empty map.” TO accomodate either, this is optional.
Trait Implementations§
Source§impl Clone for OciImageIndex
impl Clone for OciImageIndex
Source§fn clone(&self) -> OciImageIndex
fn clone(&self) -> OciImageIndex
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more