pub struct WindowsBuildConfig {
pub cache_dir: PathBuf,
pub registry_auth: RegistryAuth,
pub platform: String,
pub os_version_override: Option<String>,
pub scratch_size_gb: u64,
}Expand description
Configuration for the Windows builder.
Mirrors the on-disk + registry parameters required to materialise a Windows base image. Subsequent Phase 4 tasks (4.C COPY/ADD, 4.D manifest) thread additional knobs through this struct.
Fields§
§cache_dir: PathBufBuild cache root. Per-build subdirectories (<cache_dir>/<build_id>/)
hold the unpacked base layer chain, the working writable layer, and
any future blob staging area used by 4.D/4.E.
registry_auth: RegistryAuthRegistry credentials, forwarded verbatim to the registry client when pulling the base image and (in 4.E) pushing the final manifest.
platform: StringTarget OCI platform string, e.g. "windows/amd64". The registry
client uses this to resolve a multi-platform index entry to a
concrete manifest. Defaults to "windows/amd64" via
WindowsBuildConfig::default_platform.
os_version_override: Option<String>Optional override for the tested base image OS build (the
os.version constraint, e.g. "10.0.20348.2227"). When None the
platform resolver inherits the os.version reported by the pulled
manifest. Used to pin a specific Windows build family when the host
kernel demands an exact match.
scratch_size_gb: u64Scratch-layer size in GiB for per-RUN ephemeral compute systems.
Zero means “HCS default” (currently 20).
Implementations§
Source§impl WindowsBuildConfig
impl WindowsBuildConfig
Sourcepub const fn default_platform() -> &'static str
pub const fn default_platform() -> &'static str
The default target platform string: "windows/amd64". The vast
majority of Windows container base images are published for this
platform; windows/arm64 exists but is not in widespread use yet.
Sourcepub const fn default_scratch_size_gb() -> u64
pub const fn default_scratch_size_gb() -> u64
Default scratch-layer size (20 GiB), used when
WindowsBuildConfig::scratch_size_gb is zero. Matches the
production HcsBackend default so behaviour is consistent across
the two builders.
Trait Implementations§
Source§impl Clone for WindowsBuildConfig
impl Clone for WindowsBuildConfig
Source§fn clone(&self) -> WindowsBuildConfig
fn clone(&self) -> WindowsBuildConfig
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 WindowsBuildConfig
impl RefUnwindSafe for WindowsBuildConfig
impl Send for WindowsBuildConfig
impl Sync for WindowsBuildConfig
impl Unpin for WindowsBuildConfig
impl UnsafeUnpin for WindowsBuildConfig
impl UnwindSafe for WindowsBuildConfig
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