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 authroised RBE Client.
        	NewClient(ctx context.Context, instance string, readOnly bool) (*client.Client, error)
        }

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