boolvalidator

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AtLeastOneOfMustBeTrue

func AtLeastOneOfMustBeTrue(attributeDefault, expressionDefaults basetypes.BoolValue, expressions ...path.Expression) validator.Bool

AtLeastOneOfMustBeTrue checks that a set of path.Expression, including the attribute the validator is applied to, must have a true value.

Relative path.Expression will be resolved using the attribute being validated.

func MustBeFalseIfPathSetToValue added in v0.15.0

func MustBeFalseIfPathSetToValue(pathAttributeValue basetypes.StringValue, expression path.Expression) validator.Bool

MustBeTrueIfPathSetToValue checks that the boolean is set to the required value if a string value is present in the provided path.Expression.

func MustBeTrueIfPathSetToValue added in v0.15.0

func MustBeTrueIfPathSetToValue(pathAttributeValue basetypes.StringValue, expression path.Expression) validator.Bool

MustBeTrueIfPathSetToValue checks that the boolean is set to the required value if a string value is present in the provided path.Expression.

func MustBeValueIfPathSetToValue added in v0.15.0

func MustBeValueIfPathSetToValue(boolValue basetypes.BoolValue, pathAttributeValue basetypes.StringValue, expression path.Expression) validator.Bool

MustBeValueIfPathSetToValue checks that the boolean is set to the required value if a string value is present in the provided path.Expression.

Types

This section is empty.

Jump to

Keyboard shortcuts

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