dynamic

package
v1.13.1 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromJSON

func FromJSON(b []byte, typ attr.Type) (types.Dynamic, error)

func FromJSONImplied

func FromJSONImplied(b []byte) (types.Dynamic, error)

FromJSONImplied is similar to FromJSON, while it is for typeless case. In which case, the following type conversion rules are applied (Go -> TF): - bool: bool - float64: number - string: string - []interface{}: tuple - map[string]interface{}: object - nil: null (dynamic)

func IsFullyKnown added in v1.13.1

func IsFullyKnown(val attr.Value) bool

IsFullyKnown returns true if `val` is known. If `val` is an aggregate type, IsFullyKnown only returns true if all elements and attributes are known, as well.

func SemanticallyEqual

func SemanticallyEqual(a, b types.Dynamic) bool

func ToJSON

func ToJSON(d types.Dynamic) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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