-
Notifications
You must be signed in to change notification settings - Fork 435
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
feat: Add Cost Calculation for DigitalOcean Volumes #1190
feat: Add Cost Calculation for DigitalOcean Volumes #1190
Conversation
Signed-off-by: bishal7679 <bishalhnj127@gmail.com>
@@ -13,6 +13,9 @@ import ( | |||
"github.com/tailwarden/komiser/providers" | |||
) | |||
|
|||
var hourlyPrice float64 | |||
const createdLayout = "2006-01-02T15:04:05Z" // 2020-07-21T18:37:44Z |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why the comment
@@ -13,6 +13,9 @@ import ( | |||
"github.com/tailwarden/komiser/providers" | |||
) | |||
|
|||
var hourlyPrice float64 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please shift this var definition inside func
Signed-off-by: bishal7679 <bishalhnj127@gmail.com>
62ddcb4
to
1714ad4
Compare
func Volumes(ctx context.Context, client providers.ProviderClient) ([]models.Resource, error) { | ||
var hourlyPrice float64 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: I meant a little closer to it's usage 😆
Signed-off-by: bishal7679 <bishalhnj127@gmail.com>
edd7a8a
to
674789e
Compare
Co-authored-by: Azanul Haque <42029519+Azanul@users.noreply.github.com>
Problem #1048
Currently, cost calculation for DigitalOcean volumes is not implemented!
Solution
This PR is fixing tiny issue by adding cost calculation support for volumes of digitalocean
Changes Made
Checklist