pub fn lower(manifest: &Manifest) -> Result<ExportModel>Expand description
Lowers a lightshuttle_manifest::Manifest into an ExportModel.
Each manifest resource is resolved through lightshuttle-spec, so the
resulting model inherits the same image, port, environment, and healthcheck
defaults that the runtime applies. This keeps lightshuttle up and
lightshuttle export in sync with no manual duplication.
The raw export: section is carried through unchanged; emitters read it
via the crate::resolve helpers to apply per-target overrides.
ยงErrors
Returns ExportError::Spec when a resource cannot be resolved into a
container specification by lightshuttle-spec.