about summary refs log tree commit diff
path: root/const.go
diff options
context:
space:
mode:
authorVincent Ambo <tazjin@gmail.com>2017-03-16T13·06+0100
committerVincent Ambo <tazjin@gmail.com>2017-03-16T13·06+0100
commitfa43472a5d1cd3ffc83582ab34e61ec4598adb4b (patch)
treecb92ea92425eb9f882096654b18886daf1de5984 /const.go
parent1c2d087ec42cd6acc2967140e0f48b2119a5e51a (diff)
refactor: Split up code for readability and add docs
Diffstat (limited to 'const.go')
-rw-r--r--const.go12
1 files changed, 12 insertions, 0 deletions
diff --git a/const.go b/const.go
new file mode 100644
index 000000000000..173fa9efc390
--- /dev/null
+++ b/const.go
@@ -0,0 +1,12 @@
+package main
+
+// HTTP content types
+
+const ImageConfigMediaType string = "application/vnd.docker.container.image.v1+json"
+const ManifestMediaType string = "application/vnd.docker.distribution.manifest.v2+json"
+const LayerMediaType string = "application/vnd.docker.image.rootfs.diff.tar.gzip"
+
+// HTTP header names
+
+const ContentType string = "Content-Type"
+const DigestHeader string = "Docker-Content-Digest"