Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildObjectSetFromSlice ¶
func BuildObjectSetFromSlice( ctx context.Context, attrTypes map[string]attr.Type, extract func(i int) map[string]attr.Value, length int, ) types.Set
BuildObjectSetFromSlice creates a Set from a slice using an extractor function.
This function converts a Go slice into a Terraform Framework Set type with proper error handling and logging. It's commonly used for mapping Graph API collections to Terraform state.
Parameters:
- ctx: Context for logging
- attrTypes: Map defining the attribute types for objects in the set
- extract: Function that extracts attribute values for each slice element
- length: Length of the source slice
Returns:
- types.Set: The constructed set, or a null set if errors occur
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.