Documentation
¶
Index ¶
- func AtLeastOneOfMustBeTrue(attributeDefault, expressionDefaults basetypes.BoolValue, ...) 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
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 MustBeFalseIfPathSetToValue ¶ added in v0.15.0
func MustBeFalseIfPathSetToValue(pathAttributeValue basetypes.StringValue, expression path.Expression) validator.Bool
MustBeTrueIfPathSetToValue checks that the boolean is set to the required value if a string value is present in the provided path.Expression.
func MustBeTrueIfPathSetToValue ¶ added in v0.15.0
func MustBeTrueIfPathSetToValue(pathAttributeValue basetypes.StringValue, expression path.Expression) validator.Bool
MustBeTrueIfPathSetToValue checks that the boolean is set to the required value if a string value is present in the provided path.Expression.
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.
Types ¶
This section is empty.