volume

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewVolumeRecommender

func NewVolumeRecommender(recommender apis.Recommender, recommendationRule analysisv1alph1.RecommendationRule) (recommender.Recommender, error)

NewVolumeRecommender create a new Volumes recommender.

Types

type VolumeRecommender

type VolumeRecommender struct {
	base.BaseRecommender
}

func (*VolumeRecommender) CheckDataProviders

func (vr *VolumeRecommender) CheckDataProviders(ctx *framework.RecommendationContext) error

CheckDataProviders in PrePrepare phase, will create data source provider via your recommendation config.

func (*VolumeRecommender) CollectData

func (*VolumeRecommender) Filter

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

func (*VolumeRecommender) Name

func (vr *VolumeRecommender) Name() string

func (*VolumeRecommender) Observe

Observe enhance the observability.

func (*VolumeRecommender) Policy

Policy add some logic for result of recommend phase.

func (*VolumeRecommender) PostProcessing

func (vr *VolumeRecommender) PostProcessing(ctx *framework.RecommendationContext) error

func (*VolumeRecommender) PreRecommend

func (vr *VolumeRecommender) PreRecommend(ctx *framework.RecommendationContext) error

func (*VolumeRecommender) Recommend

Jump to

Keyboard shortcuts

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