bigquery

package
v0.0.0-...-c224c58 Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bigquery

type Bigquery interface {
	// FetchScorecardData fetches scorecard data from Google Bigquery.
	// The checks are the scorecard that are filetred from the bigquery table.
	FetchScorecardData(repos, checks []string, exclusions map[Key]bool) ([]Scorecard, error)
}

func NewBigquery

func NewBigquery(projectid string) Bigquery

NewBigquery returns the implementaion o

type Key

type Key struct {
	Check, Repoistory string
}

Key is used for ignoring exclude from the results. Example Code-Review,github.com/kubernetes/kubernetes

type Scorecard

type Scorecard struct {
	// Name of the GitHub repository
	Name string `bigquery:"name"`
	// Scorecard check
	Check string `bigquery:"check"`
	// Score
	Score int `bigquery:"score"`
	// Details of the scorecard run.
	Details string `bigquery:"details"`
	// The reason for the score.
	Reason string `bigquery:"reason"`
}

Jump to

Keyboard shortcuts

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