Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ The cli tools the build uses, [`wasm-tools`](https://github.com/bytecodealliance
### Components

- [`client`](./components/client/)
- [`media-types`](./components/media-types/)

## Community

Expand Down
3 changes: 3 additions & 0 deletions components/media-types/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# `media-types`

Common OCI related media types.
5 changes: 5 additions & 0 deletions components/media-types/wit/media-types.constants.wit
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
package componentized:oci-component;

world media-types {
export componentized:oci/media-types@0.1.0-dev;
}
12 changes: 12 additions & 0 deletions components/media-types/wkg.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# This file is automatically generated.
# It is not intended for manual editing.
version = 1

[[packages]]
name = "wasi:clocks"
registry = "wasi.dev"

[[packages.versions]]
requirement = "=0.3.0"
version = "0.3.0"
digest = "sha256:59e1f4079e64ada450e19ffc9d08854c904e356ed8cc1fda36ff4fe150264db2"
2 changes: 2 additions & 0 deletions components/media-types/wkg.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[overrides]
"componentized:oci" = { path = "../../wit" }
58 changes: 58 additions & 0 deletions wit/media-types.wit
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
/// Common OCI related media types
@since(version = 0.1.0-dev)
interface media-types {
/// Content Descriptor
/// https://specs.opencontainers.org/image-spec/media-types/#oci-image-media-types
/// @value "application/vnd.oci.descriptor.v1+json"
application-vnd-oci-descriptor-v1-json: func() -> string;

/// OCI Layout
/// https://specs.opencontainers.org/image-spec/media-types/#oci-image-media-types
/// @value "application/vnd.oci.layout.header.v1+json"
application-vnd-oci-layout-header-v1-json: func() -> string;

/// Image Index
/// https://specs.opencontainers.org/image-spec/media-types/#oci-image-media-types
/// @value "application/vnd.oci.image.index.v1+json"
application-vnd-oci-image-index-v1-json: func() -> string;

/// Image manifest
/// https://specs.opencontainers.org/image-spec/media-types/#oci-image-media-types
/// @value "application/vnd.oci.image.manifest.v1+json"
application-vnd-oci-image-manifest-v1-json: func() -> string;

/// Image config
/// https://specs.opencontainers.org/image-spec/media-types/#oci-image-media-types
/// @value "application/vnd.oci.image.config.v1+json"
application-vnd-oci-image-config-v1-json: func() -> string;

/// "Layer", as a tar archive
/// https://specs.opencontainers.org/image-spec/media-types/#oci-image-media-types
/// @value "application/vnd.oci.image.layer.v1.tar"
application-vnd-oci-image-layer-v1-tar: func() -> string;

/// "Layer", as a tar archive compressed with gzip
/// https://specs.opencontainers.org/image-spec/media-types/#oci-image-media-types
/// @value "application/vnd.oci.image.layer.v1.tar+gzip"
application-vnd-oci-image-layer-v1-tar-gzip: func() -> string;

/// "Layer", as a tar archive compressed with zstd
/// https://specs.opencontainers.org/image-spec/media-types/#oci-image-media-types
/// @value "application/vnd.oci.image.layer.v1.tar+zstd"
application-vnd-oci-image-layer-v1-tar-zstd: func() -> string;

/// Empty for unused descriptors
/// https://specs.opencontainers.org/image-spec/media-types/#oci-image-media-types
/// @value "application/vnd.oci.empty.v1+json"
application-vnd-oci-empty-v1-json: func() -> string;

/// WASM config
/// https://tag-runtime.cncf.io/wgs/wasm/deliverables/wasm-oci-artifact/#configmediatype-applicationvndwasmconfigv0json
/// @value "application/vnd.wasm.config.v0+json"
application-vnd-wasm-config-v0-json: func() -> string;

/// WASM
/// https://www.iana.org/assignments/media-types/application/wasm
/// @value "application/wasm"
application-wasm: func() -> string;
}
Loading