Documentation ¶
Index ¶
- func GetContext(kubeClient client.Client, restMapper meta.RESTMapper, ...) (*types.Context, error)
- func GetProperties(configSet *analysisv1alpha1.ConfigSet, dst analysisv1alpha1.Target, ...) map[string]string
- func LoadConfigSetFromFile(filePath string) (*analysisv1alpha1.ConfigSet, error)
- type Recommender
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetContext ¶
func GetContext(kubeClient client.Client, restMapper meta.RESTMapper, scaleClient scale.ScalesGetter, recommendation *analysisapi.Recommendation, predictorMgr predictormgr.Manager, dataSource providers.History, configSet *analysisapi.ConfigSet, analyticsConfig map[string]string) (*types.Context, error)
func GetProperties ¶
func GetProperties(configSet *analysisv1alpha1.ConfigSet, dst analysisv1alpha1.Target, analyticsConfig map[string]string) map[string]string
func LoadConfigSetFromFile ¶
func LoadConfigSetFromFile(filePath string) (*analysisv1alpha1.ConfigSet, error)
Types ¶
type Recommender ¶
type Recommender struct { // Context contains all contexts during the recommendation Context *types.Context // Inspectors is an array of Inspector that needed for this recommendation Inspectors []inspector.Inspector // Advisors is an array of Advisor that needed for this recommendation Advisors []advisor.Advisor }
Recommender take charge of the executor for recommendation
func NewRecommender ¶
func NewRecommender(kubeClient client.Client, restMapper meta.RESTMapper, scaleClient scale.ScalesGetter, recommendation *analysisapi.Recommendation, predictorMgr predictormgr.Manager, dataSource providers.History, configSet *analysisapi.ConfigSet, analyticsConfig map[string]string) (*Recommender, error)
func (*Recommender) Offer ¶
func (r *Recommender) Offer() (proposed *types.ProposedRecommendation, err error)
Click to show internal directories.
Click to hide internal directories.