objectvalidator

package
v1.12.0 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 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.Object) validator.Object

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

func NullIfAttributeIsOneOf

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

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

func NullIfAttributeIsSet

func NullIfAttributeIsSet(path path.Expression) validator.Object

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

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

func RequireIfAttributeIsSet

func RequireIfAttributeIsSet(path path.Expression) validator.Object

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