Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterBuilds ¶
func FilterBuilds(builds []buildinternalapi.Build, predicate PredicateFunc) []buildinternalapi.Build
FilterBuilds returns array of builds that satisfies predicate function.
Types ¶
type BuildPtrSliceByCreationTimestamp ¶
type BuildPtrSliceByCreationTimestamp []*buildinternalapi.Build
BuildPtrSliceByCreationTimestamp implements sort.Interface for []*Build based on the CreationTimestamp field.
func (BuildPtrSliceByCreationTimestamp) Len ¶
func (b BuildPtrSliceByCreationTimestamp) Len() int
func (BuildPtrSliceByCreationTimestamp) Less ¶
func (b BuildPtrSliceByCreationTimestamp) Less(i, j int) bool
func (BuildPtrSliceByCreationTimestamp) Swap ¶
func (b BuildPtrSliceByCreationTimestamp) Swap(i, j int)
type BuildSliceByCreationTimestamp ¶
type BuildSliceByCreationTimestamp []buildinternalapi.Build
BuildSliceByCreationTimestamp implements sort.Interface for []Build based on the CreationTimestamp field.
func (BuildSliceByCreationTimestamp) Len ¶
func (b BuildSliceByCreationTimestamp) Len() int
func (BuildSliceByCreationTimestamp) Less ¶
func (b BuildSliceByCreationTimestamp) Less(i, j int) bool
func (BuildSliceByCreationTimestamp) Swap ¶
func (b BuildSliceByCreationTimestamp) Swap(i, j int)
type PredicateFunc ¶
type PredicateFunc func(interface{}) bool
PredicateFunc is testing an argument and decides does it meet some criteria or not. It can be used for filtering elements based on some conditions.
func ByBuildConfigPredicate ¶
func ByBuildConfigPredicate(labelValue string) PredicateFunc
ByBuildConfigPredicate matches all builds that have build config annotation or label with specified value.
Click to show internal directories.
Click to hide internal directories.