Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PluginID = plugins.PluginID{ Name: pluginName, PluginType: sdk.PluginTypeStrategy, } PluginConfig = &plugins.InternalPluginConfig{ Factory: func(l hclog.Logger) interface{} { return NewFixedValuePlugin(l) }, } )
Functions ¶
func NewFixedValuePlugin ¶
NewFixedValuePlugin returns the FixedValue implementation of the strategy.Strategy interface.
Types ¶
type StrategyPlugin ¶
type StrategyPlugin struct {
// contains filtered or unexported fields
}
StrategyPlugin is the FixedValue implementation of the strategy.Strategy interface.
func (*StrategyPlugin) PluginInfo ¶
func (s *StrategyPlugin) PluginInfo() (*base.PluginInfo, error)
PluginInfo satisfies the PluginInfo function on the base.Base interface.
func (*StrategyPlugin) Run ¶
func (s *StrategyPlugin) Run(eval *sdk.ScalingCheckEvaluation, count int64) (*sdk.ScalingCheckEvaluation, error)
Run satisfies the Run function on the strategy.Strategy interface.
Click to show internal directories.
Click to hide internal directories.