terraform-plugin-framework-validators

module
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: MPL-2.0

README

PkgGoDev

Terraform Plugin Framework Validators

terraform-plugin-framework-validators is a Go module containing common use case validators for terraform-plugin-framework types. It aims to provide generic type validator functionality that should be applicable to the broader framework-based provider ecosystem.

This Go module is not intended to define all possible validations. In particular, many validators that relate to specific string formats, encodings, and other specifics should instead be implemented separately in custom attribute types (e.g. a type implementing the attr.TypeWithValidators interface). Many of these custom types can be discovered by a conventional repository naming prefix of terraform-plugin-framework-. HashiCorp-supported custom types available for specific use cases include but are not limited to:

Terraform Plugin Framework Compatibility

This Go module is typically kept up to date with the latest terraform-plugin-framework releases to ensure all validator functionality is available.

Go Compatibility

This Go module follows terraform-plugin-framework Go compatibility.

Currently that means Go 1.22 must be used when developing and testing code.

Contributing

See .github/CONTRIBUTING.md

License

Mozilla Public License v2.0

Directories

Path Synopsis
Package boolvalidator provides validators for types.Bool attributes or function parameters.
Package boolvalidator provides validators for types.Bool attributes or function parameters.
Package datasourcevalidator provides validators to express relationships between multiple attributes of a data source.
Package datasourcevalidator provides validators to express relationships between multiple attributes of a data source.
Package float32validator provides validators for types.Float32 attributes or function parameters.
Package float32validator provides validators for types.Float32 attributes or function parameters.
Package float64validator provides validators for types.Float64 attributes or function parameters.
Package float64validator provides validators for types.Float64 attributes or function parameters.
helpers
validatordiag
Package validatordiag provides diagnostics helpers for validator implementations.
Package validatordiag provides diagnostics helpers for validator implementations.
validatorfuncerr
Package validatorfuncerr provides error helpers for provider-defined function validators.
Package validatorfuncerr provides error helpers for provider-defined function validators.
Package int32validator provides validators for types.Int32 attributes or function parameters.
Package int32validator provides validators for types.Int32 attributes or function parameters.
Package int64validator provides validators for types.Int64 attributes or function parameters.
Package int64validator provides validators for types.Int64 attributes or function parameters.
internal
configvalidator
Package configvalidator provides the generic configuration validator implementations for the exported datasourcevalidator, providervalidator, and resourcevalidator packages.
Package configvalidator provides the generic configuration validator implementations for the exported datasourcevalidator, providervalidator, and resourcevalidator packages.
schemavalidator
Package schemavalidator provides validators to express relationships between multiple attributes within the schema of a resource, data source, or provider.
Package schemavalidator provides validators to express relationships between multiple attributes within the schema of a resource, data source, or provider.
Package listvalidator provides validators for types.List attributes and function parameters.
Package listvalidator provides validators for types.List attributes and function parameters.
Package mapvalidator provides validators for types.Map attributes and function parameters.
Package mapvalidator provides validators for types.Map attributes and function parameters.
Package numbervalidator provides validators for types.Number attributes or function parameters.
Package numbervalidator provides validators for types.Number attributes or function parameters.
Package objectvalidator provides validators for types.Object attributes.
Package objectvalidator provides validators for types.Object attributes.
Package providervalidator provides validators to express relationships between multiple attributes of a provider.
Package providervalidator provides validators to express relationships between multiple attributes of a provider.
Package resourcevalidator provides validators to express relationships between multiple attributes of a resource.
Package resourcevalidator provides validators to express relationships between multiple attributes of a resource.
Package setvalidator provides validators for types.Set attributes and function parameters.
Package setvalidator provides validators for types.Set attributes and function parameters.
Package stringvalidator provides validators for types.String attributes and function parameters.
Package stringvalidator provides validators for types.String attributes and function parameters.

Jump to

Keyboard shortcuts

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