Documentation ¶
Index ¶
- func IsDate() schema.SchemaValidateDiagFunc
- func IsDuration() schema.SchemaValidateDiagFunc
- func IsEmail() schema.SchemaValidateDiagFunc
- func IsEmailList() schema.SchemaValidateDiagFunc
- func IsStandaloneIPorCIDR() schema.SchemaValidateDiagFunc
- func IsUUID() schema.SchemaValidateDiagFunc
- func IsUUIDWithLocality() schema.SchemaValidateDiagFunc
- func IsUUIDorUUIDWithLocality() schema.SchemaValidateDiagFunc
- func ValidateCronExpression() schema.SchemaValidateDiagFunc
- func ValidateEnum[T EnumValues[T]]() schema.SchemaValidateDiagFunc
- func ValidateEnumIgnoreCase[T EnumValues[T]]() schema.SchemaValidateDiagFunc
- type EnumValues
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsDate ¶ added in v2.39.0
func IsDate() schema.SchemaValidateDiagFunc
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 IsEmail() schema.SchemaValidateDiagFunc
func IsEmailList ¶ added in v2.41.0
func IsEmailList() schema.SchemaValidateDiagFunc
func IsStandaloneIPorCIDR ¶
func IsStandaloneIPorCIDR() schema.SchemaValidateDiagFunc
func IsUUID ¶
func IsUUID() schema.SchemaValidateDiagFunc
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
Click to show internal directories.
Click to hide internal directories.