Documentation
¶
Overview ¶
Package int64validator provides validators for types.Int64 attributes.
Index ¶
- func AtLeast(min int64) tfsdk.AttributeValidator
- func AtLeastSumOf(attributesToSumPathExpressions ...path.Expression) tfsdk.AttributeValidator
- func AtMost(max int64) tfsdk.AttributeValidator
- func AtMostSumOf(attributesToSumPathExpressions ...path.Expression) tfsdk.AttributeValidator
- func Between(min, max int64) tfsdk.AttributeValidator
- func EqualToSumOf(attributesToSumPathExpressions ...path.Expression) tfsdk.AttributeValidator
- func NoneOf(unacceptableInts ...int64) tfsdk.AttributeValidator
- func OneOf(acceptableInts ...int64) tfsdk.AttributeValidator
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AtLeast ¶
func AtLeast(min int64) tfsdk.AttributeValidator
AtLeast returns an AttributeValidator which ensures that any configured attribute value:
- Is a number, which can be represented by a 64-bit integer.
- Is exclusively greater than the given minimum.
Null (unconfigured) and unknown (known after apply) values are skipped.
func AtLeastSumOf ¶ added in v0.4.0
func AtLeastSumOf(attributesToSumPathExpressions ...path.Expression) tfsdk.AttributeValidator
AtLeastSumOf returns an AttributeValidator which ensures that any configured attribute value:
- Is a number, which can be represented by a 64-bit integer.
- Is at least the sum of the attributes retrieved via the given path expression(s).
Null (unconfigured) and unknown (known after apply) values are skipped.
func AtMost ¶
func AtMost(max int64) tfsdk.AttributeValidator
AtMost returns an AttributeValidator which ensures that any configured attribute value:
- Is a number, which can be represented by a 64-bit integer.
- Is exclusively less than the given maximum.
Null (unconfigured) and unknown (known after apply) values are skipped.
func AtMostSumOf ¶ added in v0.4.0
func AtMostSumOf(attributesToSumPathExpressions ...path.Expression) tfsdk.AttributeValidator
AtMostSumOf returns an AttributeValidator which ensures that any configured attribute value:
- Is a number, which can be represented by a 64-bit integer.
- Is at most the sum of the given attributes retrieved via the given path expression(s).
Null (unconfigured) and unknown (known after apply) values are skipped.
func Between ¶
func Between(min, max int64) tfsdk.AttributeValidator
Between returns an AttributeValidator which ensures that any configured attribute value:
- Is a number, which can be represented by a 64-bit integer.
- Is exclusively greater than the given minimum and less than the given maximum.
Null (unconfigured) and unknown (known after apply) values are skipped.
func EqualToSumOf ¶ added in v0.4.0
func EqualToSumOf(attributesToSumPathExpressions ...path.Expression) tfsdk.AttributeValidator
EqualToSumOf returns an AttributeValidator which ensures that any configured attribute value:
- Is a number, which can be represented by a 64-bit integer.
- Is equal to the sum of the given attributes retrieved via the given path expression(s).
Null (unconfigured) and unknown (known after apply) values are skipped.
func NoneOf ¶ added in v0.3.0
func NoneOf(unacceptableInts ...int64) tfsdk.AttributeValidator
NoneOf checks that the int64 held in the attribute is none of the given `unacceptableInts`.
func OneOf ¶ added in v0.3.0
func OneOf(acceptableInts ...int64) tfsdk.AttributeValidator
OneOf checks that the int64 held in the attribute is one of the given `acceptableInts`.
Types ¶
This section is empty.