targets

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: 4 Imported by: 0

Documentation

Overview

Package targets is its own package to break the import cycle where runtime is importing testcomponents (instead of e.g. runtime_test importing testcomponents)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Targets

type Targets struct {
	// contains filtered or unexported fields
}

Targets implements the testcomponents.targets component, where it always emits its input as an output.

func NewTargets

func NewTargets(o component.Options, cfg TargetsConfig) (*Targets, error)

NewTargets creates a new targets component.

func (*Targets) Run

func (t *Targets) Run(ctx context.Context) error

Run implements Component.

func (*Targets) Update

func (t *Targets) Update(args component.Arguments) error

Update implements Component.

type TargetsConfig

type TargetsConfig struct {
	Input []discovery.Target `alloy:"targets,attr"`
}

TargetsConfig configures the testcomponents.targets component.

type TargetsExports

type TargetsExports struct {
	Output []discovery.Target `alloy:"output,attr,optional"`
}

TargetsExports describes exported fields for the testcomponents.targets component.

Jump to

Keyboard shortcuts

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