lib

package
Version: v0.0.0-...-51f9457 Latest Latest
Warning

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

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

Documentation

Overview

Package lib is used to implement the parent package main.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CmdArchive

func CmdArchive(authFlags AuthFlags) *subcommands.Command

CmdArchive returns an object for the `archive` subcommand.

func CmdDownload

func CmdDownload(authFlags AuthFlags) *subcommands.Command

CmdDownload returns an object for the `download` subcommand.

Types

type AuthFlags

type AuthFlags interface {
	// Register registers auth flags to the given flag set. e.g. -service-account-json.
	Register(f *flag.FlagSet)

	// Parse parses auth flags.
	Parse() error

	// NewClient creates an authorised RBE-CAS Client.
	NewClient(ctx context.Context, instance string, readOnly bool) (*cas.Client, error)

	// NewClientLegacy creates an authorised RBE Client.
	NewClientLegacy(ctx context.Context, instance string, readOnly bool) (*client.Client, error)
}

AuthFlags is an interface to register auth flags and create RBE Client.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL