matcher

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2022 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRepo

func GetRepo(ctx context.Context, cs *params.Run, repoName string) (*apipac.Repository, error)

GetRepo get a repo by name anywhere on a cluster

func IncomingWebhookRule

func IncomingWebhookRule(branch string, incomingWebhooks []apipac.Incoming) *apipac.Incoming

IncomingWebhookRule will match a rule to an incoming rule, currently a rule is a target branch

func MatchEventURLRepo

func MatchEventURLRepo(ctx context.Context, cs *params.Run, event *info.Event, ns string) (*apipac.Repository, error)

Types

type Match

type Match struct {
	PipelineRun *v1beta1.PipelineRun
	Repo        *apipac.Repository
	Config      map[string]string
}

func MatchPipelinerunByAnnotation

func MatchPipelinerunByAnnotation(ctx context.Context, logger *zap.SugaredLogger, pruns []*v1beta1.PipelineRun, cs *params.Run, event *info.Event) ([]Match, error)

type RemoteTasks

type RemoteTasks struct {
	Run *params.Run
}

func (RemoteTasks) GetTaskFromAnnotations

func (rt RemoteTasks) GetTaskFromAnnotations(ctx context.Context, logger *zap.SugaredLogger, providerintf provider.Interface, event *info.Event, annotations map[string]string) ([]*tektonv1beta1.Task, error)

GetTaskFromAnnotations Get task remotely if they are on Annotations

Jump to

Keyboard shortcuts

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