utils

package
v2.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyGenericMaps

func CopyGenericMaps[T any](target map[string]T, source map[string]T)

func CopyMaps

func CopyMaps(target map[string]schema.Attribute, source map[string]schema.Attribute)

func GenID

func GenID() string

func GoObjectToTerraformString

func GoObjectToTerraformString(v interface{}) (types.String, error)

func InterfaceToStringArray

func InterfaceToStringArray(o interface{}) []string

func TFStringListToStringArray

func TFStringListToStringArray(list []types.String) []string

func TerraformJsonStringToGoObject

func TerraformJsonStringToGoObject(v *string) (*map[string]any, error)

func TerraformListToGoArray

func TerraformListToGoArray(ctx context.Context, list types.List, arrayType string) ([]interface{}, error)

func TerraformStringToBooleanOrString added in v2.0.16

func TerraformStringToBooleanOrString(s types.String) interface{}

func TerraformStringToGoType added in v2.0.4

func TerraformStringToGoType[T any](s types.String) (T, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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