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

Method inject_env

crates/openshell-providers/src/lib.rs:79–79  ·  view source on GitHub ↗

Inject provider-specific environment variables into the sandbox env. Called during sandbox creation to project provider config (project IDs, regions, SDK flags) into env vars the sandbox process will inherit. Default is a no-op; GCP and Vertex providers override this.

(&self, _provider: &Provider, _env: &mut HashMap<String, String>)

Source from the content-addressed store, hash-verified

77 /// regions, SDK flags) into env vars the sandbox process will inherit.
78 /// Default is a no-op; GCP and Vertex providers override this.
79 fn inject_env(&self, _provider: &Provider, _env: &mut HashMap<String, String>) {}
80}
81
82/// Blanket implementation of [`ProviderPlugin`] for [`ProviderDiscoverySpec`].

Callers

nothing calls this directly

Implementers 6

lib.rscrates/openshell-providers/src/lib.rs
google_cloud.rscrates/openshell-providers/src/provide
outlook.rscrates/openshell-providers/src/provide
vertex.rscrates/openshell-providers/src/provide
opencode.rscrates/openshell-providers/src/provide
generic.rscrates/openshell-providers/src/provide

Calls

no outgoing calls

Tested by

no test coverage detected