buildapihelpers

package
v0.0.0-...-00984ce Latest Latest
Warning

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

Go to latest
Published: Aug 20, 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.

func FilterBuildsInternal

func FilterBuildsInternal(builds []buildinternalapi.Build, predicate PredicateFunc) []buildinternalapi.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. 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.

func ByBuildConfigPredicateInternal

func ByBuildConfigPredicateInternal(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