[cas] Add UploadOptions (#314)

Add UploadOptions which is optional configuration for Upload() func.
Move PreserveSymlinks and AllowDanglingSymlinks there. This way the
same Client can be reused with different options, i.e. the callsite
can reuse caches.

This slightly simplifies tests too.

In the next CL, predicate will be added to UploadOptions.
3 files changed
tree: b2399eb948f9d7d1aa9551907bbaa33db3784377
  1. .bazelci/
  2. .githooks/
  3. external/
  4. go/
  5. .gitignore
  6. AUTHORS
  7. BUILD.bazel
  8. check-gofmt.sh
  9. CONTRIBUTING.md
  10. CONTRIBUTORS
  11. go.mod
  12. go.sum
  13. LICENSE
  14. README.md
  15. remote-apis-sdks-deps.bzl
  16. setup-githooks.sh
  17. WORKSPACE
README.md

Remote Execution API SDKs

CI status: Build Status

PkgGoDev

This repository contains SDKs for the Remote Execution API.

See each language subdirectory's README.md for more specific instructions on using the SDK for that language.