refactor: Split up code for readability and add docs
This commit is contained in:
parent
1c2d087ec4
commit
fa43472a5d
4 changed files with 242 additions and 159 deletions
12
const.go
Normal file
12
const.go
Normal 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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue