Documentation ¶
Index ¶
- func FindChart(ctx context.Context, cl client.Client, project string, ...) (*kargoapi.Chart, error)
- func FindCommit(ctx context.Context, cl client.Client, project string, ...) (*kargoapi.GitCommit, error)
- func FindImage(ctx context.Context, cl client.Client, project string, ...) (*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 FindCommit( ctx context.Context, cl client.Client, project string, freightReqs []kargoapi.FreightRequest, desiredOrigin *kargoapi.FreightOrigin, freight []kargoapi.FreightReference, repoURL string, ) (*kargoapi.GitCommit, error)
func FindImage ¶
func FindImage( ctx context.Context, cl client.Client, project string, freightReqs []kargoapi.FreightRequest, desiredOrigin *kargoapi.FreightOrigin, freight []kargoapi.FreightReference, repoURL string, ) (*kargoapi.Image, error)
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.