backends

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

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

Go to latest
Published: Nov 25, 2024 License: BSD-3-Clause Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DialCloudWorkflowsExecutionService

func DialCloudWorkflowsExecutionService(ctx context.Context) (*workflowexecutions.Service, error)

DialCloudWorkflowsExecutionService returns a google cloud workflows 'Executions' service client.

func DialRBECAS

func DialRBECAS(ctx context.Context, dialOpts ...grpc.DialOption) (map[string]*rbeclient.Client, error)

DialRBECAS will attempt to dial a set of RBE-CAS service backends for CABE. We create one Client for each RBE-CAS instance we need to connect to, each of which is Dialed separately. Returns either a map of CAS instance name to Client, or an error if any of the Clients could not be Dialed.

func FetchBenchmarkJSON

func FetchBenchmarkJSON(ctx context.Context, c *rbeclient.Client, rootDigest string) (map[string]perfresults.PerfResults, error)

FetchBenchmarkJSON fetches the benchmark results json files from the CAS root at rootDigest. It returns a map of benchmark name to perfresults.PerfResults parsed from the json bytes.

func FetchBenchmarkJSONRaw

func FetchBenchmarkJSONRaw(ctx context.Context, c *rbeclient.Client, rootDigest string) (map[string][]byte, error)

FetchBenchmarkJSONRaw fetches the benchmark results json files from the CAS root at rootDigest. It returns a map of benchmark name to raw json bytes.

Types

type CASResultReader

type CASResultReader func(context.Context, string, string) (map[string]perfresults.PerfResults, error)

CASResultReader is an interface for getting PerfResults for CAS instance and root digest values.

type SwarmingTaskReader

type SwarmingTaskReader func(context.Context, string) ([]*apipb.TaskRequestMetadataResponse, error)

SwarmingTaskReader is an interface for getting Swarming task metadata associated with a pinpoint job.

Jump to

Keyboard shortcuts

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