build

package
v4.2.0-alpha.0+incompa... Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrTriggerIsNotAWebHook = errors.New("the specified trigger is not a webhook")

Functions

func BuildNameForConfigVersion

func BuildNameForConfigVersion(name string, version int) string

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.

func GetInputReference

func GetInputReference(strategy buildv1.BuildStrategy) *corev1.ObjectReference

GetInputReference returns the From ObjectReference associated with the BuildStrategy.

func IsBuildComplete

func IsBuildComplete(build *buildv1.Build) bool

IsBuildComplete returns whether the provided build is complete or not

func IsTerminalPhase

func IsTerminalPhase(phase buildv1.BuildPhase) bool

IsTerminalPhase returns true if the provided phase is terminal

func StrategyType

func StrategyType(strategy buildv1.BuildStrategy) string

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 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 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.

type WebHookURLInterface

type WebHookURLInterface interface {
	WebHookURL(name string, trigger *buildv1.BuildTriggerPolicy) (*url.URL, error)
}

func NewWebhookURLClient

func NewWebhookURLClient(c rest.Interface, ns string) WebHookURLInterface

Directories

Path Synopsis
client
v1

Jump to

Keyboard shortcuts

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