resultstore

package
v0.0.173 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

Package resultstore fetches and process results from ResultStore.

Package resultstore fetches and process results from ResultStore.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ColumnReader added in v0.0.167

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

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

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 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) ([]string, error)

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

type FetchResult added in v0.0.167

type FetchResult struct {
	Invocation        *resultstore.Invocation
	Actions           []*resultstore.Action
	ConfiguredTargets []*resultstore.ConfiguredTarget
	Targets           []*resultstore.Target
}

FetchResult provides a interface to store Resultstore invocation data.

type TestResultStatus added in v0.0.166

type TestResultStatus int64

TestResultStatus represents the status of a test result.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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