stage

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metadata

type Metadata struct {
	StoryRun  string
	Namespace string
	Step      string
}

Metadata captures the StoryRun-centric identifiers every Stage participant (controllers, cleanup helpers, hub routing) propagates through logs/metrics.

func StoryRunMetadata

func StoryRunMetadata(storyRun, namespace string) Metadata

StoryRunMetadata creates metadata for a StoryRun scoped operation.

func (Metadata) Error

func (m Metadata) Error(log logr.Logger, err error, msg string, kv ...any)

Error logs using the supplied logger with the metadata fields appended.

func (Metadata) Fields

func (m Metadata) Fields(kv ...any) []any

Fields returns the canonical logging fields for Stage metadata followed by any caller-provided key/value pairs.

func (Metadata) Info

func (m Metadata) Info(log logr.Logger, msg string, kv ...any)

Info logs using the supplied logger with the metadata fields appended.

func (Metadata) WithStep

func (m Metadata) WithStep(step string) Metadata

WithStep returns a copy of the metadata that also tracks the current step ID.

Jump to

Keyboard shortcuts

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