Help us shape the future of Go! Take the 2026 Go Developer Survey

toproto6

package
v1.19.0 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2026 License: MPL-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package toproto6 contains functions to convert from framework types to protocol version 6 (tfprotov6) types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ActionDeferred added in v1.16.0

func ActionDeferred(fw *action.Deferred) *tfprotov6.Deferred

func ActionMetadata added in v1.16.0

ActionMetadata returns the tfprotov6.ActionMetadata for a fwserver.ActionMetadata.

func ActionSchema added in v1.16.0

ActionSchema returns the *tfprotov6.ActionSchema equivalent of a ActionSchema.

func ApplyResourceChangeResponse added in v0.9.0

ApplyResourceChangeResponse returns the *tfprotov6.ApplyResourceChangeResponse equivalent of a *fwserver.ApplyResourceChangeResponse.

func Block

Block returns the *tfprotov6.SchemaNestedBlock equivalent of a Block. Errors will be tftypes.AttributePathErrors based on `path`. `name` is the name of the attribute.

func CallFunctionResponse added in v1.5.0

CallFunctionResponse returns the *tfprotov6.CallFunctionResponse equivalent of a *fwserver.CallFunctionResponse.

func CloseEphemeralResourceResponse added in v1.13.0

CloseEphemeralResourceResponse returns the *tfprotov6.CloseEphemeralResourceResponse equivalent of a *fwserver.CloseEphemeralResourceResponse.

func CompletedInvokeActionEventType added in v1.16.0

func CompletedInvokeActionEventType(ctx context.Context, event *fwserver.InvokeActionResponse) tfprotov6.InvokeActionEvent

func Config added in v0.9.0

Config returns the *tfprotov6.DynamicValue for a *tfsdk.Config.

func ConfigureProviderResponse added in v0.9.0

func ConfigureProviderResponse(ctx context.Context, fw *provider.ConfigureResponse) *tfprotov6.ConfigureProviderResponse

ConfigureProviderResponse returns the *tfprotov6.ConfigureProviderResponse equivalent of a *fwserver.ConfigureProviderResponse.

func ConfigureStateStoreResponse added in v1.18.0

ConfigureStateStoreResponse returns the *tfprotov6.ConfigureStateStoreResponse equivalent of a *fwserver.ConfigureStateStoreResponse.

func DataSourceDeferred added in v1.9.0

func DataSourceDeferred(fw *datasource.Deferred) *tfprotov6.Deferred

func DataSourceMetadata added in v1.4.0

DataSourceMetadata returns the tfprotov6.DataSourceMetadata for a fwserver.DataSourceMetadata.

func DeleteStateResponse added in v1.18.0

DeleteStateResponse returns the *tfprotov6.DeleteStateResponse equivalent of a *fwserver.DeleteStateResponse.

func DiagnosticSeverity added in v0.9.0

func DiagnosticSeverity(s diag.Severity) tfprotov6.DiagnosticSeverity

DiagnosticSeverity converts diag.Severity into tfprotov6.DiagnosticSeverity.

func Diagnostics

func Diagnostics(ctx context.Context, diagnostics diag.Diagnostics) []*tfprotov6.Diagnostic

Diagnostics converts the diagnostics into the tfprotov6 collection type.

func DynamicValue added in v1.1.0

DynamicValue returns the *tfprotov6.DynamicValue for a given fwschemadata.Data.

If necessary, the underlying data is modified to convert list and set block values from a null collection to an empty collection. This is to prevent developers from needing to understand Terraform's differences between block and attribute values where blocks are technically never null, but from a developer perspective this distinction introduces unnecessary complexity.

func EphemeralResourceDeferred added in v1.13.0

func EphemeralResourceDeferred(fw *ephemeral.Deferred) *tfprotov6.Deferred

func EphemeralResourceMetadata added in v1.13.0

EphemeralResourceMetadata returns the tfprotov6.EphemeralResourceMetadata for a fwserver.EphemeralResourceMetadata.

func EphemeralResultData added in v1.13.0

EphemeralResultData returns the *tfprotov6.DynamicValue for a *tfsdk.EphemeralResultData.

func Function added in v1.5.0

Function returns the *tfprotov6.Function for a function.Definition.

func FunctionError added in v1.6.0

func FunctionError(ctx context.Context, funcErr *function.FuncError) *tfprotov6.FunctionError

FunctionError converts the function error into the tfprotov6 function error.

func FunctionMetadata added in v1.5.0

