float64validator

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2022 License: MPL-2.0 Imports: 5 Imported by: 13

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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