Movatterモバイル変換


[0]ホーム

URL:


fwfunction

package
v1.17.0Latest Latest
Warning

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

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

Details

Repository

github.com/hashicorp/terraform-plugin-framework

Links

Documentation

Overview

Package fwfunction contains shared interfaces and structures for implementing behaviorsin Terraform Provider function implementations.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

funcMissingParameterNameDiagadded inv1.9.0

func MissingParameterNameDiag(functionNamestring, position *int64)diag.Diagnostic

Types

typeParameterWithValidateImplementation

type ParameterWithValidateImplementation interface {// ValidateImplementation should contain the logic which validates// the function.Parameter implementation. Since this logic can prevent the provider// from being usable, it should be very targeted and defensive against// false positives.ValidateImplementation(context.Context,ValidateParameterImplementationRequest, *ValidateParameterImplementationResponse)}

ParameterWithValidateImplementation is an optional interface onfunction.Parameter which enables validation of the provider-defined implementationfor the function.Parameter. This logic runs during the GetProviderSchema RPC, or viaprovider-defined unit testing, to ensure the provider's definition is validbefore further usage could cause other unexpected errors or panics.

typeReturnWithValidateImplementation

type ReturnWithValidateImplementation interface {// ValidateImplementation should contain the logic which validates// the function.Return implementation. Since this logic can prevent the provider// from being usable, it should be very targeted and defensive against// false positives.ValidateImplementation(context.Context,ValidateReturnImplementationRequest, *ValidateReturnImplementationResponse)}

ReturnWithValidateImplementation is an optional interface onfunction.Return which enables validation of the provider-defined implementationfor the function.Return. This logic runs during the GetProviderSchema RPC, or viaprovider-defined unit testing, to ensure the provider's definition is validbefore further usage could cause other unexpected errors or panics.

typeValidateParameterImplementationRequest

type ValidateParameterImplementationRequest struct {// FunctionName is the name of the function being validated.FunctionNamestring// ParameterPosition is the position of the parameter in the function definition for reporting diagnostics.// A parameter without a position (i.e. `nil`) is the variadic parameter.ParameterPosition *int64}

ValidateParameterImplementationRequest contains the information availableduring a ValidateImplementation call to validate the function.Parameterdefinition. ValidateParameterImplementationResponse is the type used forresponses.

typeValidateParameterImplementationResponse

type ValidateParameterImplementationResponse struct {// Diagnostics report errors or warnings related to validating the// definition of the function.Parameter. An empty slice indicates success, with no// warnings or errors generated.Diagnosticsdiag.Diagnostics}

ValidateParameterImplementationResponse contains the returned data from aValidateImplementation method call to validate the function.Parameterimplementation. ValidateParameterImplementationRequest is the type used forrequests.

typeValidateReturnImplementationRequest

type ValidateReturnImplementationRequest struct{}

ValidateReturnImplementationRequest contains the information availableduring a ValidateImplementation call to validate the function.Returndefinition. ValidateReturnImplementationResponse is the type used forresponses.

typeValidateReturnImplementationResponse

type ValidateReturnImplementationResponse struct {// Diagnostics report errors or warnings related to validating the// definition of the function.Return. An empty slice indicates success, with no// warnings or errors generated.Diagnosticsdiag.Diagnostics}

ValidateReturnImplementationResponse contains the returned data from aValidateImplementation method call to validate the function.Returnimplementation. ValidateReturnImplementationRequest is the type used forrequests.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp