Documentation ¶
Index ¶
- func Finish(cmd *cobra.Command, appAPI applications.API, app applications.Application, ...) error
- func LikelyInvalid(resourceName string, val *api.NumberOrString) error
- func QuantityLess(a, b *api.NumberOrString) bool
- type ContainerResourcesOptions
- type DeployConfigurationOptions
- type Error
- type ErrorList
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Finish ¶ added in v0.1.2
func Finish(cmd *cobra.Command, appAPI applications.API, app applications.Application, recs applications.RecommendationList, patch *applications.RecommendationList) error
Finish attempts to validate the requested changes.
func LikelyInvalid ¶ added in v0.1.7
func LikelyInvalid(resourceName string, val *api.NumberOrString) error
LikelyInvalid returns true if the value is likely to be invalid.
func QuantityLess ¶ added in v0.1.7
func QuantityLess(a, b *api.NumberOrString) bool
QuantityLess returns true if 'a' is strictly less than 'b'.
Types ¶
type ContainerResourcesOptions ¶
type ContainerResourcesOptions struct { Selector string Interval time.Duration TargetUtilization map[string]string Tolerance map[string]string BoundsLimitsMax map[string]string BoundsLimitsMin map[string]string BoundsRequestsMax map[string]string BoundsRequestsMin map[string]string BoundsTargetUtilizationMax map[string]int64 BoundsTargetUtilizationMin map[string]int64 }
ContainerResourcesOptions contains options for building the recommender configuration for optimizing container resources.
func (*ContainerResourcesOptions) AddFlags ¶
func (opts *ContainerResourcesOptions) AddFlags(cmd *cobra.Command)
func (*ContainerResourcesOptions) Apply ¶
func (opts *ContainerResourcesOptions) Apply(configuration *[]applications.Configuration)
type DeployConfigurationOptions ¶
type DeployConfigurationOptions struct { Mode string Interval time.Duration MaxRecommendationRatio map[string]string Clusters []string }
func (*DeployConfigurationOptions) AddFlags ¶
func (opts *DeployConfigurationOptions) AddFlags(cmd *cobra.Command)
func (*DeployConfigurationOptions) Apply ¶
func (opts *DeployConfigurationOptions) Apply(deployConfiguration **applications.DeployConfiguration)
Click to show internal directories.
Click to hide internal directories.