Upsert atomically replaces an existing credential or inserts a new one. On stores that do not support overwriting (e.g. macOS Keychain), it deletes the existing credential and then saves the new one under a mutex to ensure the two operations are not interleaved.
(ctx context.Context, id ID, secret Secret)
| 91 | // deletes the existing credential and then saves the new one under a mutex |
| 92 | // to ensure the two operations are not interleaved. |
| 93 | Upsert(ctx context.Context, id ID, secret Secret) error |
| 94 | // Filter returns a map of secrets based on a [Pattern]. |
| 95 | // |
| 96 | // Secrets returned will have both [Secret.SetMetadata] and [Secret.Unmarshal] |
no outgoing calls