Skip to content

chore: decouple cas-client file upload - #43

Merged
migmartri merged 3 commits into
chainloop-dev:mainfrom
migmartri:decouple-io-reader
Mar 20, 2023
Merged

chore: decouple cas-client file upload#43
migmartri merged 3 commits into
chainloop-dev:mainfrom
migmartri:decouple-io-reader

Conversation

@migmartri

Copy link
Copy Markdown
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

Comment thread internal/casclient/casclient.go
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
@migmartri
migmartri force-pushed the decouple-io-reader branch from 0b947cc to e2432d6 Compare March 20, 2023 15:21
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.

1 participant