MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / sandbox_seal

Function sandbox_seal

atomic-cli/src/commands/rpc.rs:6073–6091  ·  view source on GitHub ↗

`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)

Source from the content-addressed store, hash-verified

6071/// `atomic sandbox seal` over SealSandboxImage — the entrypoint/env and
6072/// output dir ride the wire; the CLI prints the local sealed report.
6073pub 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)

Callers 1

runMethod · 0.85

Calls 5

displayMethod · 0.80
request_metaFunction · 0.70
openFunction · 0.50
cloneMethod · 0.45
seal_sandbox_imageMethod · 0.45

Tested by

no test coverage detected