MCPcopy Index your code
hub / github.com/scality/cloudserver / getClient

Function getClient

lib/kms/wrapper.js:67–73  ·  view source on GitHub ↗
(kms)

Source from the content-addressed store, hash-verified

65};
66
67function getClient(kms) {
68 const impl = kmsFactory[kms];
69 if (!impl) {
70 throw new Error(`KMS backend is not configured: ${kms}`);
71 }
72 return impl();
73}
74
75/**
76 * Note: non current instance from previous keys won't be healthchecked

Callers 1

wrapper.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected