int64validator

package
v1.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 7, 2023 License: MPL-2.0 Imports: 7 Imported by: 0

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

func Not(valueValidator validator.Int64) validator.Int64

Not returns a validator which ensures that the validators passed as arguments are not met.

func RequireIfAttributeIsOneOf

func RequireIfAttributeIsOneOf(path path.Expression, exceptedValue []attr.Value) validator.Int64

RequireIfAttributeIsOneOf checks if the path.Path attribute contains one of the exceptedValue attr.Value.

func ZeroRemainder

func ZeroRemainder(divider int64) validator.Int64

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL