v0.0.0-...-51f9457 Latest Latest

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

Go to latest
Published: Jul 9, 2021 License: Apache-2.0 Imports: 14 Imported by: 0



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



This section is empty.


This section is empty.


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, 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, 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( remove this.

func Options

func Options(creds credentials.PerRPCCredentials) []client.Opt

Options returns CAS client options.


type Flags

type Flags struct {
	Instance  string
	UseNewLib bool // TODO( remove after migrating to RBE's cas package.

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.

Jump to

Keyboard shortcuts

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