float64validator

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2026 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NullIfAttributeMatches

func NullIfAttributeMatches(path path.Expression, predicate func(ctx context.Context, value attr.Value) (bool, diag.Diagnostics)) validator.Float64

NullIfAttributeMatches checks if the path.Path attribute matches the predicate condition.

func NullIfAttributeMatchesWithDescription

func NullIfAttributeMatchesWithDescription(
	path path.Expression,
	predicate func(ctx context.Context, value attr.Value) (bool, diag.Diagnostics),
	description NullIfAttributeMatchesDescription,
) validator.Float64

NullIfAttributeMatchesWithDescription checks if the path.Path attribute matches the predicate condition and allows overriding the validator description.

Types

type NullIfAttributeMatchesDescription

type NullIfAttributeMatchesDescription struct {
	Description         string
	MarkdownDescription string
}

NullIfAttributeMatchesDescription is a struct to hold the description and markdown description for NullIfAttributeMatchesWithDescription.

Jump to

Keyboard shortcuts

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