refactor: Split up code for readability and add docs

This commit is contained in:
Vincent Ambo 2017-03-16 14:06:21 +01:00
parent 1c2d087ec4
commit fa43472a5d
4 changed files with 242 additions and 159 deletions

12
const.go Normal file
View file

@ -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"