gcs

command
v0.0.0-...-bacb0e4 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: Apache-2.0 Imports: 19 Imported by: 0

README

Regenerating protos

git clone git@github.com:googleapis/googleapis.git
cd googleapis
protoc --go_out=plugins=grpc:.. google/storage/v1/*.proto
cd ..

Example commands

Use grpc API for reading a gcs object through CFE:

go run main.go -bkt=gcs-grpc-team-weiranf -obj=200mb -method=media -calls=50

Use grpc API for reading metadata of a gcs object through CFE:

go run main.go -bkt=gcs-grpc-team-weiranf -obj=200mb -method=metadata -calls=50

Use grpc API for writing a 200mb gcs object through CFE:

go run main.go -bkt=gcs-grpc-team-weiranf -obj=grpc-write-200mb -method=write -size=204800 -calls=50

To use DirectPath, add the arg -dp (VM needs to be dp enabled), for example:

go run main.go -bkt=gcs-grpc-team-weiranf -obj=200mb -calls=50 -dp

To use HTTP JSON API, add the arg -http, for example:

go run main.go -bkt=gcs-grpc-team-weiranf -obj=200mb -method=media -calls=50 -http

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
google.golang.org

Jump to

Keyboard shortcuts

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