strategygroup

package
v0.5.45 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

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

func StrategyPolicyOverrideForNode(strategyPolicyMap map[string]string, defaultPolicy string, conf *config.Configuration) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL