A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://pkg.go.dev/github.com/hashicorp/terraform-plugin-framework@v1.15.1/schema/validator below:

validator package - github.com/hashicorp/terraform-plugin-framework/schema/validator - Go Packages

Package validator contains common schema validator interfaces and implementations. These validators are used by concept specific packages such as datasource/schema, provider/schema, and resource/schema.

Each attr.Type has a corresponding {TYPE}Validator interface which implements concretely typed Validate{TYPE} methods, such as StringValidator and ValidateString. Custom attr.Type can also consider implementing native type validation via the attr/xattr.TypeWithValidate interface instead of schema validators.

The framework has to choose between validator developers handling a concrete framework value type, such as types.Bool, or the framework interface for custom value basetypes. such as basetypes.BoolValuable.

In the framework type model, the developer can immediately use the value. If the value was associated with a custom type and using the custom value type is desired, the developer must use the type's ValueFrom{TYPE} method.

In the custom type model, the developer must always convert to a concreate type before using the value unless checking for null or unknown. Since any custom type may be passed due to the schema, it is possible, if not likely, that unknown concrete types will be passed to the validator.

The framework chooses to pass the framework value type. This prevents the potential for unexpected runtime panics and simplifies development for easier use cases where the framework type is sufficient. More advanced developers can choose to implement native type validation for custom types or call the type's ValueFrom{TYPE} method to get the desired desired custom type in a validator.

Validators that are not type dependent need to implement all interfaces, but can use shared logic to reduce implementation code.

This section is empty.

This section is empty.

This section is empty.

Bool is a schema validator for types.Bool attributes.

BoolRequest is a request for types.Bool schema validation.

BoolResponse is a response to a BoolRequest.

Describer is the common documentation interface for extensible schema validation functionality.

Dynamic is a schema validator for types.Dynamic attributes.

DynamicRequest is a request for types.Dynamic schema validation.

DynamicResponse is a response to a DynamicRequest.

Float32 is a schema validator for types.Float32 attributes.

Float32Request is a request for types.Float32 schema validation.

Float32Response is a response to a Float32Request.

Float64 is a schema validator for types.Float64 attributes.

Float64Request is a request for types.Float64 schema validation.

Float64Response is a response to a Float64Request.

Int32 is a schema validator for types.Int32 attributes.

Int32Request is a request for types.Int32 schema validation.

Int32Response is a response to a Int32Request.

Int64 is a schema validator for types.Int64 attributes.

Int64Request is a request for types.Int64 schema validation.

Int64Response is a response to a Int64Request.

List is a schema validator for types.List attributes.

ListRequest is a request for types.List schema validation.

ListResponse is a response to a ListRequest.

Map is a schema validator for types.Map attributes.

MapRequest is a request for types.Map schema validation.

MapResponse is a response to a MapRequest.

Number is a schema validator for types.Number attributes.

NumberRequest is a request for types.Number schema validation.

NumberResponse is a response to a NumberRequest.

Object is a schema validator for types.Object attributes.

ObjectRequest is a request for types.Object schema validation.

ObjectResponse is a response to a ObjectRequest.

Set is a schema validator for types.Set attributes.

SetRequest is a request for types.Set schema validation.

SetResponse is a response to a SetRequest.

String is a schema validator for types.String attributes.

StringRequest is a request for types.String schema validation.

StringResponse is a response to a StringRequest.

type ValidateSchemaClientCapabilities struct {
	
	
	
	
	
	
	WriteOnlyAttributesAllowed bool
}

ValidateSchemaClientCapabilities allows Terraform to publish information regarding optionally supported protocol features for the schema validation RPCs, such as forward-compatible Terraform behavior changes.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4