boolvalidator

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2023 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Not

func Not(valueValidator validator.Bool) validator.Bool

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

func NullIfAttributeIsOneOf added in v1.6.0

func NullIfAttributeIsOneOf(path path.Expression, exceptedValue []attr.Value) validator.Bool

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

func NullIfAttributeIsSet added in v1.8.0

func NullIfAttributeIsSet(path path.Expression) validator.Bool

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

func RequireIfAttributeIsOneOf

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

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

func RequireIfAttributeIsSet added in v1.8.0

func RequireIfAttributeIsSet(path path.Expression) validator.Bool

RequireIfAttributeIsSet checks if the path.Path attribute is set

Types

This section is empty.

Jump to

Keyboard shortcuts

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