MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / agent_sandbox_api

Method agent_sandbox_api

crates/openshell-driver-kubernetes/src/driver.rs:273–278  ·  view source on GitHub ↗
(&self, client: Client, sandbox_api_version: &str)

Source from the content-addressed store, hash-verified

271 }
272
273 fn agent_sandbox_api(&self, client: Client, sandbox_api_version: &str) -> AgentSandboxApi {
274 let gvk = GroupVersionKind::gvk(SANDBOX_GROUP, sandbox_api_version, SANDBOX_KIND);
275 let resource = ApiResource::from_gvk(&gvk);
276 let api = Api::namespaced_with(client, &self.config.namespace, &resource);
277 AgentSandboxApi { api, resource }
278 }
279
280 async fn supported_agent_sandbox_api(&self, client: Client) -> Result<AgentSandboxApi, String> {
281 let sandbox_api_version = self.supported_sandbox_api_version(client.clone()).await?;

Calls

no outgoing calls

Tested by

no test coverage detected