repository.go 373 B

12345678910111213141516
  1. package customcost
  2. import (
  3. "time"
  4. "github.com/opencost/opencost/core/pkg/model/pb"
  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) (*pb.CustomCostResponse, error)
  10. Keys() ([]string, error)
  11. Put(*pb.CustomCostResponse) error
  12. Expire(time.Time) error
  13. }