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

Function provider

crates/openshell-server/src/provider_refresh.rs:1167–1181  ·  view source on GitHub ↗
(name: &str, provider_type: &str)

Source from the content-addressed store, hash-verified

1165 }
1166
1167 fn provider(name: &str, provider_type: &str) -> Provider {
1168 Provider {
1169 metadata: Some(ObjectMeta {
1170 id: format!("{name}-id"),
1171 name: name.to_string(),
1172 created_at_ms: 1,
1173 labels: HashMap::new(),
1174 resource_version: 0,
1175 }),
1176 r#type: provider_type.to_string(),
1177 credentials: HashMap::new(),
1178 config: HashMap::new(),
1179 credential_expires_at_ms: HashMap::new(),
1180 }
1181 }
1182
1183 const TEST_RSA_PRIVATE_KEY: &str = r"-----BEGIN PRIVATE KEY-----
1184MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCvCoZ0mVHpCHsF

Calls

no outgoing calls

Tested by

no test coverage detected