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

Method create_sandbox_tree

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

Source from the content-addressed store, hash-verified

1920 }
1921
1922 pub fn create_sandbox_tree(
1923 &self,
1924 request: pb::CreateSandboxTreeRequest,
1925 ) -> CliResult<pb::CreateSandboxTreeResponse> {
1926 self.call(move |backend| async move {
1927 match backend {
1928 Backend::Local(state) => services_sandbox::SandboxImpl { state }
1929 .create_sandbox_tree(Request::new(request))
1930 .await
1931 .map(|response| response.into_inner()),
1932 Backend::Reactor(channel) => {
1933 let mut sandbox =
1934 pb::sandbox_service_client::SandboxServiceClient::new(channel);
1935 sandbox
1936 .create_sandbox_tree(request)
1937 .await
1938 .map(|response| response.into_inner())
1939 }
1940 }
1941 })
1942 }
1943
1944 pub fn stage_sandbox_image(
1945 &self,

Callers 1

sandbox_createFunction · 0.45

Calls 2

callMethod · 0.45
into_innerMethod · 0.45

Tested by

no test coverage detected