2
0

repository.go 372 B

12345678910111213141516
  1. package cloudcost
  2. import (
  3. "time"
  4. "github.com/opencost/opencost/core/pkg/opencost"
  5. )
  6. // Repository is an interface for storing and retrieving CloudCost data
  7. type Repository interface {
  8. Has(time.Time, string) (bool, error)
  9. Get(time.Time, string) (*opencost.CloudCostSet, error)
  10. Keys() ([]string, error)
  11. Put(*opencost.CloudCostSet) error
  12. Expire(time.Time) error
  13. }