Help us shape the future of Go! Take the 2026 Go Developer Survey

dynamic

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2026 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

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)

func ToJSONWithUnknownValueHandler

func ToJSONWithUnknownValueHandler(d types.Dynamic, handler UnknownValueHandler) ([]byte, error)

Types

type UnknownValueHandler

type UnknownValueHandler func(val attr.Value) ([]byte, error)

Jump to

Keyboard shortcuts

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