MCPcopy Index your code
hub / github.com/coder/mux / resolvePrivateKeys

Function resolvePrivateKeys

src/node/runtime/SSH2ConnectionPool.ts:252–264  ·  view source on GitHub ↗
(identityFiles: string[])

Source from the content-addressed store, hash-verified

250 );
251}
252async function resolvePrivateKeys(identityFiles: string[]): Promise<Buffer[]> {
253 const keys: Buffer[] = [];
254
255 for (const file of identityFiles) {
256 try {
257 keys.push(await fs.readFile(file));
258 } catch {
259 // Try next identity file.
260 }
261 }
262
263 return keys;
264}
265
266export class SSH2ConnectionPool {
267 private health = new Map<string, ConnectionHealth>();

Callers 1

attemptConnectionMethod · 0.85

Calls 2

pushMethod · 0.65
readFileMethod · 0.65

Tested by

no test coverage detected