resultstore

package
v0.0.166 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Overview

resultstore fetches and process results from ResultStore.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Connect

func Connect(ctx context.Context, serviceAccountPath string) (*grpc.ClientConn, error)

Connect returns a secure gRPC connection.

Authenticates as the service account if specified otherwise the default user.

func ResultStoreColumnReader

func ResultStoreColumnReader(client *DownloadClient, reprocess time.Duration) updater.ColumnReader

ResultStoreColumnReader fetches results since last update from ResultStore and translates them into columns.

func Updater

func Updater(resultStoreClient *DownloadClient, gcsClient gcs.Client, groupTimeout time.Duration, write bool) updater.GroupUpdater

Updater returns a ResultStore-based GroupUpdater, which knows how to process result data stored in ResultStore.

Types

type DownloadClient

type DownloadClient struct {
	// contains filtered or unexported fields
}

DownloadClient provides a client to download ResultStore results from.

func NewClient

func NewClient(conn *grpc.ClientConn) *DownloadClient

NewClient uses the specified gRPC connection to connect to ResultStore.

func (*DownloadClient) FetchInvocation

func (c *DownloadClient) FetchInvocation(ctx context.Context, log logrus.FieldLogger, invocationID string) (*fetchResult, error)

FetchInvocation returns all details for a given invocation.

func (*DownloadClient) Search

func (c *DownloadClient) Search(ctx context.Context, log logrus.FieldLogger, query, projectID string, fields ...string) ([]string, error)

Search finds all the invocations that satisfies the query condition within a project.

type TestResultStatus added in v0.0.166

type TestResultStatus int64

Jump to

Keyboard shortcuts

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