Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRecommenderCoster ¶
func NewRecommenderCoster() *recommender
func NewServerfulCoster ¶
func NewServerfulCoster() *serverful
func NewServerlessCoster ¶
func NewServerlessCoster() *serverless
Types ¶
type Cost ¶
type CosterContext ¶
type CosterContext struct { // time seconds TimeSpanSeconds int64 Discount *float64 PodsSpec map[string]spec.CloudPodSpec NodesSpec map[string]spec.CloudNodeSpec WorkloadsSpec map[string]map[types.NamespacedName]spec.CloudPodSpec WorkloadsRecSpec map[string]map[types.NamespacedName]*spec.WorkloadRecommendedData Pricer cloud.Pricer }
CosterContext used to compute cost given workload and node spec portrait, and time span, cloud pricer
type RecommendedCost ¶
func (*RecommendedCost) Add ¶
func (rc *RecommendedCost) Add(other *RecommendedCost)
Click to show internal directories.
Click to hide internal directories.