lib

package
v0.0.0-...-ddee7fb Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2021 License: Apache-2.0 Imports: 29 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

	// NewRBEClient creates an authorised RBE Client.
	NewRBEClient(ctx context.Context, addr string, 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
y or Y : Canonical URL