Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( PluginID = plugins.PluginID{ Name: pluginName, PluginType: plugins.PluginTypeStrategy, } PluginConfig = &plugins.InternalPluginConfig{ Factory: func(l hclog.Logger) interface{} { return NewTargetValuePlugin(l) }, } )
Functions ¶
func NewTargetValuePlugin ¶
NewTargetValuePlugin returns the TargetValue implementation of the strategy.Strategy interface.
Types ¶
type StrategyPlugin ¶
type StrategyPlugin struct {
// contains filtered or unexported fields
}
StrategyPlugin is the TargetValue implementation of the strategy.Strategy interface.
func (*StrategyPlugin) PluginInfo ¶
func (s *StrategyPlugin) PluginInfo() (*base.PluginInfo, error)
PluginInfo satisfies the PluginInfo function on the base.Plugin 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.