fromtftypes

package
v0.11.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 15, 2022 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package fromtftypes contains functions to convert from terraform-plugin-go tftypes types to framework types.

Index

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.

func Value

func Value(ctx context.Context, tfType tftypes.Value, attrType attr.Type) (attr.Value, error)

Value returns the attr.Value equivalent to the tftypes.Value.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL