Documentation ¶
Overview ¶
Package toproto converts terraform-plugin-go tfprotov5 types to Protocol Buffers generated tfplugin5 types.
Index ¶
- func ApplyResourceChange_Response(in *tfprotov5.ApplyResourceChangeResponse) *tfplugin5.ApplyResourceChange_Response
- func AttributePath(in *tftypes.AttributePath) *tfplugin5.AttributePath
- func AttributePath_Step(step tftypes.AttributePathStep) *tfplugin5.AttributePath_Step
- func AttributePath_Steps(in []tftypes.AttributePathStep) []*tfplugin5.AttributePath_Step
- func AttributePaths(in []*tftypes.AttributePath) []*tfplugin5.AttributePath
- func CallFunction_Response(in *tfprotov5.CallFunctionResponse) *tfplugin5.CallFunction_Response
- func CloseEphemeralResource_Response(in *tfprotov5.CloseEphemeralResourceResponse) *tfplugin5.CloseEphemeralResource_Response
- func Configure_Response(in *tfprotov5.ConfigureProviderResponse) *tfplugin5.Configure_Response
- func CtyType(in tftypes.Type) []byte
- func Deferred(in *tfprotov5.Deferred) *tfplugin5.Deferred
- func Diagnostic(in *tfprotov5.Diagnostic) *tfplugin5.Diagnostic
- func Diagnostic_Severity(in tfprotov5.DiagnosticSeverity) tfplugin5.Diagnostic_Severity
- func Diagnostics(in []*tfprotov5.Diagnostic) []*tfplugin5.Diagnostic
- func DynamicValue(in *tfprotov5.DynamicValue) *tfplugin5.DynamicValue
- func ForceValidUTF8(s string) string
- func Function(in *tfprotov5.Function) *tfplugin5.Function
- func FunctionError(in *tfprotov5.FunctionError) *tfplugin5.FunctionError
- func Function_Parameter(in *tfprotov5.FunctionParameter) *tfplugin5.Function_Parameter
- func Function_Return(in *tfprotov5.FunctionReturn) *tfplugin5.Function_Return
- func GetFunctions_Response(in *tfprotov5.GetFunctionsResponse) *tfplugin5.GetFunctions_Response
- func GetMetadata_DataSourceMetadata(in *tfprotov5.DataSourceMetadata) *tfplugin5.GetMetadata_DataSourceMetadata
- func GetMetadata_EphemeralResourceMetadata(in *tfprotov5.EphemeralResourceMetadata) *tfplugin5.GetMetadata_EphemeralResourceMetadata
- func GetMetadata_FunctionMetadata(in *tfprotov5.FunctionMetadata) *tfplugin5.GetMetadata_FunctionMetadata
- func GetMetadata_ResourceMetadata(in *tfprotov5.ResourceMetadata) *tfplugin5.GetMetadata_ResourceMetadata
- func GetMetadata_Response(in *tfprotov5.GetMetadataResponse) *tfplugin5.GetMetadata_Response
- func GetProviderSchema_Response(in *tfprotov5.GetProviderSchemaResponse) *tfplugin5.GetProviderSchema_Response
- func ImportResourceState_ImportedResource(in *tfprotov5.ImportedResource) *tfplugin5.ImportResourceState_ImportedResource
- func ImportResourceState_ImportedResources(in []*tfprotov5.ImportedResource) []*tfplugin5.ImportResourceState_ImportedResource
- func ImportResourceState_Response(in *tfprotov5.ImportResourceStateResponse) *tfplugin5.ImportResourceState_Response
- func MoveResourceState_Response(in *tfprotov5.MoveResourceStateResponse) *tfplugin5.MoveResourceState_Response
- func OpenEphemeralResource_Response(in *tfprotov5.OpenEphemeralResourceResponse) *tfplugin5.OpenEphemeralResource_Response
- func PlanResourceChange_Response(in *tfprotov5.PlanResourceChangeResponse) *tfplugin5.PlanResourceChange_Response
- func PrepareProviderConfig_Response(in *tfprotov5.PrepareProviderConfigResponse) *tfplugin5.PrepareProviderConfig_Response
- func ReadDataSource_Response(in *tfprotov5.ReadDataSourceResponse) *tfplugin5.ReadDataSource_Response
- func ReadResource_Response(in *tfprotov5.ReadResourceResponse) *tfplugin5.ReadResource_Response
- func RenewEphemeralResource_Response(in *tfprotov5.RenewEphemeralResourceResponse) *tfplugin5.RenewEphemeralResource_Response
- func Schema(in *tfprotov5.Schema) *tfplugin5.Schema
- func Schema_Attribute(in *tfprotov5.SchemaAttribute) *tfplugin5.Schema_Attribute
- func Schema_Attributes(in []*tfprotov5.SchemaAttribute) []*tfplugin5.Schema_Attribute
- func Schema_Block(in *tfprotov5.SchemaBlock) *tfplugin5.Schema_Block
- func Schema_NestedBlock(in *tfprotov5.SchemaNestedBlock) *tfplugin5.Schema_NestedBlock
- func Schema_NestedBlock_NestingMode(in tfprotov5.SchemaNestedBlockNestingMode) tfplugin5.Schema_NestedBlock_NestingMode
- func Schema_NestedBlocks(in []*tfprotov5.SchemaNestedBlock) []*tfplugin5.Schema_NestedBlock
- func ServerCapabilities(in *tfprotov5.ServerCapabilities) *tfplugin5.ServerCapabilities
- func Stop_Response(in *tfprotov5.StopProviderResponse) *tfplugin5.Stop_Response
- func StringKind(in tfprotov5.StringKind) tfplugin5.StringKind
- func Timestamp(in time.Time) *timestamppb.Timestamp
- func UpgradeResourceState_Response(in *tfprotov5.UpgradeResourceStateResponse) *tfplugin5.UpgradeResourceState_Response
- func ValidateDataSourceConfig_Response(in *tfprotov5.ValidateDataSourceConfigResponse) *tfplugin5.ValidateDataSourceConfig_Response
- func ValidateEphemeralResourceConfig_Response(in *tfprotov5.ValidateEphemeralResourceConfigResponse) *tfplugin5.ValidateEphemeralResourceConfig_Response
- func ValidateResourceTypeConfig_Response(in *tfprotov5.ValidateResourceTypeConfigResponse) *tfplugin5.ValidateResourceTypeConfig_Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyResourceChange_Response ¶
func ApplyResourceChange_Response(in *tfprotov5.ApplyResourceChangeResponse) *tfplugin5.ApplyResourceChange_Response
func AttributePath ¶
func AttributePath(in *tftypes.AttributePath) *tfplugin5.AttributePath
func AttributePath_Step ¶
func AttributePath_Step(step tftypes.AttributePathStep) *tfplugin5.AttributePath_Step
func AttributePath_Steps ¶
func AttributePath_Steps(in []tftypes.AttributePathStep) []*tfplugin5.AttributePath_Step
func AttributePaths ¶
func AttributePaths(in []*tftypes.AttributePath) []*tfplugin5.AttributePath
func CallFunction_Response ¶ added in v0.20.0
func CallFunction_Response(in *tfprotov5.CallFunctionResponse) *tfplugin5.CallFunction_Response
func CloseEphemeralResource_Response ¶ added in v0.25.0
func CloseEphemeralResource_Response(in *tfprotov5.CloseEphemeralResourceResponse) *tfplugin5.CloseEphemeralResource_Response
func Configure_Response ¶
func Configure_Response(in *tfprotov5.ConfigureProviderResponse) *tfplugin5.Configure_Response
func Diagnostic ¶
func Diagnostic(in *tfprotov5.Diagnostic) *tfplugin5.Diagnostic
func Diagnostic_Severity ¶
func Diagnostic_Severity(in tfprotov5.DiagnosticSeverity) tfplugin5.Diagnostic_Severity
func Diagnostics ¶
func Diagnostics(in []*tfprotov5.Diagnostic) []*tfplugin5.Diagnostic
func DynamicValue ¶
func DynamicValue(in *tfprotov5.DynamicValue) *tfplugin5.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 *tfprotov5.FunctionError) *tfplugin5.FunctionError
func Function_Parameter ¶ added in v0.20.0
func Function_Parameter(in *tfprotov5.FunctionParameter) *tfplugin5.Function_Parameter
func Function_Return ¶ added in v0.20.0
func Function_Return(in *tfprotov5.FunctionReturn) *tfplugin5.Function_Return
func GetFunctions_Response ¶ added in v0.20.0
func GetFunctions_Response(in *tfprotov5.GetFunctionsResponse) *tfplugin5.GetFunctions_Response
func GetMetadata_DataSourceMetadata ¶ added in v0.19.0
func GetMetadata_DataSourceMetadata(in *tfprotov5.DataSourceMetadata) *tfplugin5.GetMetadata_DataSourceMetadata
func GetMetadata_EphemeralResourceMetadata ¶ added in v0.25.0
func GetMetadata_EphemeralResourceMetadata(in *tfprotov5.EphemeralResourceMetadata) *tfplugin5.GetMetadata_EphemeralResourceMetadata
func GetMetadata_FunctionMetadata ¶ added in v0.20.0
func GetMetadata_FunctionMetadata(in *tfprotov5.FunctionMetadata) *tfplugin5.GetMetadata_FunctionMetadata
func GetMetadata_ResourceMetadata ¶ added in v0.19.0
func GetMetadata_ResourceMetadata(in *tfprotov5.ResourceMetadata) *tfplugin5.GetMetadata_ResourceMetadata
func GetMetadata_Response ¶ added in v0.19.0
func GetMetadata_Response(in *tfprotov5.GetMetadataResponse) *tfplugin5.GetMetadata_Response
func GetProviderSchema_Response ¶
func GetProviderSchema_Response(in *tfprotov5.GetProviderSchemaResponse) *tfplugin5.GetProviderSchema_Response
func ImportResourceState_ImportedResource ¶
func ImportResourceState_ImportedResource(in *tfprotov5.ImportedResource) *tfplugin5.ImportResourceState_ImportedResource
func ImportResourceState_ImportedResources ¶
func ImportResourceState_ImportedResources(in []*tfprotov5.ImportedResource) []*tfplugin5.ImportResourceState_ImportedResource
func ImportResourceState_Response ¶
func ImportResourceState_Response(in *tfprotov5.ImportResourceStateResponse) *tfplugin5.ImportResourceState_Response
func MoveResourceState_Response ¶ added in v0.21.0
func MoveResourceState_Response(in *tfprotov5.MoveResourceStateResponse) *tfplugin5.MoveResourceState_Response
func OpenEphemeralResource_Response ¶ added in v0.25.0
func OpenEphemeralResource_Response(in *tfprotov5.OpenEphemeralResourceResponse) *tfplugin5.OpenEphemeralResource_Response
func PlanResourceChange_Response ¶
func PlanResourceChange_Response(in *tfprotov5.PlanResourceChangeResponse) *tfplugin5.PlanResourceChange_Response
func PrepareProviderConfig_Response ¶
func PrepareProviderConfig_Response(in *tfprotov5.PrepareProviderConfigResponse) *tfplugin5.PrepareProviderConfig_Response
func ReadDataSource_Response ¶
func ReadDataSource_Response(in *tfprotov5.ReadDataSourceResponse) *tfplugin5.ReadDataSource_Response
func ReadResource_Response ¶
func ReadResource_Response(in *tfprotov5.ReadResourceResponse) *tfplugin5.ReadResource_Response
func RenewEphemeralResource_Response ¶ added in v0.25.0
func RenewEphemeralResource_Response(in *tfprotov5.RenewEphemeralResourceResponse) *tfplugin5.RenewEphemeralResource_Response
func Schema_Attribute ¶
func Schema_Attribute(in *tfprotov5.SchemaAttribute) *tfplugin5.Schema_Attribute
func Schema_Attributes ¶
func Schema_Attributes(in []*tfprotov5.SchemaAttribute) []*tfplugin5.Schema_Attribute
func Schema_Block ¶
func Schema_Block(in *tfprotov5.SchemaBlock) *tfplugin5.Schema_Block
func Schema_NestedBlock ¶
func Schema_NestedBlock(in *tfprotov5.SchemaNestedBlock) *tfplugin5.Schema_NestedBlock
func Schema_NestedBlock_NestingMode ¶
func Schema_NestedBlock_NestingMode(in tfprotov5.SchemaNestedBlockNestingMode) tfplugin5.Schema_NestedBlock_NestingMode
func Schema_NestedBlocks ¶
func Schema_NestedBlocks(in []*tfprotov5.SchemaNestedBlock) []*tfplugin5.Schema_NestedBlock
func ServerCapabilities ¶ added in v0.19.0
func ServerCapabilities(in *tfprotov5.ServerCapabilities) *tfplugin5.ServerCapabilities
func Stop_Response ¶
func Stop_Response(in *tfprotov5.StopProviderResponse) *tfplugin5.Stop_Response
func StringKind ¶
func StringKind(in tfprotov5.StringKind) tfplugin5.StringKind
func UpgradeResourceState_Response ¶
func UpgradeResourceState_Response(in *tfprotov5.UpgradeResourceStateResponse) *tfplugin5.UpgradeResourceState_Response
func ValidateDataSourceConfig_Response ¶
func ValidateDataSourceConfig_Response(in *tfprotov5.ValidateDataSourceConfigResponse) *tfplugin5.ValidateDataSourceConfig_Response
func ValidateEphemeralResourceConfig_Response ¶ added in v0.25.0
func ValidateEphemeralResourceConfig_Response(in *tfprotov5.ValidateEphemeralResourceConfigResponse) *tfplugin5.ValidateEphemeralResourceConfig_Response
func ValidateResourceTypeConfig_Response ¶
func ValidateResourceTypeConfig_Response(in *tfprotov5.ValidateResourceTypeConfigResponse) *tfplugin5.ValidateResourceTypeConfig_Response
Types ¶
This section is empty.