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

Function remove_indexes

crates/openshell-driver-kubernetes/src/driver.rs:916–923  ·  view source on GitHub ↗
(
    sandbox_name_to_id: &mut std::collections::HashMap<String, String>,
    agent_pod_to_id: &mut std::collections::HashMap<String, String>,
    sandbox_id: &str,
)

Source from the content-addressed store, hash-verified

914}
915
916fn remove_indexes(
917 sandbox_name_to_id: &mut std::collections::HashMap<String, String>,
918 agent_pod_to_id: &mut std::collections::HashMap<String, String>,
919 sandbox_id: &str,
920) {
921 sandbox_name_to_id.retain(|_, value| value != sandbox_id);
922 agent_pod_to_id.retain(|_, value| value != sandbox_id);
923}
924
925fn map_kube_event_to_platform(
926 sandbox_name_to_id: &std::collections::HashMap<String, String>,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected