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 ExpandFrameworkListInt32(ctx context.Context, tfList types.List, diags *diag.Diagnostics) []int32
- func ExpandFrameworkListInt64(ctx context.Context, tfList types.List, diags *diag.Diagnostics) []int64
- func ExpandFrameworkListNestedBlock[T any, U any](ctx context.Context, tfList interface{ ... }, diags *diag.Diagnostics, ...) []U
- func ExpandFrameworkListString(ctx context.Context, tfList interface{ ... }, 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 ExpandInt32Pointer(v types.Int64) *int32
- 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 FlattenBoolPointerFalseAsNull(b *bool) types.Bool
- func FlattenFloat32Pointer(f *float32) types.Float64
- func FlattenFloat64(f float64) types.Float64
- func FlattenFloat64Pointer(f *float64) types.Float64
- func FlattenFrameworkListInt32(ctx context.Context, l []int32, diags *diag.Diagnostics) types.List
- func FlattenFrameworkListInt32NotNull(ctx context.Context, l []int32, diags *diag.Diagnostics) types.List
- func FlattenFrameworkListInt64(ctx context.Context, l []int64, diags *diag.Diagnostics) types.List
- func FlattenFrameworkListInt64NotNull(ctx context.Context, l []int64, diags *diag.Diagnostics) types.List
- 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 FlattenFrameworkListStringNotNull(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 FlattenFrameworkUnorderedList[T any](ctx context.Context, elemType attr.Type, data []T, diags *diag.Diagnostics) internaltypes.UnorderedListValue
- func FlattenFrameworkUnorderedListNestedBlock[T any, U any](ctx context.Context, data []T, attrTypes map[string]attr.Type, ...) internaltypes.UnorderedListValue
- func FlattenFrameworkUnorderedListNotNull[T any](ctx context.Context, elemType attr.Type, data []T, diags *diag.Diagnostics) internaltypes.UnorderedListValue
- func FlattenInt32Pointer(i *int32) types.Int64
- 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 ExpandFrameworkListInt32 ¶ added in v1.1.0
func ExpandFrameworkListInt64 ¶ added in v1.1.0
func ExpandFrameworkListNestedBlock ¶
func ExpandFrameworkListNestedBlock[T any, U any](ctx context.Context, tfList interface { basetypes.ListValuable ElementsAs(ctx context.Context, target interface{}, allowUnhandled bool) diag.Diagnostics }, diags *diag.Diagnostics, f FrameworkElementFlExFunc[T, *U]) []U
func ExpandFrameworkListString ¶
func ExpandFrameworkListString(ctx context.Context, tfList interface { basetypes.ListValuable ElementsAs(ctx context.Context, target interface{}, allowUnhandled bool) diag.Diagnostics }, diags *diag.Diagnostics) []string
func ExpandInt32Pointer ¶ added in v1.1.0
func ExpandInt64 ¶
func ExpandInt64Pointer ¶
func ExpandList ¶
func ExpandString ¶
func ExpandStringPointer ¶
func ExpandTime ¶
func ExpandTimePointer ¶
func FlattenBoolPointerFalseAsNull ¶ added in v1.4.0
For most fields, API returns false as expected from the provider, so use types.BoolPointerValue() instead. In cases where the API returns null instead of False, use FlattenBoolPointerFalseAsNull.
func FlattenFloat32Pointer ¶ added in v1.4.0
func FlattenFloat64 ¶
func FlattenFloat64Pointer ¶
func FlattenFrameworkListInt32 ¶ added in v1.1.0
func FlattenFrameworkListInt32NotNull ¶ added in v1.1.0
func FlattenFrameworkListInt64 ¶ added in v1.1.0
func FlattenFrameworkListInt64NotNull ¶ added in v1.1.0
func FlattenFrameworkListStringNotNull ¶ added in v1.4.0
func FlattenFrameworkUnorderedList ¶ added in v1.3.1
func FlattenFrameworkUnorderedList[T any](ctx context.Context, elemType attr.Type, data []T, diags *diag.Diagnostics) internaltypes.UnorderedListValue
func FlattenFrameworkUnorderedListNestedBlock ¶ added in v1.3.1
func FlattenFrameworkUnorderedListNestedBlock[T any, U any](ctx context.Context, data []T, attrTypes map[string]attr.Type, diags *diag.Diagnostics, f FrameworkElementFlExFunc[*T, U]) internaltypes.UnorderedListValue
func FlattenFrameworkUnorderedListNotNull ¶ added in v1.4.0
func FlattenFrameworkUnorderedListNotNull[T any](ctx context.Context, elemType attr.Type, data []T, diags *diag.Diagnostics) internaltypes.UnorderedListValue
func FlattenInt32Pointer ¶ added in v1.1.0
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.