Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NullIfAttributeMatches ¶
func NullIfAttributeMatches(path path.Expression, predicate func(ctx context.Context, value attr.Value) (bool, diag.Diagnostics)) validator.Float64
NullIfAttributeMatches checks if the path.Path attribute matches the predicate condition.
func NullIfAttributeMatchesWithDescription ¶
func NullIfAttributeMatchesWithDescription( path path.Expression, predicate func(ctx context.Context, value attr.Value) (bool, diag.Diagnostics), description NullIfAttributeMatchesDescription, ) validator.Float64
NullIfAttributeMatchesWithDescription checks if the path.Path attribute matches the predicate condition and allows overriding the validator description.
Types ¶
type NullIfAttributeMatchesDescription ¶
NullIfAttributeMatchesDescription is a struct to hold the description and markdown description for NullIfAttributeMatchesWithDescription.
Click to show internal directories.
Click to hide internal directories.