Documentation ¶
Index ¶
- func AddLayerToConfig(config *docker10.DockerImageConfig, layer distribution.Descriptor, ...)
- func AddScratchLayerToConfig(config *docker10.DockerImageConfig) distribution.Descriptor
- func DigestCopy(dst io.ReaderFrom, src io.Reader) (layerDigest, blobDigest digest.Digest, modTime *time.Time, size int64, ...)
- func NewEmptyConfig() *docker10.DockerImageConfig
- func UploadSchema2Config(ctx context.Context, blobs distribution.BlobService, ...) (*schema2.DeserializedManifest, []byte, error)
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
func UploadSchema2Config ¶
func UploadSchema2Config(ctx context.Context, blobs distribution.BlobService, config *docker10.DockerImageConfig, layers []distribution.Descriptor) (*schema2.DeserializedManifest, []byte, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.