Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttributeIsDivisibleByAnInteger ¶
func AttributeIsDivisibleByAnInteger(path path.Expression) validator.Int64
AttributeIsDivisibleByAnInteger returns a validator that ensures the configured attribute is divisible by an integer.
Null (unconfigured) and unknown (known after apply) values are skipped.
func Not ¶
Not returns a validator which ensures that the validators passed as arguments are not met.
func RequireIfAttributeIsOneOf ¶
RequireIfAttributeIsOneOf checks if the path.Path attribute contains one of the exceptedValue attr.Value.
func ZeroRemainder ¶
ZeroRemainder returns a validator that checks if the configured attribute is divisible by a specified integer X, and has zero remainder. If the attribute is not divisible by X or has a non-zero remainder, the validation will fail.
Null (unconfigured) and unknown (known after apply) values are skipped.
Types ¶
This section is empty.