MCPcopy
hub / github.com/mailvelope/mailvelope / get

Method get

src/modules/keyring.js:49–58  ·  view source on GitHub ↗
(keyringId, attrKey)

Source from the content-addressed store, hash-verified

47 }
48
49 get(keyringId, attrKey) {
50 if (!this.has(keyringId)) {
51 throw new Error(`Keyring does not exist for id: ${keyringId}`);
52 }
53 const keyringAttr = super.get(keyringId) || {};
54 if (attrKey) {
55 return keyringAttr[attrKey];
56 }
57 return keyringAttr;
58 }
59
60 async create(keyringId, attrMap = {}) {
61 super.set(keyringId, attrMap);

Callers 11

initMethod · 0.45
setMethod · 0.45
firstTimeLoadFunction · 0.45
deleteKeyringFunction · 0.45
sanitizeKeyringFunction · 0.45
getByIdFunction · 0.45
hasAnyPrivateKeyFunction · 0.45
getAllKeyringAttrFunction · 0.45
getKeyringAttrFunction · 0.45
getPreferredKeyringQueueFunction · 0.45
getPreferredKeyringIdFunction · 0.45

Calls 1

hasMethod · 0.45

Tested by

no test coverage detected