Documentation ¶
Index ¶
- func FindChart(ctx context.Context, cl client.Client, stage *kargoapi.Stage, ...) (*kargoapi.Chart, error)
- func FindCommit(ctx context.Context, cl client.Client, stage *kargoapi.Stage, ...) (*kargoapi.GitCommit, error)
- func FindImage(ctx context.Context, cl client.Client, stage *kargoapi.Stage, ...) (*kargoapi.Image, error)
- func GetDesiredOrigin(mechanism any, targetMechanism any) *kargoapi.FreightOrigin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FindCommit ¶
func GetDesiredOrigin ¶
func GetDesiredOrigin(mechanism any, targetMechanism any) *kargoapi.FreightOrigin
GetDesiredOrigin recursively walks a graph of promotion mechanisms, taking note of the origin of each mechanism (if specified) until it finds the "target" promotion mechanism. At each step, if no origin is found, the parent's origin is inherited. This function essentially permits child promotion mechanisms to inherit or override origins specified by their ancestors despites the fact that child promotion mechanisms never have any back-reference to their parent.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.