Documentation ¶
Index ¶
- func AutoPrefixAndValidateSplit(paramName string, value *string, currentAppName string, ...) error
- func ExperimentSuffix(paramName string, value *string) error
- func FeatureGate(paramName string, value *string) error
- func FeatureGateSuffix(paramName string, value *string) error
- func NonPrefixedExperiment(paramName string, value *string) error
- func NonPrefixedFeatureGate(paramName string, value *string) error
- func NonPrefixedSplit(paramName string, value *string) error
- func OptionalAppVersion(paramName string, value *string) error
- func OptionalSnakeCaseParam(paramName string, value *string) error
- func Presence(paramName string, value *string) error
- func SnakeCaseParam(paramName string, value *string) error
- func Split(paramName string, value *string) error
- func SplitExistsInSchema(paramName string, value *string, schema *serializers.Schema) error
- func VariantExistsInSchema(paramName string, variant *string, split string, schema *serializers.Schema) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoPrefixAndValidateSplit ¶
func AutoPrefixAndValidateSplit(paramName string, value *string, currentAppName string, schema *serializers.Schema, noPrefix, force bool) error
AutoPrefixAndValidateSplit automatically prefixes a split with app name according to flags and optionally validates it for presence in the schema
func ExperimentSuffix ¶
ExperimentSuffix validates that an experiment name param ends in _experiment
func FeatureGate ¶
FeatureGate validates that a feature_gate name param is valid with no opinion on app prefix
func FeatureGateSuffix ¶
FeatureGateSuffix validates that an experiment name param ends in _enabled
func NonPrefixedExperiment ¶
NonPrefixedExperiment validates that an experiment name param is valid with no app prefix
func NonPrefixedFeatureGate ¶
NonPrefixedFeatureGate validates that a feature_gate name param is valid
func NonPrefixedSplit ¶
NonPrefixedSplit validates that a split name param is valid with no app prefix
func OptionalAppVersion ¶
OptionalAppVersion validates that app version, if non-null, matches required format
func OptionalSnakeCaseParam ¶
OptionalSnakeCaseParam validates that a param is snake case alphanumeric with potential dots if present
func SnakeCaseParam ¶
SnakeCaseParam validates that a param is snake case alphanumeric
func SplitExistsInSchema ¶
func SplitExistsInSchema(paramName string, value *string, schema *serializers.Schema) error
SplitExistsInSchema validates that a split exists in the schema
func VariantExistsInSchema ¶ added in v0.9.5
func VariantExistsInSchema(paramName string, variant *string, split string, schema *serializers.Schema) error
VariantExistsInSchema validates that a variant exists for a split in the schema
Types ¶
This section is empty.