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

Function gateway_metadata_source

crates/openshell-bootstrap/src/metadata.rs:209–211  ·  view source on GitHub ↗

Return whether a gateway metadata record would resolve from user or system config.

(name: &str)

Source from the content-addressed store, hash-verified

207
208/// Return whether a gateway metadata record would resolve from user or system config.
209pub fn gateway_metadata_source(name: &str) -> Result<Option<GatewayMetadataSource>> {
210 Ok(resolve_gateway_metadata_path(name)?.map(|(_, source)| source))
211}
212
213pub fn load_gateway_metadata(name: &str) -> Result<GatewayMetadata> {
214 let primary = user_gateway_metadata_path(name)?;

Callers 2

gateway_addFunction · 0.85
gateway_removeFunction · 0.85

Calls 1

Tested by

no test coverage detected