Documentation
¶
Overview ¶
Package float64validator provides validators for types.Float64 attributes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AtLeast ¶
func AtLeast(min float64) tfsdk.AttributeValidator
AtLeast returns an AttributeValidator which ensures that any configured attribute value:
- Is a number, which can be represented by a 64-bit floating point.
- Is exclusively greater than the given minimum.
Null (unconfigured) and unknown (known after apply) values are skipped.
func AtMost ¶
func AtMost(max float64) tfsdk.AttributeValidator
AtMost returns an AttributeValidator which ensures that any configured attribute value:
- Is a number, which can be represented by a 64-bit floating point.
- Is exclusively less than the given maximum.
Null (unconfigured) and unknown (known after apply) values are skipped.
func Between ¶
func Between(min, max float64) tfsdk.AttributeValidator
Between returns an AttributeValidator which ensures that any configured attribute value:
- Is a number, which can be represented by a 64-bit floating point.
- Is exclusively greater than the given minimum and less than the given maximum.
Null (unconfigured) and unknown (known after apply) values are skipped.
func NoneOf ¶ added in v0.3.0
func NoneOf(unacceptableFloats ...float64) tfsdk.AttributeValidator
NoneOf checks that the float64 held in the attribute is none of the given `unacceptableFloats`.
func OneOf ¶ added in v0.3.0
func OneOf(acceptableFloats ...float64) tfsdk.AttributeValidator
OneOf checks that the float64 held in the attribute is one of the given `acceptableFloats`.
Types ¶
This section is empty.