func getObjectCost()

in internal/repo/pricing.go [79:90]


func getObjectCost(location Location, storageClass StorageClass, size int64) (float64, error) {
	costMap, ok := locationPricing[location]
	if !ok {
		return 0, errors.New("invalid location")
	}

	cost, err := getPrice(costMap, storageClass, size)
	if err != nil {
		return 0, err
	}
	return cost, nil
}