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

Method seal_sandbox_image

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

Source from the content-addressed store, hash-verified

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

Callers 1

sandbox_sealFunction · 0.45

Calls 2

callMethod · 0.45
into_innerMethod · 0.45

Tested by

no test coverage detected