freight

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FindChart

func FindChart(
	ctx context.Context,
	cl client.Client,
	stage *kargoapi.Stage,
	desiredOrigin *kargoapi.FreightOrigin,
	freight []kargoapi.FreightReference,
	repoURL string,
	chartName string,
) (*kargoapi.Chart, error)

func FindCommit

func FindCommit(
	ctx context.Context,
	cl client.Client,
	stage *kargoapi.Stage,
	desiredOrigin *kargoapi.FreightOrigin,
	freight []kargoapi.FreightReference,
	repoURL string,
) (*kargoapi.GitCommit, error)

func FindImage

func FindImage(
	ctx context.Context,
	cl client.Client,
	stage *kargoapi.Stage,
	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.

Jump to

Keyboard shortcuts

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