commit | b2689fabc306d2cd20356f30b7f99eec445d9212 | [log] [tgz] |
---|---|---|
author | nodirg <56001730+nodirg@users.noreply.github.com> | Wed Jun 16 11:48:35 2021 -0700 |
committer | GitHub <noreply@github.com> | Wed Jun 16 11:48:35 2021 -0700 |
tree | f47c59027beb8430502b115ccb662a76247ebcaf | |
parent | 05222e7e8939959878a5798e51cf52e911feafaf [diff] |
[cas] Refactor Digest() (#363) * [cas] Refactor Digest() UploadResult.Digest(PathSpec) semantics turned out to be complicated. Remove it, rename PathSpec back to UploadInput and add UploadInput.Digest(relPath string). The latter is easy to use, e.g. the digest for UploadInput.Path is just UploadInput.Digest("."). Since UploadInputs are sent to the client over the channel, the caller might want to produce them in different goroutines, where each goroutine might want to read the computed digest back. Since those goroutines don't necessarily know when Upload() call returns, add UploadInput.DigestComputed() function that returns a channel which is closed when the digest for the UploadInput is computed. This means Upload() call can be long-lived and multiple goroutines can upload files independently. Add more tests.
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.