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

refactor(storage): implement generic store #18

Merged

Conversation

fabriziosestito
Copy link
Collaborator

This PR refactors the existing sbomStorage to a generic store that can be used with any runtime.Object.
Some reflection was needed to make the code generic, similar to what was done in the etcd3 store of Kubernetes.

Fixes: #14

Signed-off-by: Fabrizio Sestito <fabrizio.sestito@suse.com>
Signed-off-by: Fabrizio Sestito <fabrizio.sestito@suse.com>
Signed-off-by: Fabrizio Sestito <fabrizio.sestito@suse.com>
Copy link
Member

@flavio flavio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. You can merge it

internal/storage/store.go Show resolved Hide resolved
@flavio flavio merged commit 69bb79e into rancher-sandbox:main Nov 4, 2024
2 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Generic store implementation
2 participants