mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 11:37:01 -07:00
fix: added missing funcs for secret store implementations
This commit is contained in:
parent
932daeafe1
commit
a8f0c12505
2 changed files with 6 additions and 0 deletions
|
|
@ -103,7 +103,9 @@ func (l *LocalSecretStore) ListSecrets() (map[string]string, error) {
|
||||||
|
|
||||||
// RemoveSecretByID removes the specified secretID stored locally
|
// RemoveSecretByID removes the specified secretID stored locally
|
||||||
func (l *LocalSecretStore) RemoveSecretByID(secretID string) {
|
func (l *LocalSecretStore) RemoveSecretByID(secretID string) {
|
||||||
|
l.mu.RLock()
|
||||||
delete(l.Secrets, secretID)
|
delete(l.Secrets, secretID)
|
||||||
|
l.mu.RUnlock()
|
||||||
}
|
}
|
||||||
|
|
||||||
// openStore tries to create or open the LocalSecretStore based on the environment
|
// openStore tries to create or open the LocalSecretStore based on the environment
|
||||||
|
|
|
||||||
|
|
@ -28,3 +28,7 @@ func (s *StaticStore) ListSecrets() (map[string]string, error) {
|
||||||
"static_creds": fmt.Sprintf(`{"username":"%s","password":"%s"}`, s.Username, s.Password),
|
"static_creds": fmt.Sprintf(`{"username":"%s","password":"%s"}`, s.Username, s.Password),
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (s *StaticStore) RemoveSecretByID(secretID string) {
|
||||||
|
// Nothing to do here, since nothing is being stored
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue