state

package
v0.19.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2025 License: MPL-2.0 Imports: 4 Imported by: 0

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.

Directories

Path Synopsis
graph_beta

Jump to

Keyboard shortcuts

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