()
| 303 | * @return {Object<keyringId, KeyringBase>} |
| 304 | */ |
| 305 | export async function getAllKeyringAttr() { |
| 306 | await keyringInitialized; |
| 307 | const attrObj = keyringAttr.toObject(); |
| 308 | if (keyringAttr.has(GNUPG_KEYRING_ID)) { |
| 309 | const gpgKeyring = keyringMap.get(GNUPG_KEYRING_ID); |
| 310 | if (gpgKeyring) { |
| 311 | Object.assign(attrObj[GNUPG_KEYRING_ID], gpgKeyring.getAttr()); |
| 312 | } else { |
| 313 | delete attrObj[GNUPG_KEYRING_ID]; |
| 314 | } |
| 315 | } |
| 316 | return attrObj; |
| 317 | } |
| 318 | |
| 319 | /** |
| 320 | * Set keyring attributes |
no test coverage detected