grafana / unused

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

Refactor providers creation functions #30

Closed inkel closed 1 year ago

inkel commented 1 year ago

Previously all the providers NewProvider functions were doing more than needed by managing creating the required CSP service to access their APIs. This PR changes that to make the providers in the library package to accept the required services and nothing else. Creation of these services is a concern of the library users, not the library itself.