`atomic sandbox seal` over SealSandboxImage — the entrypoint/env and output dir ride the wire; the CLI prints the local sealed report.
(args: &super::sandbox::Seal)
| 6071 | /// `atomic sandbox seal` over SealSandboxImage — the entrypoint/env and |
| 6072 | /// output dir ride the wire; the CLI prints the local sealed report. |
| 6073 | pub fn sandbox_seal(args: &super::sandbox::Seal) -> CliResult<bool> { |
| 6074 | let Some(session) = Service::open()? else { |
| 6075 | return Ok(false); |
| 6076 | }; |
| 6077 | let request = pb::SealSandboxImageRequest { |
| 6078 | repository: Some(session.reference.clone()), |
| 6079 | meta: request_meta(), |
| 6080 | name: args.view.clone(), |
| 6081 | out_dir: args.out.display().to_string(), |
| 6082 | entrypoint: args.entrypoint.clone(), |
| 6083 | env: args.env.clone(), |
| 6084 | }; |
| 6085 | let response = session.seal_sandbox_image(request)?; |
| 6086 | println!("Sealed '{}'", args.view); |
| 6087 | println!(" Image: {}", response.image_dir); |
| 6088 | println!(" Manifest: {}", response.manifest_digest); |
| 6089 | println!(" Files: {}", response.files); |
| 6090 | Ok(true) |
| 6091 | } |
| 6092 | |
| 6093 | // --------------------------------------------------------------------------- |
| 6094 | // top-level split (CreateView's FromView semantics + SwitchView) |
no test coverage detected