util

package
v0.60.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jul 21, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyOutputsMapping

func ApplyOutputsMapping(values map[string]any, secrets map[string]any, outputsMap map[string]string, secretOutputsMap map[string]string) (map[string]any, map[string]any)

ApplyOutputsMapping renames a direct module's outputs onto resource property names.

Keys in outputsMap and secretOutputsMap are resource property names; values are module output names.

  • outputsMap entries route a module output to a value or a secret depending on how the module itself classified it (a secure Bicep output / sensitive Terraform output lands in secrets, otherwise values).
  • secretOutputsMap entries always route the referenced module output to secrets, regardless of how the module classified it. This lets a recipe pack force an output (for example an AVM module's `primaryConnectionString`, which the module declares as a plain string) to be treated as a secret.

When both maps are empty, the original values and secrets are returned unchanged (nil maps are normalized to empty maps so callers always receive non-nil maps).

func ShallowMergeParameters

func ShallowMergeParameters(base map[string]any, override map[string]any) map[string]any

ShallowMergeParameters merges two parameter maps with top-level key precedence from override. Nested objects are replaced entirely, not deep-merged (per the direct module support design).

Types

type RecipeDeploymentStatus

type RecipeDeploymentStatus string
const (
	// ExecutionError represents a failure status during recipe execution.
	ExecutionError RecipeDeploymentStatus = "executionError"
	// RecipeSetupError represents a failure that happens before a recipe or output resources are deployed.
	RecipeSetupError RecipeDeploymentStatus = "setupError"
	// Success represents a successful recipe execution.
	Success RecipeDeploymentStatus = "success"
)

Jump to

Keyboard shortcuts

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