README

Go SDK

Usage

TODO(jsharpe): Write usage instructions.

Development

Update BUILD.bazel files with (with fix to be more aggressive):

bazel run //:gazelle [fix]

Update go.mod files with:

go mod tidy

Format all files with:

gofmt -w go

Check your code for lint/vet warnings (install golint with sudo apt-get install golint):

golint ./...
go vet ./...

Run all tests:

bazel test ...

or

go test ./...
Expand ▾ Collapse ▴

Directories

Path Synopsis
api
cmd
remotetool
Main package for the remotetool binary.
Main package for the remotetool binary.
rexec
Main package for the rexec binary.
Main package for the rexec binary.
pkg
actas
Package actas provides a TokenSource that returns access tokens that impersonate a different service account other than the default app credentials.
Package actas provides a TokenSource that returns access tokens that impersonate a different service account other than the default app credentials.
balancer
Package balancer is a forked version of https://github.com/GoogleCloudPlatform/grpc-gcp-go.
Package balancer is a forked version of https://github.com/GoogleCloudPlatform/grpc-gcp-go.
cache
Package cache implements a cache backend.
Package cache implements a cache backend.
cache/singleflightcache
Package singleflightcache implements a cache that supports single-flight value computation.
Package singleflightcache implements a cache that supports single-flight value computation.
chunker
Package chunker provides a way to chunk an input into uploadable-size byte slices.
Package chunker provides a way to chunk an input into uploadable-size byte slices.
client
Package client contains a high-level remote execution client library.
Package client contains a high-level remote execution client library.
command
Package command defines common types to be used with command execution.
Package command defines common types to be used with command execution.
digest
Package digest contains functions to simplify handling content digests.
Package digest contains functions to simplify handling content digests.
fakes
Package fakes contains configurable test fakes for an RE service.
Package fakes contains configurable test fakes for an RE service.
filemetadata
Package filemetadata contains types of metadata for files, to be used for caching.
Package filemetadata contains types of metadata for files, to be used for caching.
flags
Package flags provides a convenient way to initialize the remote client from flags.
Package flags provides a convenient way to initialize the remote client from flags.
moreflag
Package moreflag contains definitions for some useful flag types, such as maps.
Package moreflag contains definitions for some useful flag types, such as maps.
outerr
Package outerr contains types to record/pass system out-err streams.
Package outerr contains types to record/pass system out-err streams.
portpicker
Package portpicker allows Go programs and tests to receive the best guess of an unused port that may be used for ad hoc purposes.
Package portpicker allows Go programs and tests to receive the best guess of an unused port that may be used for ad hoc purposes.
retry
Package retry implements retry logic helpers, which can be used to wrap operations that can intermittently fail, but can be retried at a higher level.
Package retry implements retry logic helpers, which can be used to wrap operations that can intermittently fail, but can be retried at a higher level.
rexec
Package rexec provides a top-level client for executing remote commands.
Package rexec provides a top-level client for executing remote commands.
tool
Package tool provides implementation of the debugging related operations supported by go/cmd/remotetool package.
Package tool provides implementation of the debugging related operations supported by go/cmd/remotetool package.
uploadinfo
Package uploadinfo provides a way to move metadata and/or actual data on blobs to be uploaded.
Package uploadinfo provides a way to move metadata and/or actual data on blobs to be uploaded.