primitivevalidator

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NoneOf

func NoneOf(unacceptableValues ...attr.Value) tfsdk.AttributeValidator

NoneOf checks that the value held in the attribute is none of the given `unacceptableValues`.

This validator can be used only against primitives like `types.String`, `types.Number`, `types.Int64`, `types.Float64` and `types.Bool`.

func OneOf

func OneOf(acceptableValues ...attr.Value) tfsdk.AttributeValidator

OneOf checks that the value held in the attribute is one of the given `acceptableValues`.

This validator can be used only against primitives like `types.String`, `types.Number`, `types.Int64`, `types.Float64` and `types.Bool`.

Types

This section is empty.

Jump to

Keyboard shortcuts

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