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
35cf2222a0
commit
b49b1f761d
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
|
||||
func (l *LocalSecretStore) RemoveSecretByID(secretID string) {
|
||||
l.mu.RLock()
|
||||
delete(l.Secrets, secretID)
|
||||
l.mu.RUnlock()
|
||||
}
|
||||
|
||||
// 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),
|
||||
}, 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