mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 03:27:03 -07:00
refactor: added func to remove secrets from store
This commit is contained in:
parent
5b79031afa
commit
932daeafe1
3 changed files with 24 additions and 0 deletions
|
|
@ -101,6 +101,11 @@ func (l *LocalSecretStore) ListSecrets() (map[string]string, error) {
|
|||
return secretsCopy, nil
|
||||
}
|
||||
|
||||
// RemoveSecretByID removes the specified secretID stored locally
|
||||
func (l *LocalSecretStore) RemoveSecretByID(secretID string) {
|
||||
delete(l.Secrets, secretID)
|
||||
}
|
||||
|
||||
// openStore tries to create or open the LocalSecretStore based on the environment
|
||||
// variable MASTER_KEY. If not found, it prints an error.
|
||||
func OpenStore(filename string) (SecretStore, error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue