recommend

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RecommendationRuleNameLabel          = "analysis.crane.io/recommendation-rule-name"
	RecommendationRuleUidLabel           = "analysis.crane.io/recommendation-rule-uid"
	RecommendationRuleRecommenderLabel   = "analysis.crane.io/recommendation-rule-recommender"
	RecommendationRuleTargetKindLabel    = "analysis.crane.io/recommendation-target-kind"
	RecommendationRuleTargetVersionLabel = "analysis.crane.io/recommendation-target-version"
	RecommendationRuleTargetNameLabel    = "analysis.crane.io/recommendation-target-name"
)

Variables

This section is empty.

Functions

func NewCmdRecommendAdopt

func NewCmdRecommendAdopt() *cobra.Command

func NewCmdRecommendList

func NewCmdRecommendList() *cobra.Command

func RenderTable

func RenderTable(recommendations []analysisv1alpha1.Recommendation, out io.Writer)

Types

type RecommendAdoptOptions

type RecommendAdoptOptions struct {
	CommonOptions *options.CommonOptions

	DryRun bool
	Name   string
}

func NewRecommendAdoptOptions

func NewRecommendAdoptOptions() *RecommendAdoptOptions

func (*RecommendAdoptOptions) AddFlags

func (o *RecommendAdoptOptions) AddFlags(cmd *cobra.Command)

func (*RecommendAdoptOptions) Complete

func (o *RecommendAdoptOptions) Complete(cmd *cobra.Command, args []string) error

func (*RecommendAdoptOptions) Run

func (o *RecommendAdoptOptions) Run() error

func (*RecommendAdoptOptions) Validate

func (o *RecommendAdoptOptions) Validate() error

type RecommendListOptions

type RecommendListOptions struct {
	CommonOptions *options.CommonOptions

	Name       string
	Type       string
	TargetKind string
	TargetName string
	RuleName   string
}

func NewRecommendListOptions

func NewRecommendListOptions() *RecommendListOptions

func (*RecommendListOptions) AddFlags

func (o *RecommendListOptions) AddFlags(cmd *cobra.Command)

func (*RecommendListOptions) Complete

func (o *RecommendListOptions) Complete(cmd *cobra.Command, args []string) error

func (*RecommendListOptions) Run

func (o *RecommendListOptions) Run() error

func (*RecommendListOptions) Validate

func (o *RecommendListOptions) Validate() error

Jump to

Keyboard shortcuts

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