helpers

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2024 License: MPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeMapping

func DecodeMapping(ctx context.Context, m map[string]any) (attr.Value, diag.Diagnostics)

func DecodeScalar

func DecodeScalar(ctx context.Context, m any) (value attr.Value, diags diag.Diagnostics)

func DecodeSequence

func DecodeSequence(ctx context.Context, s []any) (attr.Value, diag.Diagnostics)

func EncodeList added in v0.2.0

func EncodeList(lv basetypes.ListValue) ([]any, error)

func EncodeMap added in v0.2.0

func EncodeMap(mv basetypes.MapValue) (map[string]any, error)

func EncodeObject added in v0.2.0

func EncodeObject(ov basetypes.ObjectValue) (map[string]any, error)

func EncodeSet added in v0.2.0

func EncodeSet(sv basetypes.SetValue) ([]any, error)

func EncodeTuple added in v0.2.0

func EncodeTuple(tv basetypes.TupleValue) ([]any, error)

func EncodeValue added in v0.2.0

func EncodeValue(v attr.Value) (any, error)

func Mergo

func Mergo(ctx context.Context, objs []types.Dynamic, opts ...func(*mergo.Config)) (merged types.Dynamic, diags diag.Diagnostics)

Types

This section is empty.

Jump to

Keyboard shortcuts

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