Help us shape the future of Go! Take the 2026 Go Developer Survey

dispatcher

package
v0.6.4 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilterJobs added in v0.3.0

func FilterJobs(cand []cicdv1.Job, evType git.EventType, ref string, when *cicdv1.JobWhen) []cicdv1.Job

FilterJobs filters job depending on the events, and ref

func GeneratePostSubmit added in v0.2.0

func GeneratePostSubmit(push *git.Push, repo *git.Repository, sender *git.User, config *cicdv1.IntegrationConfig) *cicdv1.IntegrationJob

GeneratePostSubmit generates IntegrationJob for push event

func GeneratePreSubmit added in v0.2.0

func GeneratePreSubmit(prs []git.PullRequest, repo *git.Repository, sender *git.User, config *cicdv1.IntegrationConfig) *cicdv1.IntegrationJob

GeneratePreSubmit generates IntegrationJob for pull request event

Types

type Dispatcher

type Dispatcher struct {
	Client client.Client
}

Dispatcher dispatches IntegrationJob when webhook is called A kind of 'plugin' for webhook handler

func (Dispatcher) Handle

func (d Dispatcher) Handle(webhook *git.Webhook, config *cicdv1.IntegrationConfig) error

Handle handles pull-request and push events

func (*Dispatcher) Name added in v0.4.2

func (d *Dispatcher) Name() string

Name returns a name of dispatcher plugin

Jump to

Keyboard shortcuts

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