testhelpers

package
v0.117.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPipelines

func NewPipelines(typestrs ...string) map[string]*PipelineMetadata

NewPipelines returns a map of hypothetical pipelines identified by their stringified typeVal.

func SeedAggregator

func SeedAggregator(
	agg *status.Aggregator,
	instanceIDs []*componentstatus.InstanceID,
	statuses ...componentstatus.Status,
)

SeedAggregator records a status event for each instanceID.

Types

type PipelineMetadata

type PipelineMetadata struct {
	PipelineID  pipeline.ID
	ReceiverID  *componentstatus.InstanceID
	ProcessorID *componentstatus.InstanceID
	ExporterID  *componentstatus.InstanceID
}

PipelineMetadata groups together component and instance IDs for a hypothetical pipeline used for testing purposes.

func NewPipelineMetadata

func NewPipelineMetadata(typestr string) *PipelineMetadata

NewPipelineMetadata returns a metadata for a hypothetical pipeline.

func (*PipelineMetadata) InstanceIDs

func (p *PipelineMetadata) InstanceIDs() []*componentstatus.InstanceID

InstanceIDs returns a slice of instanceIDs for components within the hypothetical pipeline.

Jump to

Keyboard shortcuts

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