Documentation ¶
Index ¶
- func NewServiceRecommender(recommender apis.Recommender, ...) (recommender.Recommender, error)
- type ServiceRecommender
- func (s *ServiceRecommender) CheckDataProviders(ctx *framework.RecommendationContext) error
- func (s *ServiceRecommender) CollectData(ctx *framework.RecommendationContext) error
- func (s *ServiceRecommender) Filter(ctx *framework.RecommendationContext) error
- func (s *ServiceRecommender) Name() string
- func (s *ServiceRecommender) Observe(ctx *framework.RecommendationContext) error
- func (s *ServiceRecommender) Policy(ctx *framework.RecommendationContext) error
- func (s *ServiceRecommender) PostProcessing(ctx *framework.RecommendationContext) error
- func (s *ServiceRecommender) PreRecommend(ctx *framework.RecommendationContext) error
- func (s *ServiceRecommender) Recommend(ctx *framework.RecommendationContext) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewServiceRecommender ¶
func NewServiceRecommender(recommender apis.Recommender, recommendationRule analysisv1alph1.RecommendationRule) (recommender.Recommender, error)
NewServiceRecommender create a new service recommender.
Types ¶
type ServiceRecommender ¶
type ServiceRecommender struct { base.BaseRecommender // contains filtered or unexported fields }
func (*ServiceRecommender) CheckDataProviders ¶
func (s *ServiceRecommender) CheckDataProviders(ctx *framework.RecommendationContext) error
CheckDataProviders in PrePrepare phase, will create data source provider via your recommendation config.
func (*ServiceRecommender) CollectData ¶
func (s *ServiceRecommender) CollectData(ctx *framework.RecommendationContext) error
func (*ServiceRecommender) Filter ¶
func (s *ServiceRecommender) Filter(ctx *framework.RecommendationContext) error
Filter out k8s resources that are not supported by the recommender.
func (*ServiceRecommender) Name ¶
func (s *ServiceRecommender) Name() string
func (*ServiceRecommender) Observe ¶
func (s *ServiceRecommender) Observe(ctx *framework.RecommendationContext) error
Observe enhance the observability.
func (*ServiceRecommender) Policy ¶
func (s *ServiceRecommender) Policy(ctx *framework.RecommendationContext) error
Policy add some logic for result of recommend phase.
func (*ServiceRecommender) PostProcessing ¶
func (s *ServiceRecommender) PostProcessing(ctx *framework.RecommendationContext) error
func (*ServiceRecommender) PreRecommend ¶
func (s *ServiceRecommender) PreRecommend(ctx *framework.RecommendationContext) error
func (*ServiceRecommender) Recommend ¶
func (s *ServiceRecommender) Recommend(ctx *framework.RecommendationContext) error
Click to show internal directories.
Click to hide internal directories.