sources

package
v0.14.4 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2025 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Overview

Copyright The Shipwright Contributors

SPDX-License-Identifier: Apache-2.0

Index

Constants

View Source
const (
	PrefixParamsResultsVolumes = "shp"
)
View Source
const WaiterContainerName = "source-local"

WaiterContainerName name given to the container watier container.

Variables

This section is empty.

Functions

func AppendBundleResult added in v0.6.0

func AppendBundleResult(buildRun *build.BuildRun, name string, results []pipelineapi.TaskRunResult)

AppendBundleResult append bundle source result to build run

func AppendBundleStep added in v0.6.0

func AppendBundleStep(cfg *config.Config, taskSpec *pipelineapi.TaskSpec, oci *build.OCIArtifact, name string)

AppendBundleStep appends the bundle step to the TaskSpec

func AppendGitResult added in v0.6.0

func AppendGitResult(buildRun *buildv1beta1.BuildRun, name string, results []pipelineapi.TaskRunResult)

AppendGitResult append git source result to build run

func AppendGitStep

func AppendGitStep(
	cfg *config.Config,
	taskSpec *pipelineapi.TaskSpec,
	source buildv1beta1.Git,
	name string,
)

AppendGitStep appends the Git step and results and volume if needed to the TaskSpec

func AppendLocalCopyStep added in v0.8.0

func AppendLocalCopyStep(cfg *config.Config, taskSpec *pipelineapi.TaskSpec, timeout *metav1.Duration)

AppendLocalCopyStep defines and append a new task based on the waiter container template, passed by the configuration instance.

func AppendSecretVolume

func AppendSecretVolume(
	taskSpec *pipelineapi.TaskSpec,
	secretName string,
)

AppendSecretVolume checks if a volume for a secret already exists, if not it appends it to the TaskSpec

func FindResultValue added in v0.13.0

func FindResultValue(results []pipelineapi.TaskRunResult, sourceName, resultName string) string

func SanitizeVolumeNameForSecretName

func SanitizeVolumeNameForSecretName(secretName string) string

SanitizeVolumeNameForSecretName creates the name of a Volume for a Secret

func TaskResultName added in v0.13.0

func TaskResultName(sourceName, resultName string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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