rbeclient

package
v0.0.0-...-343e840 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Overview

Package rbeclient provides the entry point to create a new RBE client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ctx context.Context, clientOpts Opts) (*client.Client, error)

New creates a new RBE client with given options.

Types

type Opts

type Opts struct {
	// Instance is the name of RBE instance.
	Instance string
	// ServiceAddress is the address of remote execution service,
	// e.g. "remotebuildexecution.googleapis.com:443".
	ServiceAddress string
	// ServiceAccountJSON is the path to the Service Account JSON file for auth.
	ServiceAccountJSON string
	// UseApplicationDefault indicates that the default credentials should be used.
	UseApplicationDefault bool
	// CASConcurrency is the maximum number of concurrent upload and download operations.
	CASConcurrency int
	// RPCTimeouts is default RPC timeout.
	RPCTimeouts map[string]time.Duration
}

Opts contains options for creating a new RBE client.

Jump to

Keyboard shortcuts

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