package
0.0.0-20240617125109-2c9c3a52d85a
Repository: https://github.com/shipwright-io/triggers.git
Documentation: pkg.go.dev

# Functions

AppendIntoTriggeredBuildSliceAsAnnotation appends the build names with the objectRef into the informed triggered-builds slice, the payload returned is marshalled JSON which can emit errors.
AppendIssuedBuildRunsLabel update or add the label to document the BuildRuns issued for the PipelineRun instance informed.
CustomRunEventFilterPredicate inspects the object expecting a Tekton's CustomRun, filtering out when is not yet started, or has already being processed by the custom-tasks controller by inspecting the Status' ExtraFields.
ExtractBuildRunCustomRunOwner inspect the object owners for Tekton CustomRun and returns it, otherwise nil.
NewExtraFields instantiates a ExtraFields with informed BuildRun.
ParsePipelineRunStatus parte the informed object status to extract its status.
No description provided by the author
No description provided by the author
PipelineRunAppendTriggeredBuildsAnnotation set or update the triggered-builds annotation.
PipelineRunEventFilterPredicate predicate filter for the basic inspections in the object, filtering only what needs to go through reconciliation.
PipelineRunExtractTriggeredBuildsSlice extracts the triggered-builds annotation and returns a valid slice of the type.
PipelineRunGetAnnotations extract the annotations, return an empty map otherwise.
PipelineRunGetLabels extract labels from informed object, returns an empty map when `nil` labels.
PipelineRunToObjectRef transforms the informed PipelineRun instance to a ObjectRef.
TektonCustomRunParamsToShipwrightParamValues transforms the informed Tekton Run params into Shipwright ParamValues slice.
TriggereBuildsContainsObjectRef asserts if the slice contains the informed entry.
UnmarshalIntoTriggeredAnnotationSlice executes the un-marshalling of the informed string payload into a slice of TriggeredBuild type.

# Constants

Prefix prefix used in all annotations.

# Variables

BuildRunsCreated annotates the PipelineRun with the BuildRuns created.
OwnedByTektonRun annotates the BuildRun as owned by Tekton CustomRun.
OwnedByTektonPipelineRun lables the BuildRun as owned by Tekton PipelineRun.
OwnedByTektonRun annotates the BuildRun as owned by Tekton Run.
TektonPipelineRunName annotates PipelineRuns with its current name, avoid object reprocessing.
TektonPipelineRunTriggeredBuilds contains references for all Builds triggered, JSON formatted.

# Structs

ExtraFields carry on meta-information linking Tekton Run with Shipwright Build.
TriggeredBuild represents previously triggered builds by storing together the original build name and it's objectRef.