listvalidator

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 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.List) validator.List

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.List

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.List

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.List

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.List

Types

This section is empty.

Jump to

Keyboard shortcuts

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