baggage

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: May 15, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package baggage provides support for parsing and serializing a set of supported key-pair pairs. The Baggage type is used to store the pairs. A Baggage can be obtained by calling NewFromString on a stringified representation of the pairs. The stringified (YAML) representation can be obtained by calling Baggage.Write on a generic destination.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Baggage

type Baggage struct {
	TestSuiteName   string         `yaml:"testSuiteName"`
	TestName        string         `yaml:"testName"`
	TestSourceName  string         `yaml:"testSourceName"`
	TestSourceIndex int            `yaml:"testSourceIndex"`
	TestCase        map[string]any `yaml:"testCase,omitempty"`
	// ProcIndex is set to -1 for the root process.
	ProcIndex          int    `yaml:"procIndex"`
	IsContainer        bool   `yaml:"isContainer,omitempty"`
	ContainerImageName string `yaml:"containerImageName,omitempty"`
	ContainerName      string `yaml:"containerName,omitempty"`
}

Baggage stores values for the supported key-value pairs.

func NewFromString

func NewFromString(baggage string) (*Baggage, error)

NewFromString parses the key-value pairs encoded in the provided string and returns the parsed baggage. If an empty string is provided, the function returns nil.

func (*Baggage) Clone

func (b *Baggage) Clone() *Baggage

Clone creates and returns a clone of the baggage.

func (*Baggage) Write

func (b *Baggage) Write(w io.Writer) error

Write writes the key-value pairs to the provided writer.

Jump to

Keyboard shortcuts

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