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
10 changes: 10 additions & 0 deletions src/main/java/land/oras/utils/Const.java
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,16 @@ private Const() {
*/
public static final String DEFAULT_MANIFEST_MEDIA_TYPE = "application/vnd.oci.image.manifest.v1+json";

/**
* Media type for config of running container
*/
public static final String CONFIG_RUNNING_CONTAINER_MEDIA_TYPE = "application/vnd.oci.image.config.v1+json";

/**
* Media type for config of running docker
*/
public static final String CONFIG_RUNNING_DOCKER_MEDIA_TYPE = "application/vnd.docker.container.image.v1+json";

/**
* The default accept type for the manifest
*/
Expand Down
2 changes: 2 additions & 0 deletions src/test/java/land/oras/utils/ConstTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,7 @@ void shouldValidateAnnotations() {
assertEquals("org.opencontainers.image.revision", Const.ANNOTATION_REVISION);
assertEquals("org.opencontainers.image.created", Const.ANNOTATION_CREATED);
assertEquals("org.opencontainers.image.ref.name", Const.ANNOTATION_REF);
assertEquals("application/vnd.oci.image.config.v1+json", Const.CONFIG_RUNNING_CONTAINER_MEDIA_TYPE);
assertEquals("application/vnd.docker.container.image.v1+json", Const.CONFIG_RUNNING_DOCKER_MEDIA_TYPE);
}
}
Loading