Represents a storage utility for secrets, information that is sensitive.
Represents a storage utility for secrets, information that is sensitive.
(delete secret-storage key)Remove a secret from storage.
Parameters:
key: string - The key the secret was stored under.Returns: Thenable<void>
Remove a secret from storage. **Parameters:** - `key`: `string` - The key the secret was stored under. **Returns:** `Thenable<void>`
(get secret-storage key)Retrieve a secret that was stored with key. Returns undefined if there is no password matching that key.
Parameters:
key: string - The key the secret was stored under.Returns: Thenable<string | undefined> - The stored value or undefined.
Retrieve a secret that was stored with key. Returns undefined if there is no password matching that key. **Parameters:** - `key`: `string` - The key the secret was stored under. **Returns:** `Thenable<string | undefined>` - The stored value or `undefined`.
(on-did-change secret-storage)(on-did-change secret-storage listener)(on-did-change secret-storage listener this-args)(on-did-change secret-storage listener this-args disposables)Fires when a secret is stored or deleted.
Parameters:
listener: (e: T) => any - The listener function will be called when the event happens.this-args: any - The this-argument which will be used when calling the event listener.disposables: Disposable[] | undefined - An array to which a {@link Disposable } will be added.Returns: Disposable - A disposable which unsubscribes the event listener.
Fires when a secret is stored or deleted.
**Parameters:**
- `listener`: `(e: T) => any` - The listener function will be called when the event happens.
- `this-args`: `any` - The `this`-argument which will be used when calling the event listener.
- `disposables`: `Disposable[] | undefined` - An array to which a {@link Disposable } will be added.
**Returns:** `Disposable` - A disposable which unsubscribes the event listener.(set-on-did-change! secret-storage value)Fires when a secret is stored or deleted.
Fires when a secret is stored or deleted.
(store secret-storage key value)Store a secret under a given key.
Parameters:
key: string - The key to store the secret under.value: string - The secret.Returns: Thenable<void>
Store a secret under a given key. **Parameters:** - `key`: `string` - The key to store the secret under. - `value`: `string` - The secret. **Returns:** `Thenable<void>`
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |