boolvalidator

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: MPL-2.0 Imports: 9 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 ConflictsIfMatchesPathValue added in v0.21.0

func ConflictsIfMatchesPathValue(targetValue basetypes.StringValue, expressions ...path.Expression) validator.Bool

func MustBeFalseIfPathSetToValue added in v0.15.0

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

func MustBeTrueIfPathSetToValue added in v0.15.0

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

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.

func MustNotBeFalseIfPathSetToValue added in v0.16.0

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

func MustNotBeTrueIfPathSetToValue added in v0.16.0

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

func MustNotBeValueIfPathSetToValue added in v0.16.0

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

MustNotBeValueIfPathSetToValue checks that the boolean is not set to the specified 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