pub struct BaseImageManifest {
pub image_ref: String,
pub os: String,
pub os_version: Option<String>,
pub arch: String,
pub config_blob: Vec<u8>,
}Expand description
Resolved manifest information for the pulled base image.
Carried into BuildSkeleton so task 4.D can populate the final
image config’s os / os.version fields without re-pulling the
manifest. Task 4.D also reads base_config so the
final image’s config.Env / WorkingDir / Entrypoint defaults
inherit from the base.
Fields§
§image_ref: StringImage reference the base was pulled from, e.g.
"mcr.microsoft.com/windows/nanoserver:ltsc2022". Preserved for
diagnostics and for foreign-layer push paths in task 4.E.
os: StringOCI os value from the resolved manifest’s platform descriptor —
always "windows" for a WCOW build, but stored for symmetry with
the OCI spec.
os_version: Option<String>OCI os.version from the resolved manifest’s platform descriptor
(e.g. "10.0.20348.2227"). Used as the final image’s
os.version unless
WindowsBuildConfig::os_version_override overrides it. None
when the base manifest omits the field, which is non-conformant
for Windows but tolerated.
arch: Stringarch from the resolved manifest. Defaults to "amd64".
config_blob: Vec<u8>JSON of the base image config blob (manifest.config). Stored as
raw bytes so task 4.D can hand it straight back through
serde_json without forcing this skeleton to take a hard dep on
zlayer_registry::image_config::ImageConfig. Empty when the base
config could not be fetched (a non-fatal degradation handled in
task 4.D).
Trait Implementations§
Source§impl Clone for BaseImageManifest
impl Clone for BaseImageManifest
Source§fn clone(&self) -> BaseImageManifest
fn clone(&self) -> BaseImageManifest
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for BaseImageManifest
impl RefUnwindSafe for BaseImageManifest
impl Send for BaseImageManifest
impl Sync for BaseImageManifest
impl Unpin for BaseImageManifest
impl UnsafeUnpin for BaseImageManifest
impl UnwindSafe for BaseImageManifest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request