Documentation ¶
Index ¶
- func AppendProtoDiag(diags []*proto.Diagnostic, d interface{}) []*proto.Diagnostic
- func AttributePathToPath(ap *proto.AttributePath) cty.Path
- func ConfigSchemaToProto(b *configschema.Block) *proto.Schema_Block
- func PathToAttributePath(p cty.Path) *proto.AttributePath
- func ProtoToConfigSchema(b *proto.Schema_Block) *configschema.Block
- func ProtoToCtyType(in []byte) cty.Type
- func ProtoToDiagnostics(ds []*proto.Diagnostic) tfdiags.Diagnostics
- func ProtoToFunctionParameterSpec(proto *tfplugin6.Function_Parameter) providers.FunctionParameterSpec
- func ProtoToFunctionSpec(proto *tfplugin6.Function) providers.FunctionSpec
- func ProtoToProviderSchema(s *proto.Schema) providers.Schema
- func ProtoToTextFormatting(proto tfplugin6.StringKind) providers.TextFormatting
- func WarnsAndErrsToProto(warns []string, errs []error) (diags []*proto.Diagnostic)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AppendProtoDiag ¶
func AppendProtoDiag(diags []*proto.Diagnostic, d interface{}) []*proto.Diagnostic
AppendProtoDiag appends a new diagnostic from a warning string or an error. This panics if d is not a string or error.
func AttributePathToPath ¶
func AttributePathToPath(ap *proto.AttributePath) cty.Path
AttributePathToPath takes the proto encoded path and converts it to a cty.Path
func ConfigSchemaToProto ¶
func ConfigSchemaToProto(b *configschema.Block) *proto.Schema_Block
ConfigSchemaToProto takes a *configschema.Block and converts it to a proto.Schema_Block for a grpc response.
func PathToAttributePath ¶
func PathToAttributePath(p cty.Path) *proto.AttributePath
AttributePathToPath takes a cty.Path and converts it to a proto-encoded path.
func ProtoToConfigSchema ¶
func ProtoToConfigSchema(b *proto.Schema_Block) *configschema.Block
ProtoToConfigSchema takes the GetSchcema_Block from a grpc response and converts it to a tofu *configschema.Block.
func ProtoToCtyType ¶
func ProtoToDiagnostics ¶
func ProtoToDiagnostics(ds []*proto.Diagnostic) tfdiags.Diagnostics
ProtoToDiagnostics converts a list of proto.Diagnostics to a tf.Diagnostics.
func ProtoToFunctionParameterSpec ¶
func ProtoToFunctionParameterSpec(proto *tfplugin6.Function_Parameter) providers.FunctionParameterSpec
func ProtoToFunctionSpec ¶
func ProtoToFunctionSpec(proto *tfplugin6.Function) providers.FunctionSpec
func ProtoToProviderSchema ¶
ProtoToProviderSchema takes a proto.Schema and converts it to a providers.Schema.
func ProtoToTextFormatting ¶
func ProtoToTextFormatting(proto tfplugin6.StringKind) providers.TextFormatting
func WarnsAndErrsToProto ¶
func WarnsAndErrsToProto(warns []string, errs []error) (diags []*proto.Diagnostic)
WarnsAndErrorsToProto converts the warnings and errors return by the legacy provider to protobuf diagnostics.
Types ¶
This section is empty.