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

Function load_credential_set_from_dir

crates/openshell-prover/src/credentials.rs:356–366  ·  view source on GitHub ↗

Load credentials with API registries from a filesystem directory override.

(
    credentials_path: &Path,
    registry_dir: &Path,
)

Source from the content-addressed store, hash-verified

354
355/// Load credentials with API registries from a filesystem directory override.
356pub fn load_credential_set_from_dir(
357 credentials_path: &Path,
358 registry_dir: &Path,
359) -> Result<CredentialSet> {
360 let creds = load_credentials(credentials_path)?;
361 let api_registries = load_api_registries_from_dir(registry_dir)?;
362 Ok(CredentialSet {
363 credentials: creds,
364 api_registries,
365 })
366}
367
368#[cfg(test)]
369mod tests {

Callers 1

proveFunction · 0.85

Calls 2

load_credentialsFunction · 0.85

Tested by

no test coverage detected