FunctionMetadata returns the tfprotov6.FunctionMetadata for a fwserver.FunctionMetadata.

func FunctionParameter added in v1.5.0

func FunctionParameter(ctx context.Context, fw function.Parameter) *tfprotov6.FunctionParameter

FunctionParameter returns the *tfprotov6.FunctionParameter for a function.Parameter.

func FunctionResultData added in v1.5.0

func FunctionResultData(ctx context.Context, data function.ResultData) (*tfprotov6.DynamicValue, *function.FuncError)

FunctionResultData returns the *tfprotov6.DynamicValue for a given function.ResultData.

func FunctionReturn added in v1.5.0

func FunctionReturn(ctx context.Context, fw function.Return) *tfprotov6.FunctionReturn

FunctionReturn returns the *tfprotov6.FunctionReturn for a function.Return.

func GenerateResourceConfigResponse added in v1.19.0

GenerateResourceConfigResponse returns the *tfprotov6.GenerateResourceConfigResponse equivalent of a *fwserver.GenerateResourceConfigResponse.

func GetFunctionsResponse added in v1.5.0

GetFunctionsResponse returns the *tfprotov6.GetFunctionsResponse equivalent of a *fwserver.GetFunctionsResponse.

func GetMetadataResponse added in v1.4.0

GetMetadataResponse returns the *tfprotov6.GetMetadataResponse equivalent of a *fwserver.GetMetadataResponse.

func GetProviderSchemaResponse

GetProviderSchemaResponse returns the *tfprotov6.GetProviderSchemaResponse equivalent of a *fwserver.GetProviderSchemaResponse.

func GetResourceIdentitySchemasResponse added in v1.15.0

GetResourceIdentitySchemasResponse returns the *tfprotov6.GetResourceIdentitySchemasResponse equivalent of a *fwserver.GetResourceIdentitySchemasResponse.

func GetStatesResponse added in v1.18.0

GetStatesResponse returns the *tfprotov6.GetStatesResponse equivalent of a *fwserver.GetStatesResponse.

func IdentitySchema added in v1.15.0

IdentitySchema returns the *tfprotov6.ResourceIdentitySchema equivalent of a Schema.

func IdentitySchemaAttribute added in v1.15.0

IdentitySchemaAttribute returns the *tfprotov6.ResourceIdentitySchemaAttribute equivalent of an Attribute. Errors will be tftypes.AttributePathErrors based on `path`. `name` is the name of the attribute.

func ImportResourceStateResponse added in v0.9.0

ImportResourceStateResponse returns the *tfprotov6.ImportResourceStateResponse equivalent of a *fwserver.ImportResourceStateResponse.

func ImportedResource added in v0.9.0

ImportedResource returns the *tfprotov6.ImportedResource equivalent of a *fwserver.ImportedResource.

func ListResourceMetadata added in v1.16.0

ListResourceMetadata returns the tfprotov6.ListResourceMetadata for a fwserver.ListResourceMetadata.

func ListResourceResult added in v1.16.0

func ListResourceResult(ctx context.Context, result *fwserver.ListResult) tfprotov6.ListResourceResult

func ListResourceResultWithResource added in v1.16.0

func ListResourceResultWithResource(ctx context.Context, result *fwserver.ListResult) tfprotov6.ListResourceResult

func LockStateResponse added in v1.18.0

LockStateResponse returns the *tfprotov6.LockStateResponse equivalent of a *fwserver.LockStateResponse.

func MoveResourceStateResponse added in v1.6.0

MoveResourceStateResponse returns the *tfprotov6.MoveResourceStateResponse equivalent of a *fwserver.MoveResourceStateResponse.

func OpenEphemeralResourceResponse added in v1.13.0

OpenEphemeralResourceResponse returns the *tfprotov6.OpenEphemeralResourceResponse equivalent of a *fwserver.OpenEphemeralResourceResponse.

func PlanActionResponse added in v1.16.0

PlanActionResponse returns the *tfprotov6.PlanActionResponse equivalent of a *fwserver.PlanActionResponse.

func PlanResourceChangeResponse added in v0.9.0

PlanResourceChangeResponse returns the *tfprotov6.PlanResourceChangeResponse equivalent of a *fwserver.PlanResourceChangeResponse.

func ProgressInvokeActionEventType added in v1.16.0

func ProgressInvokeActionEventType(ctx context.Context, event fwserver.InvokeProgressEvent) tfprotov6.InvokeActionEvent

func ReadDataSourceResponse added in v0.9.0

