recommend

package
v0.5.0-tke.1 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2022 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

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)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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