Documentation
¶
Index ¶
- func ApplyToAll[T, U any](s []T, f func(T) U) []U
- func ApplyToAllMultiSlice[T, U, V any](s []T, u []U, d *diag.Diagnostics, f func(T, U) V) []V
- func ExpandBool(v types.Bool) bool
- func ExpandBoolPointer(v types.Bool) *bool
- func ExpandFloat32(v types.Float64) float32
- func ExpandFloat32Pointer(v types.Float64) *float32
- func ExpandFloat64(v types.Float64) float64
- func ExpandFloat64Pointer(v types.Float64) *float64
- func ExpandFrameworkListNestedBlock[T any, U any](ctx context.Context, tfList types.List, diags *diag.Diagnostics, ...) []U
- func ExpandFrameworkListString(ctx context.Context, tfList types.List, diags *diag.Diagnostics) []string
- func ExpandFrameworkMapFilterString(ctx context.Context, tfMap types.Map, diags *diag.Diagnostics) string
- func ExpandFrameworkMapString(ctx context.Context, tfMap types.Map, diags *diag.Diagnostics) map[string]interface{}
- func ExpandInt64(v types.Int64) int64
- func ExpandInt64Pointer(v types.Int64) *int64
- func ExpandList[U any](ctx context.Context, tfList types.List, u U, diags *diag.Diagnostics) U
- func ExpandString(v types.String) string
- func ExpandStringPointer(v types.String) *string
- func ExpandTime(_ context.Context, dt timetypes.RFC3339, diags *diag.Diagnostics) time.Time
- func ExpandTimePointer(_ context.Context, dt timetypes.RFC3339, diags *diag.Diagnostics) *time.Time
- func FlattenFloat64(f float64) types.Float64
- func FlattenFloat64Pointer(f *float64) types.Float64
- func FlattenFrameworkListNestedBlock[T any, U any](ctx context.Context, data []T, attrTypes map[string]attr.Type, ...) types.List
- func FlattenFrameworkListString(ctx context.Context, l []string, diags *diag.Diagnostics) types.List
- func FlattenFrameworkListsNestedBlock[T any, U any, V any](ctx context.Context, data []T, model []U, attrTypes map[string]attr.Type, ...) types.List
- func FlattenFrameworkMapString(ctx context.Context, m map[string]interface{}, diags *diag.Diagnostics) types.Map
- func FlattenFrameworkNestedBlock[T any, U any](ctx context.Context, data *T, attrTypes map[string]attr.Type, ...) types.Object
- func FlattenInt64(i int64) types.Int64
- func FlattenInt64Pointer(i *int64) types.Int64
- func FlattenString(s string) types.String
- func FlattenStringPointer(s *string) types.String
- func FlattenStringPointerWithNilAsEmpty(s *string) types.String
- type FrameworkElementFlExFunc
- type FrameworkElementFlExFuncExt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApplyToAll ¶
func ApplyToAll[T, U any](s []T, f func(T) U) []U
ApplyToAll returns a new slice containing the results of applying the function `f` to each element of the original slice `s`.
func ApplyToAllMultiSlice ¶
func ApplyToAllMultiSlice[T, U, V any](s []T, u []U, d *diag.Diagnostics, f func(T, U) V) []V
ApplyToAllMultiSlice returns a new slice containing the results of applying the function `f` to each element of the original slice `s` and `u`.
func ExpandBool ¶
func ExpandBoolPointer ¶
func ExpandFloat32 ¶
func ExpandFloat32Pointer ¶
func ExpandFloat64 ¶
func ExpandFloat64Pointer ¶
func ExpandFrameworkListNestedBlock ¶
func ExpandFrameworkListNestedBlock[T any, U any](ctx context.Context, tfList types.List, diags *diag.Diagnostics, f FrameworkElementFlExFunc[T, *U]) []U
func ExpandInt64 ¶
func ExpandInt64Pointer ¶
func ExpandList ¶
func ExpandString ¶
func ExpandStringPointer ¶
func ExpandTime ¶
func ExpandTimePointer ¶
func FlattenFloat64 ¶
func FlattenFloat64Pointer ¶
func FlattenInt64 ¶
func FlattenInt64Pointer ¶
func FlattenString ¶
func FlattenStringPointer ¶
func FlattenStringPointerWithNilAsEmpty ¶ added in v1.0.0
FlattenStringPointerWithNilAsEmpty is a helper function to flatten a string pointer to a string. It returns an empty string if the pointer is nil.
For most fields, API returns empty string instead of null to signify no data, so use FlattenStringPointer instead. In cases where the API returns null, use FlattenStringPointerWithNilAsEmpty.
Types ¶
Click to show internal directories.
Click to hide internal directories.