internal

package
v0.0.0-...-7bf56e6 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertUTC

func AssertUTC(t time.Time)

AssertUTC panics if t is not UTC.

func CommonPostlude

func CommonPostlude(ctx context.Context, methodName string, rsp proto.Message, err error) error

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 Main

func Main(init func(srv *server.Server) error)

Main registers all dependencies and runs a service.

func MainWithModules

func MainWithModules(modules []module.Module, init func(srv *server.Server) error)

MainWithModules is like Main, but accepts additional modules to register.

func MustGetContextHTTPClient

func MustGetContextHTTPClient(ctx context.Context) *http.Client

MustGetContextHTTPClient retrieves the current http.client from the context.

func WithSelfTransport

func WithSelfTransport(ctx context.Context) (context.Context, error)

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.

func WithTestHTTPClient

func WithTestHTTPClient(ctx context.Context, client *http.Client) context.Context

WithTestHTTPClient sets the supplied http client in the context for testing.

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.

Jump to

Keyboard shortcuts

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