Documentation ¶
Index ¶
- func AtLeastOneOfMustBeTrue(attributeDefault, expressionDefaults basetypes.BoolValue, ...) validator.Bool
- func ConflictsIfMatchesPathValue(targetValue basetypes.StringValue, expressions ...path.Expression) validator.Bool
- func MustBeFalseIfPathSetToValue(pathAttributeValue basetypes.StringValue, expression path.Expression) validator.Bool
- func MustBeTrueIfPathSetToValue(pathAttributeValue basetypes.StringValue, expression path.Expression) validator.Bool
- func MustBeValueIfPathSetToValue(boolValue basetypes.BoolValue, pathAttributeValue basetypes.StringValue, ...) validator.Bool
- func MustNotBeFalseIfPathSetToValue(pathAttributeValue basetypes.StringValue, expression path.Expression) validator.Bool
- func MustNotBeTrueIfPathSetToValue(pathAttributeValue basetypes.StringValue, expression path.Expression) validator.Bool
- func MustNotBeValueIfPathSetToValue(boolValue basetypes.BoolValue, pathAttributeValue basetypes.StringValue, ...) validator.Bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AtLeastOneOfMustBeTrue ¶
func AtLeastOneOfMustBeTrue(attributeDefault, expressionDefaults basetypes.BoolValue, expressions ...path.Expression) validator.Bool
AtLeastOneOfMustBeTrue checks that a set of path.Expression, including the attribute the validator is applied to, must have a true value.
Relative path.Expression will be resolved using the attribute being validated.
func ConflictsIfMatchesPathValue ¶ added in v0.21.0
func ConflictsIfMatchesPathValue(targetValue basetypes.StringValue, expressions ...path.Expression) validator.Bool
func MustBeFalseIfPathSetToValue ¶ added in v0.15.0
func MustBeFalseIfPathSetToValue(pathAttributeValue basetypes.StringValue, expression path.Expression) validator.Bool
func MustBeTrueIfPathSetToValue ¶ added in v0.15.0
func MustBeTrueIfPathSetToValue(pathAttributeValue basetypes.StringValue, expression path.Expression) validator.Bool
func MustBeValueIfPathSetToValue ¶ added in v0.15.0
func MustBeValueIfPathSetToValue(boolValue basetypes.BoolValue, pathAttributeValue basetypes.StringValue, expression path.Expression) validator.Bool
MustBeValueIfPathSetToValue checks that the boolean is set to the required value if a string value is present in the provided path.Expression.
func MustNotBeFalseIfPathSetToValue ¶ added in v0.16.0
func MustNotBeFalseIfPathSetToValue(pathAttributeValue basetypes.StringValue, expression path.Expression) validator.Bool
func MustNotBeTrueIfPathSetToValue ¶ added in v0.16.0
func MustNotBeTrueIfPathSetToValue(pathAttributeValue basetypes.StringValue, expression path.Expression) validator.Bool
func MustNotBeValueIfPathSetToValue ¶ added in v0.16.0
func MustNotBeValueIfPathSetToValue(boolValue basetypes.BoolValue, pathAttributeValue basetypes.StringValue, expression path.Expression) validator.Bool
MustNotBeValueIfPathSetToValue checks that the boolean is not set to the specified value if a string value is present in the provided path.Expression.
Types ¶
This section is empty.
Source Files ¶
- bool_at_least_one_of_must_be_true.go
- bool_must_be_false_if_path_set_to_value.go
- bool_must_be_true_if_path_set_to_value.go
- bool_must_be_value_if_path_set_to_value.go
- bool_must_not_be_false_if_path_set_to_value.go
- bool_must_not_be_true_if_path_set_to_value.go
- bool_must_not_be_value_if_path_set_to_value.go
- conflicts_if_matches_path_value.go
Click to show internal directories.
Click to hide internal directories.