Documentation ¶
Overview ¶
Package fromtftypes contains functions to convert from terraform-plugin-go tftypes types to framework types.
Index ¶
- func AttributePath(ctx context.Context, tfType *tftypes.AttributePath, schema fwschema.Schema) (path.Path, diag.Diagnostics)
- func AttributePathStep(ctx context.Context, tfType tftypes.AttributePathStep, attrType attr.Type) (path.PathStep, error)
- func Value(ctx context.Context, tfType tftypes.Value, attrType attr.Type) (attr.Value, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AttributePath ¶ added in v0.11.0
func AttributePath(ctx context.Context, tfType *tftypes.AttributePath, schema fwschema.Schema) (path.Path, diag.Diagnostics)
AttributePath returns the path.Path equivalent of a *tftypes.AttributePath.
func AttributePathStep ¶
func AttributePathStep(ctx context.Context, tfType tftypes.AttributePathStep, attrType attr.Type) (path.PathStep, error)
AttributePathStep returns the path.PathStep equivalent of a tftypes.AttributePathStep. An error is returned instead of diag.Diagnostics so callers can include appropriate logical context about when the error occurred.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.