inputs

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: May 18, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exist

func Exist(syn *apiv1.Synthesizer, c *apiv1.Composition) bool

Exist returns true when all of the inputs required by a synthesizer are represented by the given composition's status. Optional refs are not required to exist and will not cause this function to return false.

func Expected added in v0.2.9

func Expected(syn *apiv1.Synthesizer) []string

Expected returns the keys of all non-optional inputs declared by the synthesizer.

func Missing added in v0.2.9

func Missing(syn *apiv1.Synthesizer, c *apiv1.Composition) []string

Missing returns the keys of any non-optional inputs required by the synthesizer that are not represented in the given composition's status.

func OutOfLockstep

func OutOfLockstep(synth *apiv1.Synthesizer, comp *apiv1.Composition, revs []apiv1.InputRevisions) bool

OutOfLockstep returns true when one or more inputs that specify a revision do not match the others. It also returns true if any revision is derived from a synthesizer/composition generation older than the ones provided.

Types

type MismatchedInput added in v0.2.9

type MismatchedInput struct {
	Key                   string
	Revision              int   // 0 if unset
	MaxRevision           int   // 0 if no peer revision was observed
	SynthesizerGeneration int64 // 0 if unset
	CompositionGeneration int64 // 0 if unset
}

MismatchedInput describes a single input revision that is out of lockstep, either with peer revisions or with the current synthesizer/composition generation. Intended for logging only. Numeric fields are 0 when unknown.

func Mismatched added in v0.2.9

func Mismatched(synth *apiv1.Synthesizer, comp *apiv1.Composition, revs []apiv1.InputRevisions) []MismatchedInput

Mismatched returns the set of input revisions that are out of lockstep with the others, or derived from a synthesizer/composition generation older than the current ones.

Jump to

Keyboard shortcuts

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