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 NewCmdRecommendList ¶
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
Click to show internal directories.
Click to hide internal directories.