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

Support of (optional?) size attribute for localBlob access #1142

Open
zkdev opened this issue Nov 26, 2024 · 1 comment
Open

Support of (optional?) size attribute for localBlob access #1142

zkdev opened this issue Nov 26, 2024 · 1 comment
Labels
area/ipcei Important Project of Common European Interest kind/feature new feature, enhancement, improvement, extension

Comments

@zkdev
Copy link
Member

zkdev commented Nov 26, 2024

What would you like to be added:
Add support for (optional?) size attribute for artefact-access of type localBlob.
Other artefact-access types already support size attribute, e.g. ociBlob.
Semantics should stay the same:

size integer: The size of the blob

Why is this needed:
Many specs, such as GNU Tar or OCI Content Descriptor, require size information when processing data.
When processing OCM artefacts via network, streaming is preferred as it prevents OOM-related errors, or expensive IO operations. When combining aforementioned technologies and streaming, it becomes clear that users need a way to know the size of an artefact, before actually transmitting it.

@zkdev zkdev added the kind/feature new feature, enhancement, improvement, extension label Nov 26, 2024
@github-actions github-actions bot added the area/ipcei Important Project of Common European Interest label Nov 26, 2024
@fabianburth
Copy link
Contributor

We had a quick discussion, as a preliminary work around, @zkdev will fetch the manifest of the component descriptor, search for the layer with the hash value of localReference of the respective resource and use the size attribute specified in the layer description.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ipcei Important Project of Common European Interest kind/feature new feature, enhancement, improvement, extension
Projects
Status: 🆕 ToDo
Development

No branches or pull requests

2 participants