image

package
v0.0.0-...-75d348f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 2, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const ConfigType = "application/vnd.docker.container.image.v1+json"
View Source
const LayerType = "application/vnd.docker.image.rootfs.diff.tar.gzip"
View Source
const ManifestType = "application/vnd.docker.distribution.manifest.v2+json"
View Source
const ManifestVersion = 2

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	MediaType string `json:"mediaType"`
	Size      int64  `json:"size"`
	Digest    string `json:"digest"`
}

type Layer

type Layer struct {
	MediaType string `json:"mediaType"`
	Size      int64  `json:"size"`
	Digest    string `json:"digest"`
}

type Manifest

type Manifest struct {
	SchemaVersion int      `json:"schemaVersion"`
	MediaType     string   `json:"mediaType"`
	Config        *Config  `json:"config"`
	Layers        []*Layer `json:"layers"`
}

func DecodeManifest

func DecodeManifest(b []byte) (*Manifest, error)

func (*Manifest) Digests

func (r *Manifest) Digests() []string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL