foreach

package
v1.11.3 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// BlockName is the block name for foreach blocks.
	BlockName = "foreach"
	// StabilityLevel for foreach blocks.
	StabilityLevel = featuregate.StabilityExperimental
	// TypeTemplate is the block name for template property
	TypeTemplate = "template"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Arguments

type Arguments struct {
	Collection   []any  `alloy:"collection,attr"`
	Var          string `alloy:"var,attr"`
	Id           string `alloy:"id,attr,optional"`
	HashStringId bool   `alloy:"hash_string_id,attr,optional"`

	// EnableMetrics should be false by default.
	// That way users are protected from an explosion of debug metrics
	// if there are many items inside "collection".
	EnableMetrics bool `alloy:"enable_metrics,attr,optional"`
}

Jump to

Keyboard shortcuts

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