Documentation ¶
Index ¶
Constants ¶
View Source
const ( MediaTypeDockerV21Manifest = "application/vnd.docker.distribution.manifest.v1+json" MediaTypeDockerV21SignedManifest = "application/vnd.docker.distribution.manifest.v1+prettyjws" MediaTypeDockerV21ManifestLayer = "application/vnd.docker.container.image.rootfs.diff+x-gtar" MediaTypeDockerV22Manifest = "application/vnd.docker.distribution.manifest.v2+json" MediaTypeDockerV22ManifestList = "application/vnd.docker.distribution.manifest.list.v2+json" MediaTypeDockerV22Config = "application/vnd.docker.container.image.v1+json" MediaTypeDockerV22RootFS = "application/vnd.docker.image.rootfs.diff.tar.gzip" MediaTypeOCIManifest = "application/vnd.oci.image.manifest.v1+json" MediaTypeOCIManifestList = "application/vnd.oci.image.manifest.list.v1+json" MediaTypeOCIConfig = "application/vnd.oci.image.serialization.config.v1+json" MediaTypeOCIRootFS = "application/vnd.oci.image.serialization.rootfs.tar.gzip" MediaTypeOCICombined = "application/vnd.oci.image.serialization.combined.v1+json" )
Variables ¶
Functions ¶
This section is empty.
Types ¶
type ImageConfig ¶
type ImageConfig struct { Created string `json:"created"` Author string `json:"author"` Architecture string `json:"architecture"` OS string `json:"os"` Config *ImageConfigConfig `json:"config"` RootFS *ImageConfigRootFS `json:"rootfs"` History []*ImageConfigHistory `json:"history"` }
func (*ImageConfig) PrettyString ¶
func (ic *ImageConfig) PrettyString() string
func (*ImageConfig) String ¶
func (ic *ImageConfig) String() string
type ImageConfigConfig ¶
type ImageConfigConfig struct { User string `json:"User"` Memory int `json:"Memory"` MemorySwap int `json:"MemorySwap"` ExposedPorts map[string]struct{} `json:"ExposedPorts"` Env []string `json:"Env"` Entrypoint []string `json:"Entrypoint"` Cmd []string `json:"Cmd"` Volumes map[string]struct{} `json:"Volumes"` WorkingDir string `json:"WorkingDir"` }
type ImageConfigHistory ¶
type ImageConfigRootFS ¶
type ImageManifest ¶
type ImageManifest struct { SchemaVersion int `json:"schemaVersion"` MediaType string `json:"mediaType"` Config *ImageManifestDigest `json:"config"` Layers []*ImageManifestDigest `json:"layers"` Annotations map[string]string `json:"annotations"` }
func (*ImageManifest) PrettyString ¶
func (im *ImageManifest) PrettyString() string
func (*ImageManifest) String ¶
func (im *ImageManifest) String() string
func (*ImageManifest) Validate ¶
func (im *ImageManifest) Validate() error
type ImageManifestDigest ¶
Click to show internal directories.
Click to hide internal directories.