Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: decouple cas-client file upload #43

Merged
merged 3 commits into from
Mar 20, 2023

Conversation

migmartri
Copy link
Member

The CAS client will be used by the control-plane too and the upload input in such case is an io.Reader not a file.

This patch updates the Uploader interface and implementation accordingly. It also keeps the UploadFile method encapsulated in the casclient package since it's being used by two callers, the CLI action package and the attestation materials package.

Refs #2

Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
@migmartri migmartri merged commit 948ae54 into chainloop-dev:main Mar 20, 2023
@migmartri migmartri deleted the decouple-io-reader branch March 20, 2023 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant