buildapihelpers

package
v3.11.0-0.31.0+incompa... Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterBuilds

func FilterBuilds(builds []buildv1.Build, predicate PredicateFunc) []buildv1.Build

FilterBuilds returns array of builds that satisfies predicate function.

Types

type BuildPtrSliceByCreationTimestamp

type BuildPtrSliceByCreationTimestamp []*buildv1.Build

BuildPtrSliceByCreationTimestamp implements sort.Interface for []*Build based on the CreationTimestamp field.

func (BuildPtrSliceByCreationTimestamp) Len

func (BuildPtrSliceByCreationTimestamp) Less

func (BuildPtrSliceByCreationTimestamp) Swap

type BuildPtrSliceByCreationTimestampInternal

type BuildPtrSliceByCreationTimestampInternal []*buildapi.Build

BuildPtrSliceByCreationTimestampInternal implements sort.Interface for []*Build based on the CreationTimestamp field.

func (BuildPtrSliceByCreationTimestampInternal) Len

func (BuildPtrSliceByCreationTimestampInternal) Less

func (BuildPtrSliceByCreationTimestampInternal) Swap

type BuildSliceByCreationTimestamp

type BuildSliceByCreationTimestamp []buildv1.Build

BuildSliceByCreationTimestamp implements sort.Interface for []Build based on the CreationTimestamp field.

func (BuildSliceByCreationTimestamp) Len

func (BuildSliceByCreationTimestamp) Less

func (b BuildSliceByCreationTimestamp) Less(i, j int) bool

func (BuildSliceByCreationTimestamp) Swap

func (b BuildSliceByCreationTimestamp) Swap(i, j int)

type BuildSliceByCreationTimestampInternal

type BuildSliceByCreationTimestampInternal []buildapi.Build

BuildSliceByCreationTimestampInternal implements sort.Interface for []Build based on the CreationTimestamp field.

func (BuildSliceByCreationTimestampInternal) Len

func (BuildSliceByCreationTimestampInternal) Less

func (BuildSliceByCreationTimestampInternal) Swap

type PredicateFunc

type PredicateFunc func(interface{}) bool

PredicateFunc is testing an argument and decides does it meet some criteria or not.

func ByBuildConfigPredicate

func ByBuildConfigPredicate(labelValue string) PredicateFunc

ByBuildConfigPredicate matches all builds that have build config annotation or label with specified value.

Jump to

Keyboard shortcuts

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