Documentation
¶
Index ¶
- func FromJSON(b []byte, typ attr.Type) (types.Dynamic, error)
- func FromJSONImplied(b []byte) (types.Dynamic, error)
- func IsFullyKnown(val attr.Value) bool
- func SemanticallyEqual(a, b types.Dynamic) bool
- func ToJSON(d types.Dynamic) ([]byte, error)
- func ToJSONWithUnknownValueHandler(d types.Dynamic, handler UnknownValueHandler) ([]byte, error)
- type UnknownValueHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromJSONImplied ¶
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 ¶
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 ToJSONWithUnknownValueHandler ¶
func ToJSONWithUnknownValueHandler(d types.Dynamic, handler UnknownValueHandler) ([]byte, error)
Types ¶
Click to show internal directories.
Click to hide internal directories.