revhold

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package revhold reads which step Function revisions open workflow runs hold (ADR-0190 Decision 7): the status.pins of every WorkflowRun in a namespace that is not terminal and not cancelled. It is read from the store at each retire or delete decision, never kept in a shared map, so the Function reconciler, the workflow materializer and the owner garbage collector each read the same truth.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Holds

type Holds map[v1.ObjectName]map[v1.ObjectName]v1.UID

Holds maps a Function name to its held Revision names, each with the UID of the Function the pin names.

func Held

func Held(ctx context.Context, st store.Store, ns v1.NamespaceName) (Holds, error)

Held lists the WorkflowRuns in ns once and returns the revisions their pins hold.

func (Holds) Function

func (h Holds) Function(fn v1.ObjectName, uid v1.UID) bool

Function reports whether any revision of the Function fn with uid is held.

func (Holds) Revision

func (h Holds) Revision(fn v1.ObjectName, uid v1.UID, rev v1.ObjectName) bool

Revision reports whether revision rev of the Function fn with uid is held.

Jump to

Keyboard shortcuts

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