runs

package
v0.1.4 Latest Latest
Warning

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

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

Documentation

Overview

Package runs provides utilities for StoryRun and StepRun management.

This package contains subpackages that provide specialized functionality for run lifecycle management, including identity, inputs, status patching, and validation.

Subpackages

childrun: Child StepRun spec generation and management

spec := childrun.BuildSpec(storyRun, step, index)

identity: ServiceAccount identity management for engram runners

runner := identity.NewEngramRunner(storyRunName)
saName := runner.ServiceAccountName()
subject := runner.Subject(namespace)

inputs: Input resolution and parsing for StoryRuns

inputs, err := inputs.Parse(storyRun.Spec.Inputs)

list: StepRun listing and filtering utilities

stepRuns, err := list.StepRunsForStoryRun(ctx, client, storyRun)

status: Status patching for StoryRun and StepRun

status.PatchStoryRunPhase(ctx, client, storyRun, enums.PhaseSucceeded, "", "Completed")
status.PatchStepRunPhase(ctx, client, stepRun, enums.PhaseRunning, "", "Running")

validation: Downstream target validation for streaming

err := validation.ValidateDownstreamTargets(targets)
err := validation.ValidateGRPCEndpoint(endpoint)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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