crier

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package crier reports finished prowjob status to git providers.

Package crier reports finished prowjob status to git providers.

Index

Constants

View Source
const (
	ResultError   = "ERROR"
	ResultSuccess = "SUCCESS"
)

Variables

This section is empty.

Functions

func New

func New(
	mgr manager.Manager,
	reporter ReportClient,
	numWorkers int,
	enablementChecker func(org, repo string) bool,
) error

New constructs a new instance of the crier reconciler.

Types

type ReportClient

type ReportClient interface {
	// Report reports a Prowjob. The provided logger is already populated with the
	// prowjob name and the reporter name.
	// If a reporter wants to defer reporting, it can return a reconcile.Result with a RequeueAfter
	Report(ctx context.Context, log *logrus.Entry, pj *prowv1.ProwJob) ([]*prowv1.ProwJob, *reconcile.Result, error)
	GetName() string
	// ShouldReport determines if a ProwJob should be reported. The provided logger
	// is already populated with the prowjob name and the reporter name.
	ShouldReport(ctx context.Context, log *logrus.Entry, pj *prowv1.ProwJob) bool
}

Directories

Path Synopsis
reporters
criercommonlib
Package criercommonlib contains shared lib used by reporters
Package criercommonlib contains shared lib used by reporters
gcs
gerrit
Package reporter implements a reporter interface for gerrit
Package reporter implements a reporter interface for gerrit
github
Package reporter implements a reporter interface for github TODO(krzyzacy): move logic from report.go here
Package reporter implements a reporter interface for github TODO(krzyzacy): move logic from report.go here
pubsub
Package reporter contains helpers for publishing statues to Pub statuses in GitHub.
Package reporter contains helpers for publishing statues to Pub statuses in GitHub.

Jump to

Keyboard shortcuts

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