Documentation ¶
Index ¶
- func AssertUTC(t time.Time)
- func CommonPostlude(ctx context.Context, methodName string, rsp proto.Message, err error) error
- func Main(init func(srv *server.Server) error)
- func MainWithModules(modules []module.Module, init func(srv *server.Server) error)
- func MustGetContextHTTPClient(ctx context.Context) *http.Client
- func WithSelfTransport(ctx context.Context) (context.Context, error)
- func WithTestHTTPClient(ctx context.Context, client *http.Client) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CommonPostlude ¶
CommonPostlude must be used as a postlude in all ResultDB services.
Extracts a status using appstatus and returns to the requester. If the error is internal or unknown, logs the stack trace.
func MainWithModules ¶
MainWithModules is like Main, but accepts additional modules to register.
func MustGetContextHTTPClient ¶
MustGetContextHTTPClient retrieves the current http.client from the context.
func WithSelfTransport ¶
WithSelfTransport sets an http client in the context using the service's own authroity. WARNING: Use this only when using auth.AsProject is not possible, as using this to authorize RPCs that touch project data leads to "confused deputy" problems.
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
Package artifactcontent can serve artifact content via plain HTTP securely.
|
Package artifactcontent can serve artifact content via plain HTTP securely. |
Package artifacts contains tools for reading and processing artifacts.
|
Package artifacts contains tools for reading and processing artifacts. |
testutil
Package testutil provides utility functions for testing with artifacts package.
|
Package testutil provides utility functions for testing with artifacts package. |
Package baselines captures baseline objects and basic interactions with them.
|
Package baselines captures baseline objects and basic interactions with them. |
testvariants
Package baselinetestvariant provides crud operations for baseline test variants.
|
Package baselinetestvariant provides crud operations for baseline test variants. |
Package checkpoints contains methods for maintaining and using process checkpoints to ensure processes run once only.
|
Package checkpoints contains methods for maintaining and using process checkpoints to ensure processes run once only. |
Package config validates and gives access to ResultDB LUCI config.
|
Package config validates and gives access to ResultDB LUCI config. |
Package cron can runs functions periodically.
|
Package cron can runs functions periodically. |
Package ensureviews ensures BigQuery views are properly created and maintained.
|
Package ensureviews ensures BigQuery views are properly created and maintained. |
Package exportroots contains methods for reading and writing export root records in Spanner.
|
Package exportroots contains methods for reading and writing export root records in Spanner. |
Package gsutil contains utility functions for Google Storage.
|
Package gsutil contains utility functions for Google Storage. |
Package instructionutil contains utility functions for instructions.
|
Package instructionutil contains utility functions for instructions. |
graph
Package graph contains methods to explore reachable invocations.
|
Package graph contains methods to explore reachable invocations. |
Package rpcquota is a wrapper around LUCI quota for ResultDB.
|
Package rpcquota is a wrapper around LUCI quota for ResultDB. |
Package rpcutil contains utility functions for RPC handlers.
|
Package rpcutil contains utility functions for RPC handlers. |
Package runtestverdicts provides methods to query test verdicts within a test run (single invocation excluding included invocation).
|
Package runtestverdicts provides methods to query test verdicts within a test run (single invocation excluding included invocation). |
services
|
|
artifactexporter
Package artifactexporter handles uploading artifacts to BigQuery.
|
Package artifactexporter handles uploading artifacts to BigQuery. |
baselineupdater
Package baselineupdater marks test variants from an invocation as submitted by adding the test variants to the set of tests for its baseline identifier.
|
Package baselineupdater marks test variants from an invocation as submitted by adding the test variants to the set of tests for its baseline identifier. |
deadlineenforcer
Package deadlineenforcer finalizes tasks with overdue deadlines.
|
Package deadlineenforcer finalizes tasks with overdue deadlines. |
experiments
Package experiments provides a place to experiment within ResultDB while being (mostly) isolated from production services.
|
Package experiments provides a place to experiment within ResultDB while being (mostly) isolated from production services. |
exportnotifier
Package exportnotifier is responsible for dispatching "invocation ready for export" notifications, used to trigger low-latency exports from ResultDB.
|
Package exportnotifier is responsible for dispatching "invocation ready for export" notifications, used to trigger low-latency exports from ResultDB. |
globalmetrics
Package globalmetrics reports metrics that are computationally heavy.
|
Package globalmetrics reports metrics that are computationally heavy. |
purger
Package purger deletes expired test results from Spanner.
|
Package purger deletes expired test results from Spanner. |
recorder
Package recorder implements a binary that hosts luci.resultdb.v1.Recorder service.
|
Package recorder implements a binary that hosts luci.resultdb.v1.Recorder service. |
resultdb
Package resultdb provides implementation for luci.resultdb.v1.ResultDB service.
|
Package resultdb provides implementation for luci.resultdb.v1.ResultDB service. |
testmetadataupdator
Package testmetadataupdator implements a task which ingest test metadata from invocations.
|
Package testmetadataupdator implements a task which ingest test metadata from invocations. |
Package span contains utility functions to interact with the underlying Spanner storage.
|
Package span contains utility functions to interact with the underlying Spanner storage. |
Package tasks contains task class definitions for ResultDB.
|
Package tasks contains task class definitions for ResultDB. |
Package testmetadata implements methods to query from TestMetadata spanner table.
|
Package testmetadata implements methods to query from TestMetadata spanner table. |
Package testutil provides utility functions for writing unit tests.
|
Package testutil provides utility functions for writing unit tests. |
insert
Package insert implements functions to insert rows for testing purposes.
|
Package insert implements functions to insert rows for testing purposes. |
Package tracing contains helper for reporting OpenTelemetry tracing spans.
|
Package tracing contains helper for reporting OpenTelemetry tracing spans. |
Click to show internal directories.
Click to hide internal directories.