2
0

network.go 804 B

123456789101112131415161718192021
  1. package models
  2. // TODO: used for dynamic cloud provider price fetching.
  3. // determine what identifies a load balancer in the json returned from the cloud provider pricing API call
  4. // type LBKey interface {
  5. // }
  6. // Network is the interface by which the provider and cost model communicate network egress prices.
  7. // The provider will best-effort try to fill out this struct.
  8. type Network struct {
  9. ZoneNetworkEgressCost float64
  10. RegionNetworkEgressCost float64
  11. InternetNetworkEgressCost float64
  12. }
  13. // LoadBalancer is the interface by which the provider and cost model communicate LoadBalancer prices.
  14. // The provider will best-effort try to fill out this struct.
  15. type LoadBalancer struct {
  16. IngressIPAddresses []string `json:"IngressIPAddresses"`
  17. Cost float64 `json:"hourlyCost"`
  18. }