containers / ocidir-rs

Low level Rust library for working with OCI (opencontainers) directories
Apache License 2.0
4 stars 3 forks source link

allow non-gzip layers #23

Closed tofay closed 31 minutes ago

tofay commented 3 hours ago

I'm exploring using zstd layers in rpmoci: to do that I'd like to create a Layer with a different media type and then use OciDir::push_layer

ariel-miculas commented 3 hours ago

I'm wondering whether we should use a Descriptor instead of a Blob and MediaType in the Layer struct.

tofay commented 1 hour ago

I'm wondering whether we should use a Descriptor instead of a Blob and MediaType in the Layer struct.

Makes sense. I'm also wondering why the Layer fields are public at all.

cgwalters commented 34 minutes ago

Makes sense. I'm also wondering why the Layer fields are public at all.

Versus having getters? I'm in favor, though let's just start a list of things to change in the next server bump...I don't have a big appetite for another semver just for that.