grafana / unused

CLI tool, Prometheus exporter, and Go module to list your unused disks in all cloud providers
Apache License 2.0
52 stars 1 forks source link

Add unused.Meta type to unused.Disk and unused.Provider #1

Closed inkel closed 2 years ago

inkel commented 2 years ago

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.