From 0b6b2f9c5fc20f467de73d0908ce0fa0b5665a66 Mon Sep 17 00:00:00 2001 From: Stephen J Day Date: Thu, 19 Feb 2015 16:47:13 -0800 Subject: [PATCH] Specify manifest schema version 1 media type Signed-off-by: Stephen J Day --- manifest/manifest.go | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/manifest/manifest.go b/manifest/manifest.go index 8ea4d14da..666b6b36b 100644 --- a/manifest/manifest.go +++ b/manifest/manifest.go @@ -7,6 +7,16 @@ import ( "github.com/docker/libtrust" ) +// TODO(stevvooe): When we rev the manifest format, the contents of this +// package should me moved to manifest/v1. + +const ( + // ManifestMediaType specifies the mediaType for the current version. Note + // that for schema version 1, the the media is optionally + // "application/json". + ManifestMediaType = "application/vnd.docker.distribution.manifest.v1+json" +) + // Versioned provides a struct with just the manifest schemaVersion. Incoming // content with unknown schema version can be decoded against this struct to // check the version.