verify

package
v2.49.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2025 License: MPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsDate added in v2.39.0

IsDate will validate that field is a valid ISO 8601 It is the same as RFC3339

func IsDuration added in v2.39.0

func IsDuration() schema.SchemaValidateDiagFunc

func IsEmail

func IsEmailList added in v2.41.0

func IsEmailList() schema.SchemaValidateDiagFunc

func IsStandaloneIPorCIDR

func IsStandaloneIPorCIDR() schema.SchemaValidateDiagFunc

func IsUUID

IsUUID validates the schema following the canonical UUID format "6ba7b810-9dad-11d1-80b4-00c04fd430c8".

func IsUUIDWithLocality

func IsUUIDWithLocality() schema.SchemaValidateDiagFunc

func IsUUIDorUUIDWithLocality

func IsUUIDorUUIDWithLocality() schema.SchemaValidateDiagFunc

IsUUIDorUUIDWithLocality validates the schema is a UUID or the combination of a locality and a UUID e.g. "6ba7b810-9dad-11d1-80b4-00c04fd430c8" or "fr-par-1/6ba7b810-9dad-11d1-80b4-00c04fd430c8".

func ValidateCronExpression added in v2.39.0

func ValidateCronExpression() schema.SchemaValidateDiagFunc

func ValidateEnum added in v2.41.2

func ValidateEnum[T EnumValues[T]]() schema.SchemaValidateDiagFunc

ValidateEnum creates a schema validation function for the provided enum type

func ValidateEnumIgnoreCase added in v2.41.2

func ValidateEnumIgnoreCase[T EnumValues[T]]() schema.SchemaValidateDiagFunc

ValidateEnumIgnoreCase creates a schema validation function for the provided enum type with case-insensitive validation

Types

type EnumValues added in v2.41.2

type EnumValues[T ~string] interface {
	~string
	Values() []T
}

Jump to

Keyboard shortcuts

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