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 ¶
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.
Click to show internal directories.
Click to hide internal directories.