convert
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Index¶
- func AppendProtoDiag(ctx context.Context, diags []*tfprotov5.Diagnostic, d interface{}) []*tfprotov5.Diagnostic
- func AttributePathToPath(ap *tftypes.AttributePath) cty.Path
- func ConfigIdentitySchemaToProto(ctx context.Context, identitySchema *configschema.Block) []*tfprotov5.ResourceIdentitySchemaAttribute
- func ConfigSchemaToProto(ctx context.Context, b *configschema.Block) *tfprotov5.SchemaBlock
- func DiagsToProto(diags diag.Diagnostics) []*tfprotov5.Diagnostic
- func PathToAttributePath(p cty.Path) *tftypes.AttributePath
- func ProtoToConfigSchema(ctx context.Context, b *tfprotov5.SchemaBlock) *configschema.Block
- func ProtoToDiags(ds []*tfprotov5.Diagnostic) diag.Diagnostics
- func ToTfValue(in cty.Value) (*tftypes.Value, error)
Constants¶
This section is empty.
Variables¶
This section is empty.
Functions¶
funcAppendProtoDiag¶
func AppendProtoDiag(ctxcontext.Context, diags []*tfprotov5.Diagnostic, d interface{}) []*tfprotov5.Diagnostic
AppendProtoDiag appends a new diagnostic from a warning string or an error.This panics if d is not a string or error.
funcAttributePathToPath¶
func AttributePathToPath(ap *tftypes.AttributePath)cty.Path
AttributePathToPath takes the proto encoded path and converts it to a cty.Path
funcConfigIdentitySchemaToProto¶added inv2.37.0
func ConfigIdentitySchemaToProto(ctxcontext.Context, identitySchema *configschema.Block) []*tfprotov5.ResourceIdentitySchemaAttribute
funcConfigSchemaToProto¶
func ConfigSchemaToProto(ctxcontext.Context, b *configschema.Block) *tfprotov5.SchemaBlock
ConfigSchemaToProto takes a *configschema.Block and converts it to atfprotov5.SchemaBlock for a grpc response.
funcDiagsToProto¶
func DiagsToProto(diagsdiag.Diagnostics) []*tfprotov5.Diagnostic
funcPathToAttributePath¶
func PathToAttributePath(pcty.Path) *tftypes.AttributePath
PathToAttributePath takes a cty.Path and converts it to a proto-encoded path.
funcProtoToConfigSchema¶
func ProtoToConfigSchema(ctxcontext.Context, b *tfprotov5.SchemaBlock) *configschema.Block
ProtoToConfigSchema takes the GetSchema_Block from a grpc response and converts itto a terraform *configschema.Block.
funcProtoToDiags¶
func ProtoToDiags(ds []*tfprotov5.Diagnostic)diag.Diagnostics
ProtoToDiags converts a list of tfprotov5.Diagnostics to a diag.Diagnostics.
Types¶
This section is empty.