ingestion_processors

package
v0.0.0-...-34cbb95 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: BSD-3-Clause Imports: 43 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// SQLPrimaryBranch indicates that the primary branch ingester use the SQL backend.
	SQLPrimaryBranch = "sql_primary"
)
View Source
const (
	SQLSecondaryBranch = "sql_secondary"
)

Variables

This section is empty.

Functions

func PrimaryBranchSQL

func PrimaryBranchSQL(src ingestion.Source, configParams map[string]string, db *pgxpool.Pool) *sqlPrimaryIngester

PrimaryBranchSQL creates a Processor that writes to the SQL backend and returns it. It panics if configuration is invalid.

func TryjobSQL

func TryjobSQL(ctx context.Context, src ingestion.Source, configParams map[string]string, client *http.Client, db *pgxpool.Pool) (ingestion.Processor, error)

TryjobSQL returns an ingestion.Processor which is modular and can support different CodeReviewSystems (e.g. "Gerrit", "GitHub") and different ContinuousIntegrationSystems (e.g. "BuildBucket", "CirrusCI"). This particular implementation stores the data in SQL.

Types

type LookupSystem

type LookupSystem interface {
	// Lookup returns the given CRS system, CL ID, PS Order or an error if it could not lookup
	// the CL information.
	Lookup(ctx context.Context, tjID string) (string, string, int, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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