Documentation ¶
Index ¶
- func ByField(field string, runTimeObj []runtime.Object)
- func GetStatusFromTaskStatusOrFromAsking(ctx context.Context, pr *tektonv1beta1.PipelineRun, run *params.Run) map[string]*tektonv1beta1.PipelineRunTaskRunStatus
- func PipelineRunSortByCompletionTime(items []v1beta1.PipelineRun) []v1beta1.PipelineRun
- func PipelineRunSortByStartTime(prs []v1beta1.PipelineRun)
- func RepositorySortRunStatus(repoStatus []v1alpha1.RepositoryRunStatus) []v1alpha1.RepositoryRunStatus
- func TaskInfos(taskinfos map[string]pacv1alpha1.TaskInfos) []pacv1alpha1.TaskInfos
- func TaskStatusTmpl(pr *tektonv1beta1.PipelineRun, ...) (string, error)
- type RuntimeSort
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetStatusFromTaskStatusOrFromAsking ¶ added in v0.16.0
func GetStatusFromTaskStatusOrFromAsking(ctx context.Context, pr *tektonv1beta1.PipelineRun, run *params.Run) map[string]*tektonv1beta1.PipelineRunTaskRunStatus
GetStatusFromTaskStatusOrFromAsking will return the status of the taskruns, it would use the embedded one if it's available (pre tekton 0.44.0) or try to get it from the child references
func PipelineRunSortByCompletionTime ¶
func PipelineRunSortByCompletionTime(items []v1beta1.PipelineRun) []v1beta1.PipelineRun
func PipelineRunSortByStartTime ¶ added in v0.12.0
func PipelineRunSortByStartTime(prs []v1beta1.PipelineRun)
func RepositorySortRunStatus ¶
func RepositorySortRunStatus(repoStatus []v1alpha1.RepositoryRunStatus) []v1alpha1.RepositoryRunStatus
func TaskInfos ¶ added in v0.14.0
func TaskInfos(taskinfos map[string]pacv1alpha1.TaskInfos) []pacv1alpha1.TaskInfos
func TaskStatusTmpl ¶
func TaskStatusTmpl(pr *tektonv1beta1.PipelineRun, trStatus map[string]*tektonv1beta1.PipelineRunTaskRunStatus, runs *params.Run, config *info.ProviderConfig) (string, error)
TaskStatusTmpl generate a template of all status of a taskruns sorted to a statusTemplate as defined by the git provider
Types ¶
type RuntimeSort ¶ added in v0.14.0
type RuntimeSort struct {
// contains filtered or unexported fields
}
RuntimeSort is an implementation of the golang sort interface that knows how to sort lists of runtime.Object
func NewRuntimeSort ¶ added in v0.14.0
func NewRuntimeSort(field string, objs []runtime.Object) *RuntimeSort
NewRuntimeSort creates a new RuntimeSort struct that implements golang sort interface
func (*RuntimeSort) Len ¶ added in v0.14.0
func (r *RuntimeSort) Len() int
func (*RuntimeSort) Less ¶ added in v0.14.0
func (r *RuntimeSort) Less(i, j int) bool
func (*RuntimeSort) OriginalPosition ¶ added in v0.14.0
func (r *RuntimeSort) OriginalPosition(ix int) int
OriginalPosition returns the starting (original) position of a particular index. e.g. If OriginalPosition(0) returns 5 than the the item currently at position 0 was at position 5 in the original unsorted array.
func (*RuntimeSort) Swap ¶ added in v0.14.0
func (r *RuntimeSort) Swap(i, j int)