Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add key search query to inventory subsystem storage #19

Open
jessepeterson opened this issue May 31, 2023 · 0 comments
Open

add key search query to inventory subsystem storage #19

jessepeterson opened this issue May 31, 2023 · 0 comments
Labels
storage Storage backend subsystem Subsystem

Comments

@jessepeterson
Copy link
Member

Currently we return all keys when we query inventory. Want an option to return just specified keys. I.e.:

--- a/subsystem/inventory/storage/storage.go
+++ b/subsystem/inventory/storage/storage.go
@@ -1,3 +1,4 @@
 package storage
 
 import (
@@ -7,30 +8,11 @@ import (
 // SearchOptions is a basic query for inventory enrollment IDs.
 type SearchOptions struct {
        IDs  []string // slice of enrollment IDs to query against
+       Keys []string // slice of Keys to return
 }
@jessepeterson jessepeterson added storage Storage backend subsystem Subsystem labels May 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
storage Storage backend subsystem Subsystem
Projects
None yet
Development

No branches or pull requests

1 participant