recommender

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: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ReplicasRecommender name
	ReplicasRecommender string = "Replicas"

	// ResourceRecommender name
	ResourceRecommender string = "Resource"

	// HPARecommender name
	HPARecommender string = "HPA"

	// IdleNodeRecommender name
	IdleNodeRecommender string = "IdleNode"

	// VolumeRecommender name
	VolumeRecommender string = "Volume"

	// ServiceRecommender name
	ServiceRecommender string = "Service"
)

Variables

This section is empty.

Functions

func RegisterRecommenderProvider added in v0.11.0

func RegisterRecommenderProvider(name string, recommender Factory)

RegisterRecommenderProvider registers a recommender.Factory by name. This is expected to happen during app startup.

Types

type Factory added in v0.11.0

type Recommender

func GetRecommenderProvider added in v0.11.0

func GetRecommenderProvider(recommenderName string, recommender apis.Recommender, recommendationRule analysisv1alph1.RecommendationRule) (Recommender, error)

GetRecommenderProvider creates an instance of the named Recommender provider, or nil if the name is unknown. The error return is only used if the named provider was known but failed to initialize.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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