bqsuites

package
v0.0.0-...-9febfc8 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Overview

Package bqsuites provides a common interface for publishing Suites and SuiteSets to BigQuery.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PublishSuite

func PublishSuite(ctx context.Context, inserter *bigquery.Inserter, suite *PublishInfo) error

PublishSuite publishes a suite to BigQuery using the provided inserter.

func PublishSuiteClosures

func PublishSuiteClosures(ctx context.Context, inserter *bigquery.Inserter, closures []*ClosurePublishInfo) error

PublishSuiteClosures publishes a list of SuiteClosures to BigQuery using the provided inserter, these are used for quicker lookups of relation info between suites and suite sets.

Types

type BuildInfo

type BuildInfo struct {
	BuildTarget   string
	CrosMilestone string
	CrosVersion   string
}

BuildInfo holds the build and version info that is associated with published Suites/SuiteSets

type ClosurePublishInfo

type ClosurePublishInfo struct {
	Closure *suite.SuiteClosure
	Build   BuildInfo
}

func (*ClosurePublishInfo) Save

func (p *ClosurePublishInfo) Save() (map[string]bigquery.Value, string, error)

Save implements the ValueSaver interface so that write operations can write from a ClosurePublishInfo struct to the database.

type PublishInfo

type PublishInfo struct {
	Suite suite.CentralizedSuite
	Build BuildInfo
}

PublishInfo is the information needed to publish a Suite or SuiteSet to BigQuery.

func (*PublishInfo) Save

func (p *PublishInfo) Save() (map[string]bigquery.Value, string, error)

Save implements the ValueSaver interface so that write operations can write from a PublishInfo struct to the database.

Jump to

Keyboard shortcuts

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