From c844a46415076ad9d165b844ea9b2c478ee6cee3 Mon Sep 17 00:00:00 2001 From: Alex Lovell-Troy Date: Fri, 7 Mar 2025 17:10:31 -0500 Subject: [PATCH] feat(secrets): implement SecretStore interface and StaticStore/LocalStore for credential management --- cmd/collect.go | 1 + pkg/collect.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/collect.go b/cmd/collect.go index 37b296a..381345b 100644 --- a/cmd/collect.go +++ b/cmd/collect.go @@ -7,6 +7,7 @@ import ( urlx "github.com/OpenCHAMI/magellan/internal/url" magellan "github.com/OpenCHAMI/magellan/pkg" "github.com/OpenCHAMI/magellan/pkg/auth" + "github.com/OpenCHAMI/magellan/pkg/secrets" "github.com/cznic/mathutil" "github.com/davidallendj/magellan/internal/cache/sqlite" urlx "github.com/davidallendj/magellan/internal/url" diff --git a/pkg/collect.go b/pkg/collect.go index 0a4bb4e..00fffc3 100644 --- a/pkg/collect.go +++ b/pkg/collect.go @@ -50,7 +50,7 @@ type CollectParams struct { // // Requests can be made to several of the nodes using a goroutine by setting the q.Concurrency // property value between 1 and 10000. -func CollectInventory(assets *[]RemoteAsset, params *CollectParams) ([]map[string]any, error) { +func CollectInventory(assets *[]RemoteAsset, params *CollectParams, store secrets.SecretStore) ([]map[string]any, error) { // check for available remote assets found from scan if assets == nil { return nil, fmt.Errorf("no assets found")