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

Method seal_sandbox_image

atomic-cli/src/service/mod.rs:1966–1986  ·  view source on GitHub ↗
(
        &self,
        request: pb::SealSandboxImageRequest,
    )

Source from the content-addressed store, hash-verified

1964 }
1965
1966 pub fn seal_sandbox_image(
1967 &self,
1968 request: pb::SealSandboxImageRequest,
1969 ) -> CliResult<pb::SealSandboxImageResponse> {
1970 self.call(move |backend| async move {
1971 match backend {
1972 Backend::Local(state) => services_sandbox::SandboxImpl { state }
1973 .seal_sandbox_image(Request::new(request))
1974 .await
1975 .map(|response| response.into_inner()),
1976 Backend::Reactor(channel) => {
1977 let mut sandbox =
1978 pb::sandbox_service_client::SandboxServiceClient::new(channel);
1979 sandbox
1980 .seal_sandbox_image(request)
1981 .await
1982 .map(|response| response.into_inner())
1983 }
1984 }
1985 })
1986 }
1987}
1988
1989// ---------------------------------------------------------------------------

Callers 1

sandbox_sealFunction · 0.45

Calls 2

callMethod · 0.45
into_innerMethod · 0.45

Tested by

no test coverage detected