mirror of
https://github.com/davidallendj/magellan.git
synced 2025-12-20 11:37:01 -07:00
refactor: added function to open secrets store by checking env var
This commit is contained in:
parent
5aacfceb0d
commit
cdf380bd64
3 changed files with 229 additions and 0 deletions
|
|
@ -18,9 +18,11 @@ func NewStaticStore(username, password string) *StaticStore {
|
|||
func (s *StaticStore) GetSecretByID(secretID string) (string, error) {
|
||||
return fmt.Sprintf(`{"username":"%s","password":"%s"}`, s.Username, s.Password), nil
|
||||
}
|
||||
|
||||
func (s *StaticStore) StoreSecretByID(secretID, secret string) error {
|
||||
return nil
|
||||
}
|
||||
|
||||
func (s *StaticStore) ListSecrets() (map[string]string, error) {
|
||||
return map[string]string{
|
||||
"static_creds": fmt.Sprintf(`{"username":"%s","password":"%s"}`, s.Username, s.Password),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue