Documentation
¶
Index ¶
- func GetEnabledStrategiesForNode(conf *config.Configuration) ([]string, error)
- func GetSpecificStrategyParam(strategyName string, defaultEnable bool, conf *config.Configuration) (string, bool, error)
- func IsStrategyEnabledForNode(strategyName string, defaultValue bool, conf *config.Configuration) (bool, error)
- func StrategyPolicyOverrideForNode(strategyPolicyMap map[string]string, defaultPolicy string, ...) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEnabledStrategiesForNode ¶
func GetEnabledStrategiesForNode(conf *config.Configuration) ([]string, error)
GetEnabledStrategiesForNode returns a list of enabled strategies for the node. It takes the configuration as input. It returns a slice of strings containing the names of enabled strategies. An error is returned if the configuration is invalid.
func GetSpecificStrategyParam ¶ added in v0.5.24
func GetSpecificStrategyParam(strategyName string, defaultEnable bool, conf *config.Configuration) (string, bool, error)
GetSpecificStrategyParam returns the parameter value for a specific strategy and whether it's enabled. It takes the strategy name, a default enable status, and the configuration as input. It returns the strategy parameter string, a boolean indicating if the strategy is enabled (or defaultEnable if not found/group disabled), and an error if the configuration is invalid.
func IsStrategyEnabledForNode ¶
func IsStrategyEnabledForNode(strategyName string, defaultValue bool, conf *config.Configuration) (bool, error)
IsStrategyEnabledForNode checks if a specific strategy is enabled for the node. It takes the strategy name, a default value, and the configuration as input. It returns true if the strategy is enabled, otherwise it returns the default value. An error is returned if the configuration is invalid.
func StrategyPolicyOverrideForNode ¶ added in v0.5.32
Types ¶
This section is empty.