Documentation
¶
Index ¶
- func ConflictsIfMatchesPathValue(targetValue basetypes.StringValue, expressions ...path.Expression) validator.Set
- func IsRequiredIfMatchesPathBoolValue(targetValue basetypes.BoolValue, expressions ...path.Expression) validator.Set
- func IsRequiredIfMatchesPathValue(targetValue basetypes.StringValue, expressions ...path.Expression) validator.Set
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConflictsIfMatchesPathValue ¶ added in v0.16.0
func ConflictsIfMatchesPathValue(targetValue basetypes.StringValue, expressions ...path.Expression) validator.Set
func IsRequiredIfMatchesPathBoolValue ¶ added in v1.15.0
func IsRequiredIfMatchesPathBoolValue(targetValue basetypes.BoolValue, expressions ...path.Expression) validator.Set
IsRequiredIfMatchesPathBoolValue validates if the provided boolean value equals the value at the provided path expression(s). If matched, the current argument is required.
If a list of expressions is provided, all expressions are checked until a match is found, or the list of expressions is exhausted.
func IsRequiredIfMatchesPathValue ¶
func IsRequiredIfMatchesPathValue(targetValue basetypes.StringValue, expressions ...path.Expression) validator.Set
IsRequiredIfMatchesPathValue validates if the provided string value equals the value at the provided path expression(s). If matched, the current arguemnt is required.
If a list of expressions is provided, all expressions are checked until a match is found, or the list of expressions is exhausted.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.