Documentation
¶
Index ¶
- func FilterJobs(cand []cicdv1.Job, evType git.EventType, ref string, when *cicdv1.JobWhen) []cicdv1.Job
- func GeneratePostSubmit(push *git.Push, repo *git.Repository, sender *git.User, ...) *cicdv1.IntegrationJob
- func GeneratePreSubmit(prs []git.PullRequest, repo *git.Repository, sender *git.User, ...) *cicdv1.IntegrationJob
- type Dispatcher
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 ¶
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
Click to show internal directories.
Click to hide internal directories.