Documentation ¶
Overview ¶
Package toproto converts terraform-plugin-go tfprotov6 types to Protocol Buffers generated tfplugin6 types.
Index ¶
- func ApplyResourceChange_Response(in *tfprotov6.ApplyResourceChangeResponse) *tfplugin6.ApplyResourceChange_Response
- func AttributePath(in *tftypes.AttributePath) *tfplugin6.AttributePath
- func AttributePath_Step(step tftypes.AttributePathStep) *tfplugin6.AttributePath_Step
- func AttributePath_Steps(in []tftypes.AttributePathStep) []*tfplugin6.AttributePath_Step
- func AttributePaths(in []*tftypes.AttributePath) []*tfplugin6.AttributePath
- func CallFunction_Response(in *tfprotov6.CallFunctionResponse) *tfplugin6.CallFunction_Response
- func ConfigureProvider_Response(in *tfprotov6.ConfigureProviderResponse) *tfplugin6.ConfigureProvider_Response
- func CtyType(in tftypes.Type) []byte
- func Diagnostic(in *tfprotov6.Diagnostic) *tfplugin6.Diagnostic
- func Diagnostic_Severity(in tfprotov6.DiagnosticSeverity) tfplugin6.Diagnostic_Severity
- func Diagnostics(in []*tfprotov6.Diagnostic) []*tfplugin6.Diagnostic
- func DynamicValue(in *tfprotov6.DynamicValue) *tfplugin6.DynamicValue
- func ForceValidUTF8(s string) string
- func Function(in *tfprotov6.Function) *tfplugin6.Function
- func FunctionError(in *tfprotov6.FunctionError) *tfplugin6.FunctionError
- func Function_Parameter(in *tfprotov6.FunctionParameter) *tfplugin6.Function_Parameter
- func Function_Return(in *tfprotov6.FunctionReturn) *tfplugin6.Function_Return
- func GetFunctions_Response(in *tfprotov6.GetFunctionsResponse) *tfplugin6.GetFunctions_Response
- func GetMetadata_DataSourceMetadata(in *tfprotov6.DataSourceMetadata) *tfplugin6.GetMetadata_DataSourceMetadata
- func GetMetadata_FunctionMetadata(in *tfprotov6.FunctionMetadata) *tfplugin6.GetMetadata_FunctionMetadata
- func GetMetadata_ResourceMetadata(in *tfprotov6.ResourceMetadata) *tfplugin6.GetMetadata_ResourceMetadata
- func GetMetadata_Response(in *tfprotov6.GetMetadataResponse) *tfplugin6.GetMetadata_Response
- func GetProviderSchema_Response(in *tfprotov6.GetProviderSchemaResponse) *tfplugin6.GetProviderSchema_Response
- func ImportResourceState_ImportedResource(in *tfprotov6.ImportedResource) *tfplugin6.ImportResourceState_ImportedResource
- func ImportResourceState_ImportedResources(in []*tfprotov6.ImportedResource) []*tfplugin6.ImportResourceState_ImportedResource
- func ImportResourceState_Response(in *tfprotov6.ImportResourceStateResponse) *tfplugin6.ImportResourceState_Response
- func MoveResourceState_Response(in *tfprotov6.MoveResourceStateResponse) *tfplugin6.MoveResourceState_Response
- func PlanResourceChange_Response(in *tfprotov6.PlanResourceChangeResponse) *tfplugin6.PlanResourceChange_Response
- func ReadDataSource_Response(in *tfprotov6.ReadDataSourceResponse) *tfplugin6.ReadDataSource_Response
- func ReadResource_Response(in *tfprotov6.ReadResourceResponse) *tfplugin6.ReadResource_Response
- func Schema(in *tfprotov6.Schema) *tfplugin6.Schema
- func Schema_Attribute(in *tfprotov6.SchemaAttribute) *tfplugin6.Schema_Attribute
- func Schema_Attributes(in []*tfprotov6.SchemaAttribute) []*tfplugin6.Schema_Attribute
- func Schema_Block(in *tfprotov6.SchemaBlock) *tfplugin6.Schema_Block
- func Schema_NestedBlock(in *tfprotov6.SchemaNestedBlock) *tfplugin6.Schema_NestedBlock
- func Schema_NestedBlock_NestingMode(in tfprotov6.SchemaNestedBlockNestingMode) tfplugin6.Schema_NestedBlock_NestingMode
- func Schema_NestedBlocks(in []*tfprotov6.SchemaNestedBlock) []*tfplugin6.Schema_NestedBlock
- func Schema_Object(in *tfprotov6.SchemaObject) *tfplugin6.Schema_Object
- func Schema_Object_NestingMode(in tfprotov6.SchemaObjectNestingMode) tfplugin6.Schema_Object_NestingMode
- func ServerCapabilities(in *tfprotov6.ServerCapabilities) *tfplugin6.ServerCapabilities
- func StopProvider_Response(in *tfprotov6.StopProviderResponse) *tfplugin6.StopProvider_Response
- func StringKind(in tfprotov6.StringKind) tfplugin6.StringKind
- func UpgradeResourceState_Response(in *tfprotov6.UpgradeResourceStateResponse) *tfplugin6.UpgradeResourceState_Response
- func ValidateDataResourceConfig_Response(in *tfprotov6.ValidateDataResourceConfigResponse) *tfplugin6.ValidateDataResourceConfig_Response
- func ValidateProviderConfig_Response(in *tfprotov6.ValidateProviderConfigResponse) *tfplugin6.ValidateProviderConfig_Response
- func ValidateResourceConfig_Response(in *tfprotov6.ValidateResourceConfigResponse) *tfplugin6.ValidateResourceConfig_Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyResourceChange_Response ¶
func ApplyResourceChange_Response(in *tfprotov6.ApplyResourceChangeResponse) *tfplugin6.ApplyResourceChange_Response
func AttributePath ¶
func AttributePath(in *tftypes.AttributePath) *tfplugin6.AttributePath
func AttributePath_Step ¶
func AttributePath_Step(step tftypes.AttributePathStep) *tfplugin6.AttributePath_Step
func AttributePath_Steps ¶
func AttributePath_Steps(in []tftypes.AttributePathStep) []*tfplugin6.AttributePath_Step
func AttributePaths ¶
func AttributePaths(in []*tftypes.AttributePath) []*tfplugin6.AttributePath
func CallFunction_Response ¶ added in v0.20.0
func CallFunction_Response(in *tfprotov6.CallFunctionResponse) *tfplugin6.CallFunction_Response
func ConfigureProvider_Response ¶ added in v0.21.0
func ConfigureProvider_Response(in *tfprotov6.ConfigureProviderResponse) *tfplugin6.ConfigureProvider_Response
func Diagnostic ¶
func Diagnostic(in *tfprotov6.Diagnostic) *tfplugin6.Diagnostic
func Diagnostic_Severity ¶
func Diagnostic_Severity(in tfprotov6.DiagnosticSeverity) tfplugin6.Diagnostic_Severity
func Diagnostics ¶
func Diagnostics(in []*tfprotov6.Diagnostic) []*tfplugin6.Diagnostic
func DynamicValue ¶
func DynamicValue(in *tfprotov6.DynamicValue) *tfplugin6.DynamicValue
func ForceValidUTF8 ¶ added in v0.21.0
ForceValidUTF8 returns a string guaranteed to be valid UTF-8 even if the input isn't, by replacing any invalid bytes with a valid UTF-8 encoding of the Unicode Replacement Character (\uFFFD).
The protobuf serialization library will reject invalid UTF-8 with an unhelpful error message:
string field contains invalid UTF-8
Passing a string result through this function makes invalid UTF-8 instead emerge as placeholder characters on the other side of the wire protocol, giving a better chance of still returning a partially-legible message instead of a generic character encoding error.
This is intended for user-facing messages such as diagnostic summary and detail messages, where Terraform will just treat the value as opaque and it's ultimately up to the user and their terminal or web browser to interpret the result. Don't use this for strings that have machine-readable meaning.
func FunctionError ¶ added in v0.22.0
func FunctionError(in *tfprotov6.FunctionError) *tfplugin6.FunctionError
func Function_Parameter ¶ added in v0.20.0
func Function_Parameter(in *tfprotov6.FunctionParameter) *tfplugin6.Function_Parameter
func Function_Return ¶ added in v0.20.0
func Function_Return(in *tfprotov6.FunctionReturn) *tfplugin6.Function_Return
func GetFunctions_Response ¶ added in v0.20.0
func GetFunctions_Response(in *tfprotov6.GetFunctionsResponse) *tfplugin6.GetFunctions_Response
func GetMetadata_DataSourceMetadata ¶ added in v0.19.0
func GetMetadata_DataSourceMetadata(in *tfprotov6.DataSourceMetadata) *tfplugin6.GetMetadata_DataSourceMetadata
func GetMetadata_FunctionMetadata ¶ added in v0.20.0
func GetMetadata_FunctionMetadata(in *tfprotov6.FunctionMetadata) *tfplugin6.GetMetadata_FunctionMetadata
func GetMetadata_ResourceMetadata ¶ added in v0.19.0
func GetMetadata_ResourceMetadata(in *tfprotov6.ResourceMetadata) *tfplugin6.GetMetadata_ResourceMetadata
func GetMetadata_Response ¶ added in v0.19.0
func GetMetadata_Response(in *tfprotov6.GetMetadataResponse) *tfplugin6.GetMetadata_Response
func GetProviderSchema_Response ¶
func GetProviderSchema_Response(in *tfprotov6.GetProviderSchemaResponse) *tfplugin6.GetProviderSchema_Response
func ImportResourceState_ImportedResource ¶
func ImportResourceState_ImportedResource(in *tfprotov6.ImportedResource) *tfplugin6.ImportResourceState_ImportedResource
func ImportResourceState_ImportedResources ¶
func ImportResourceState_ImportedResources(in []*tfprotov6.ImportedResource) []*tfplugin6.ImportResourceState_ImportedResource
func ImportResourceState_Response ¶
func ImportResourceState_Response(in *tfprotov6.ImportResourceStateResponse) *tfplugin6.ImportResourceState_Response
func MoveResourceState_Response ¶ added in v0.21.0
func MoveResourceState_Response(in *tfprotov6.MoveResourceStateResponse) *tfplugin6.MoveResourceState_Response
func PlanResourceChange_Response ¶
func PlanResourceChange_Response(in *tfprotov6.PlanResourceChangeResponse) *tfplugin6.PlanResourceChange_Response
func ReadDataSource_Response ¶
func ReadDataSource_Response(in *tfprotov6.ReadDataSourceResponse) *tfplugin6.ReadDataSource_Response
func ReadResource_Response ¶
func ReadResource_Response(in *tfprotov6.ReadResourceResponse) *tfplugin6.ReadResource_Response
func Schema_Attribute ¶
func Schema_Attribute(in *tfprotov6.SchemaAttribute) *tfplugin6.Schema_Attribute
func Schema_Attributes ¶
func Schema_Attributes(in []*tfprotov6.SchemaAttribute) []*tfplugin6.Schema_Attribute
func Schema_Block ¶
func Schema_Block(in *tfprotov6.SchemaBlock) *tfplugin6.Schema_Block
func Schema_NestedBlock ¶
func Schema_NestedBlock(in *tfprotov6.SchemaNestedBlock) *tfplugin6.Schema_NestedBlock
func Schema_NestedBlock_NestingMode ¶
func Schema_NestedBlock_NestingMode(in tfprotov6.SchemaNestedBlockNestingMode) tfplugin6.Schema_NestedBlock_NestingMode
func Schema_NestedBlocks ¶
func Schema_NestedBlocks(in []*tfprotov6.SchemaNestedBlock) []*tfplugin6.Schema_NestedBlock
func Schema_Object ¶
func Schema_Object(in *tfprotov6.SchemaObject) *tfplugin6.Schema_Object
func Schema_Object_NestingMode ¶
func Schema_Object_NestingMode(in tfprotov6.SchemaObjectNestingMode) tfplugin6.Schema_Object_NestingMode
func ServerCapabilities ¶ added in v0.19.0
func ServerCapabilities(in *tfprotov6.ServerCapabilities) *tfplugin6.ServerCapabilities
func StopProvider_Response ¶ added in v0.21.0
func StopProvider_Response(in *tfprotov6.StopProviderResponse) *tfplugin6.StopProvider_Response
func StringKind ¶
func StringKind(in tfprotov6.StringKind) tfplugin6.StringKind
func UpgradeResourceState_Response ¶
func UpgradeResourceState_Response(in *tfprotov6.UpgradeResourceStateResponse) *tfplugin6.UpgradeResourceState_Response
func ValidateDataResourceConfig_Response ¶
func ValidateDataResourceConfig_Response(in *tfprotov6.ValidateDataResourceConfigResponse) *tfplugin6.ValidateDataResourceConfig_Response
func ValidateProviderConfig_Response ¶
func ValidateProviderConfig_Response(in *tfprotov6.ValidateProviderConfigResponse) *tfplugin6.ValidateProviderConfig_Response
func ValidateResourceConfig_Response ¶
func ValidateResourceConfig_Response(in *tfprotov6.ValidateResourceConfigResponse) *tfplugin6.ValidateResourceConfig_Response
Types ¶
This section is empty.