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 unused.Meta type to unused.Disk and unused.Provider #1

Merged
merged 10 commits into from
Apr 11, 2022
Merged

Conversation

inkel
Copy link
Collaborator

@inkel inkel commented Apr 11, 2022

These changes include the unused.Meta type to hold metadata, and adds a Meta() unused.Meta function to both unused.Disk and unused.Provider interfaces.

While at it, when adding the implementations, the code will also pick some other attributes from the different providers to be used as metadata. If all providers would agree on a consistent way of having metadata, that would make this much easier.

inkel added 10 commits April 10, 2022 10:45
Signed-off-by: Leandro López (inkel) <leandro.lopez@grafana.com>
This currently returns empty for all providers. Specific
implementations come in next commit.

Signed-off-by: Leandro López (inkel) <leandro.lopez@grafana.com>
Signed-off-by: Leandro López (inkel) <leandro.lopez@grafana.com>
Signed-off-by: Leandro López (inkel) <leandro.lopez@grafana.com>
Signed-off-by: Leandro López (inkel) <leandro.lopez@grafana.com>
Signed-off-by: Leandro López (inkel) <leandro.lopez@grafana.com>
Signed-off-by: Leandro López (inkel) <leandro.lopez@grafana.com>
Signed-off-by: Leandro López (inkel) <leandro.lopez@grafana.com>
Signed-off-by: Leandro López (inkel) <leandro.lopez@grafana.com>
Signed-off-by: Leandro López (inkel) <leandro.lopez@grafana.com>
@inkel inkel merged commit 49bffc3 into main Apr 11, 2022
@inkel inkel deleted the meta-type branch April 11, 2022 19:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant