| 123456789101112131415161718192021 |
- package models
- // TODO: used for dynamic cloud provider price fetching.
- // determine what identifies a load balancer in the json returned from the cloud provider pricing API call
- // type LBKey interface {
- // }
- // Network is the interface by which the provider and cost model communicate network egress prices.
- // The provider will best-effort try to fill out this struct.
- type Network struct {
- ZoneNetworkEgressCost float64
- RegionNetworkEgressCost float64
- InternetNetworkEgressCost float64
- }
- // LoadBalancer is the interface by which the provider and cost model communicate LoadBalancer prices.
- // The provider will best-effort try to fill out this struct.
- type LoadBalancer struct {
- IngressIPAddresses []string `json:"IngressIPAddresses"`
- Cost float64 `json:"hourlyCost"`
- }
|