service

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2023 License: Apache-2.0, BSD-2-Clause Imports: 16 Imported by: 0

Documentation

Index

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 (*ServiceRecommender) Filter

Filter out k8s resources that are not supported by the recommender.

func (*ServiceRecommender) Name

func (s *ServiceRecommender) Name() string

func (*ServiceRecommender) Observe

Observe enhance the observability.

func (*ServiceRecommender) Policy

Policy add some logic for result of recommend phase.

func (*ServiceRecommender) PostProcessing

func (s *ServiceRecommender) PostProcessing(ctx *framework.RecommendationContext) error

func (*ServiceRecommender) PreRecommend

func (*ServiceRecommender) Recommend

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL