casclient

package
v0.0.0-...-d3da680 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2024 License: Apache-2.0 Imports: 18 Imported by: 2

Documentation

Overview

Package casclient provides remote-apis-sdks client with luci integration.

Index

Constants

View Source
const AddrProd = "remotebuildexecution.googleapis.com:443"

AddrProd is the PROD CAS service address.

Variables

This section is empty.

Functions

func ContextWithMetadata

func ContextWithMetadata(ctx context.Context, toolName string) (context.Context, error)

ContextWithMetadata attaches RBE related metadata with tool name to the given context.

func DefaultConfig

func DefaultConfig() cas.ClientConfig

DefaultConfig returns default CAS client configuration.

func New

func New(ctx context.Context, addr string, instance string, opts auth.Options, readOnly bool) (*cas.Client, error)

New returns luci auth configured Client for RBE-CAS.

func NewLegacy

func NewLegacy(ctx context.Context, addr string, instance string, opts auth.Options, readOnly bool) (*client.Client, error)

NewLegacy returns luci auth configured legacy Client for RBE. In general, NewClient is preferred. TODO(crbug.com/1225524): remove this.

func Options

func Options() []client.Opt

Options returns CAS client options.

Types

type Flags

type Flags struct {
	Addr     string
	Instance string
}

Flags contains values parsed from command line arguments for RBE-CAS.

func (*Flags) Init

func (c *Flags) Init(f *flag.FlagSet)

Init initializes flag.FlagSet.

func (*Flags) Parse

func (c *Flags) Parse() error

Parse applies changes specified by command line flags.

Notes

Bugs

  • - encountered timeouts when uploading, so speculatively adjusting this.

  • - encountered timeouts when uploading, so speculatively adjusting this.

Jump to

Keyboard shortcuts

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