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

Method create_sandbox_tree

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

Source from the content-addressed store, hash-verified

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

Callers 1

sandbox_createFunction · 0.45

Calls 2

callMethod · 0.45
into_innerMethod · 0.45

Tested by

no test coverage detected