Documentation ¶
Index ¶
- func BuildNameForConfigVersion(name string, version int) string
- func FilterBuilds(builds []buildv1.Build, predicate PredicateFunc) []buildv1.Build
- type BuildPtrSliceByCreationTimestamp
- type BuildPtrSliceByCreationTimestampInternal
- type BuildSliceByCreationTimestamp
- type BuildSliceByCreationTimestampInternal
- type PredicateFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildNameForConfigVersion ¶
BuildNameForConfigVersion returns the name of the version-th build for the config that has the provided name.
func FilterBuilds ¶
func FilterBuilds(builds []buildv1.Build, predicate PredicateFunc) []buildv1.Build
FilterBuilds returns array of builds that satisfies predicate function.
Types ¶
type BuildPtrSliceByCreationTimestamp ¶
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 BuildPtrSliceByCreationTimestampInternal ¶
BuildPtrSliceByCreationTimestampInternal implements sort.Interface for []*Build based on the CreationTimestamp field.
func (BuildPtrSliceByCreationTimestampInternal) Len ¶
func (b BuildPtrSliceByCreationTimestampInternal) Len() int
func (BuildPtrSliceByCreationTimestampInternal) Less ¶
func (b BuildPtrSliceByCreationTimestampInternal) Less(i, j int) bool
func (BuildPtrSliceByCreationTimestampInternal) Swap ¶
func (b BuildPtrSliceByCreationTimestampInternal) Swap(i, j int)
type BuildSliceByCreationTimestamp ¶
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 BuildSliceByCreationTimestampInternal ¶
BuildSliceByCreationTimestampInternal implements sort.Interface for []Build based on the CreationTimestamp field.
func (BuildSliceByCreationTimestampInternal) Len ¶
func (b BuildSliceByCreationTimestampInternal) Len() int
func (BuildSliceByCreationTimestampInternal) Less ¶
func (b BuildSliceByCreationTimestampInternal) Less(i, j int) bool
func (BuildSliceByCreationTimestampInternal) Swap ¶
func (b BuildSliceByCreationTimestampInternal) 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.
func ByBuildConfigPredicate ¶
func ByBuildConfigPredicate(labelValue string) PredicateFunc
ByBuildConfigPredicate matches all builds that have build config annotation or label with specified value.