add

package
v4.1.0 Latest Latest
Warning

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

Go to latest
Published: May 1, 2019 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddLayerToConfig

func AddLayerToConfig(config *docker10.DockerImageConfig, layer distribution.Descriptor, diffID string)

func AddScratchLayerToConfig

func AddScratchLayerToConfig(config *docker10.DockerImageConfig) distribution.Descriptor

func DigestCopy

func DigestCopy(dst io.ReaderFrom, src io.Reader) (layerDigest, blobDigest digest.Digest, modTime *time.Time, size int64, err error)

DigestCopy reads all of src into dst, where src is a gzipped stream. It will return the sha256 sum of the underlying content (the layerDigest) and the sha256 sum of the tar archive (the blobDigest) or an error. If the gzip layer has a modification time it will be returned. TODO: use configurable digests

func NewEmptyConfig

func NewEmptyConfig() *docker10.DockerImageConfig

Types

This section is empty.

Jump to

Keyboard shortcuts

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