fix: added missing funcs for secret store implementations

This commit is contained in:
David Allen 2025-03-19 11:36:29 -06:00
parent 932daeafe1
commit a8f0c12505
Signed by: towk
GPG key ID: 793B2924A49B3A3F
2 changed files with 6 additions and 0 deletions

View file

@ -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

View file

@ -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
}