ReadDataSourceResponse returns the *tfprotov6.ReadDataSourceResponse equivalent of a *fwserver.ReadDataSourceResponse.

func ReadResourceResponse added in v0.9.0

ReadResourceResponse returns the *tfprotov6.ReadResourceResponse equivalent of a *fwserver.ReadResourceResponse.

func RenewEphemeralResourceResponse added in v1.13.0

RenewEphemeralResourceResponse returns the *tfprotov6.RenewEphemeralResourceResponse equivalent of a *fwserver.RenewEphemeralResourceResponse.

func Resource added in v1.16.0

Resource returns the *tfprotov6.DynamicValue for a *tfsdk.Resource.

func ResourceDeferred added in v1.9.0

func ResourceDeferred(fw *resource.Deferred) *tfprotov6.Deferred

func ResourceIdentity added in v1.15.0

ResourceIdentity returns the *tfprotov6.ResourceIdentityData for a *tfsdk.ResourceIdentity.

func ResourceMetadata added in v1.4.0

ResourceMetadata returns the tfprotov6.ResourceMetadata for a fwserver.ResourceMetadata.

func Schema

func Schema(ctx context.Context, s fwschema.Schema) (*tfprotov6.Schema, error)

Schema returns the *tfprotov6.Schema equivalent of a Schema.

func SchemaAttribute

SchemaAttribute returns the *tfprotov6.SchemaAttribute equivalent of an Attribute. Errors will be tftypes.AttributePathErrors based on `path`. `name` is the name of the attribute.

func ServerCapabilities added in v0.10.0

ServerCapabilities returns the *tfprotov6.ServerCapabilities for a *fwserver.ServerCapabilities.

func State added in v0.9.0

State returns the *tfprotov6.DynamicValue for a *tfsdk.State.

func StateStoreMetadata added in v1.18.0

StateStoreMetadata returns the tfprotov6.StateStoreMetadata for a fwserver.StateStoreMetadata.

func StateStoreServerCapabilities added in v1.18.0

func UnlockStateResponse added in v1.18.0

UnlockStateResponse returns the *tfprotov6.UnlockStateResponse equivalent of a *fwserver.UnlockStateResponse.

func UpgradeResourceIdentityResponse added in v1.15.0

UpgradeResourceIdentityResponse returns the *tfprotov6.UpgradeResourceIdentityResponse equivalent of a *fwserver.UpgradeResourceIdentityResponse.

func UpgradeResourceStateResponse added in v0.9.0

UpgradeResourceStateResponse returns the *tfprotov6.UpgradeResourceStateResponse equivalent of a *fwserver.UpgradeResourceStateResponse.

func ValidateActionConfigResponse added in v1.16.0

ValidateActionConfigResponse returns the *tfprotov6.ValidateActionConfigResponse equivalent of a *fwserver.ValidateActionConfigResponse.

func ValidateDataSourceConfigResponse added in v0.9.0

ValidateDataSourceConfigResponse returns the *tfprotov6.ValidateDataSourceConfigResponse equivalent of a *fwserver.ValidateDataSourceConfigResponse.

func ValidateEphemeralResourceConfigResponse added in v1.13.0

ValidateEphemeralResourceConfigResponse returns the *tfprotov6.ValidateEphemeralResourceConfigResponse equivalent of a *fwserver.ValidateEphemeralResourceConfigResponse.

func ValidateListResourceConfigResponse added in v1.16.0

ValidateListResourceConfigResponse returns the *tfprotov6.ValidateListResourceConfigResponse equivalent of a *fwserver.ValidateListResourceConfigResponse.

func ValidateProviderConfigResponse added in v0.9.0

ValidateProviderConfigResponse returns the *tfprotov6.ValidateProviderConfigResponse equivalent of a *fwserver.ValidateProviderConfigResponse.

func ValidateResourceConfigResponse added in v0.9.0

ValidateResourceConfigResponse returns the *tfprotov6.ValidateResourceConfigResponse equivalent of a *fwserver.ValidateResourceConfigResponse.

func ValidateStateStoreConfigResponse added in v1.18.0

ValidateStateStoreConfigResponse returns the *tfprotov6.ValidateStateStoreConfigResponse equivalent of a *fwserver.ValidateStateStoreConfigResponse.

func WriteStateBytesResponse added in v1.18.0

WriteStateBytesResponse returns the *tfprotov6.WriteStateBytesResponse equivalent of a *fwserver.WriteStateBytesResponse.

Types

This section is empty.

Jump to

Keyboard shortcuts

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