Documentation ¶
Overview ¶
Package resultstore fetches and process results from ResultStore.
Package resultstore fetches and process results from ResultStore.
Index ¶
- func ColumnReader(client *DownloadClient, reprocess time.Duration) updater.ColumnReader
- func Connect(ctx context.Context, serviceAccountPath string) (*grpc.ClientConn, error)
- func Updater(resultStoreClient *DownloadClient, gcsClient gcs.Client, ...) updater.GroupUpdater
- type DownloadClient
- type FetchResult
- type TestResultStatus
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 ¶
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.