function

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChartFrom

func ChartFrom(
	ctx context.Context,
	c client.Client,
	project string,
	freightReqs []kargoapi.FreightRequest,
	freightRefs []kargoapi.FreightReference,
) expr.Option

ChartFrom returns an expr.Option that provides a `chartFrom()` function for use in expressions.

The chartFrom function finds Helm charts based on repository URL, optional chart name, and optional origin, using the provided freight requests and references within the project context.

func CommitFrom

func CommitFrom(
	ctx context.Context,
	c client.Client,
	project string,
	freightReqs []kargoapi.FreightRequest,
	freightRefs []kargoapi.FreightReference,
) expr.Option

CommitFrom returns an expr.Option that provides a `commitFrom()` function for use in expressions.

The commitFrom function finds Git commits based on repository URL and optional origin, using the provided freight requests and references within the project context.

func FreightOperations

func FreightOperations(
	ctx context.Context,
	c client.Client,
	project string,
	freightRequests []kargoapi.FreightRequest,
	freightRefs []kargoapi.FreightReference,
) []expr.Option

FreightOperations returns a slice of expr.Option containing functions for Freight operations.

It provides `warehouse()`, `commitFrom()`, `imageFrom()`, and `chartFrom()` functions that can be used within expressions. The functions operate within the context of a given project with the provided freight requests and references.

func ImageFrom

func ImageFrom(
	ctx context.Context,
	c client.Client,
	project string,
	freightReqs []kargoapi.FreightRequest,
	freightRefs []kargoapi.FreightReference,
) expr.Option

ImageFrom returns an expr.Option that provides an `imageFrom()` function for use in expressions.

The imageFrom function finds container images based on repository URL and optional origin, using the provided freight requests and references within the project context.

func Warehouse

func Warehouse() expr.Option

Warehouse returns an expr.Option that provides a `warehouse()` function for use in expressions.

The warehouse function creates a v1alpha1.FreightOrigin of kind v1alpha1.Warehouse with the specified name.

Types

This section is empty.

Jump to

Keyboard shortcuts

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