apis

package
v0.10.1 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Recommender

type Recommender struct {
	// ResourceSelector indicates which resources(e.g. a set of Deployments) are accepted for plugin.
	// Override the accepted resources from recommender's interface
	AcceptedResourceSelectors []analysisapi.ResourceSelector `json:"acceptedResources"`
	// Name should be existed in all predefined recommenders
	Name string `json:"name"`
	// Override Recommender configs
	// +optional
	Config map[string]string `json:"config,omitempty"`
}

type RecommenderConfiguration

type RecommenderConfiguration struct {
	metav1.TypeMeta `json:",inline"`

	// Recommender list
	Recommenders []Recommender `json:"recommenders"`

	// Recommender Plugin list
	RecommenderPlugins []RecommenderPlugin `json:"recommenderPlugins"`
}

type RecommenderPlugin

type RecommenderPlugin struct {
	// Name is the name for this plugin
	Name string `json:"name"`
	// Priority control the sequence when execute plugins
	Priority int32 `json:"priority,omitempty"`
	// ServerConfig
	ServerConfig ServerConfig `json:"serverConfig,omitempty"`
	// Override Recommender configs
	// +optional
	Config map[string]string `json:"config,omitempty"`
}

type ServerConfig

type ServerConfig struct {
	UrlPrefix string `json:"urlPrefix,omitempty"`
}

Jump to

Keyboard shortcuts

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