Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdvisorOptions ¶
type AdvisorOptions struct { *MemoryGuardOptions *CPUProvisionOptions }
func NewAdvisorOptions ¶
func NewAdvisorOptions() *AdvisorOptions
func (*AdvisorOptions) AddFlags ¶
func (o *AdvisorOptions) AddFlags(fss *cliflag.NamedFlagSets)
func (*AdvisorOptions) ApplyTo ¶
func (o *AdvisorOptions) ApplyTo(c *advisor.AdvisorConfiguration) error
type CPUProvisionOptions ¶ added in v0.5.5
type CPUProvisionOptions struct { RegionIndicatorTargetOptions map[string]string ControlKnobConstrains *ControlKnobConstrains }
func NewCPUProvisionOptions ¶ added in v0.5.5
func NewCPUProvisionOptions() *CPUProvisionOptions
func (*CPUProvisionOptions) AddFlags ¶ added in v0.5.5
func (o *CPUProvisionOptions) AddFlags(fss *cliflag.NamedFlagSets)
AddFlags adds flags to the specified FlagSet.
func (*CPUProvisionOptions) ApplyTo ¶ added in v0.5.5
func (o *CPUProvisionOptions) ApplyTo(c *advisor.CPUProvisionConfiguration) error
ApplyTo fills up config with options
type ControlKnobConstrains ¶ added in v0.5.5
type ControlKnobConstrains struct { RestrictControlKnobMaxUpperGap map[string]string RestrictControlKnobMaxLowerGap map[string]string RestrictControlKnobMaxUpperGapRatio map[string]string RestrictControlKnobMaxLowerGapRatio map[string]string }
func NewControlKnobConstrains ¶ added in v0.5.5
func NewControlKnobConstrains() *ControlKnobConstrains
func (*ControlKnobConstrains) AddFlags ¶ added in v0.5.5
func (o *ControlKnobConstrains) AddFlags(fs *pflag.FlagSet)
func (*ControlKnobConstrains) ApplyTo ¶ added in v0.5.5
func (o *ControlKnobConstrains) ApplyTo(c map[v1alpha1.ControlKnobName]v1alpha1.RestrictConstraints) error
type MemoryGuardOptions ¶
type MemoryGuardOptions struct {
Enable bool
}
func NewMemoryGuardOptions ¶
func NewMemoryGuardOptions() *MemoryGuardOptions
func (*MemoryGuardOptions) AddFlags ¶
func (o *MemoryGuardOptions) AddFlags(fss *cliflag.NamedFlagSets)
AddFlags parses the flags to MemoryGuardOptions
func (*MemoryGuardOptions) ApplyTo ¶
func (o *MemoryGuardOptions) ApplyTo(c *advisor.MemoryGuardConfiguration) error
Click to show internal directories.
Click to hide internal directories.