pub struct InstallerCases {
pub asset_cases: String,
pub detect_os_cases: String,
pub detect_arch_cases: String,
pub supported_platforms: String,
}Expand description
The engine-generated case arm snippets a curl | sh installer template
consumes — asset names AND the uname→token detection vocabulary, all
derived from the release’s own targets so neither half can drift from the
other.
Fields§
§asset_cases: Stringcase "${OS}-${ARCH}" arms mapping each released pair to its exact
asset filename (bind to InstallerAssetCases).
detect_os_cases: Stringcase "$(uname -s)" arms mapping host kernel names to the OS tokens
the asset arms are keyed by (bind to InstallerDetectOsCases).
detect_arch_cases: Stringcase "$(uname -m)" arms mapping machine names to the arch tokens the
asset arms are keyed by (bind to InstallerDetectArchCases).
supported_platforms: StringThe reachable asset-arm keys — the os-arch pairs the detect arms can
actually emit — space-joined in arm order (bind to
InstallerSupportedPlatforms). Lets the script’s error paths list the
prebuilt binaries that DO exist instead of a bare “unsupported
platform”.
Implementations§
Source§impl InstallerCases
impl InstallerCases
Sourcepub fn bind(&self, vars: &mut TemplateVars)
pub fn bind(&self, vars: &mut TemplateVars)
Bind the four case tables to their template vars — the keys listed in
INSTALLER_TEMPLATE_VARS — so the templatefiles stage and any
consumption probe share one binding surface.