Versions in this module Expand all Collapse all v1 v1.5.1 Mar 21, 2019 Changes in this version + type Destination struct + func NewDestination(dest io.Writer, ref reference.NamedTagged) *Destination + func (d *Destination) AcceptsForeignLayerURLs() bool + func (d *Destination) AddRepoTags(tags []reference.NamedTagged) + func (d *Destination) Commit(ctx context.Context) error + func (d *Destination) HasThreadSafePutBlob() bool + func (d *Destination) IgnoresEmbeddedDockerReference() bool + func (d *Destination) MustMatchRuntimeOS() bool + func (d *Destination) PutBlob(ctx context.Context, stream io.Reader, inputInfo types.BlobInfo, ...) (types.BlobInfo, error) + func (d *Destination) PutManifest(ctx context.Context, m []byte) error + func (d *Destination) PutSignatures(ctx context.Context, signatures [][]byte) error + func (d *Destination) SupportedManifestMIMETypes() []string + func (d *Destination) SupportsSignatures(ctx context.Context) error + func (d *Destination) TryReusingBlob(ctx context.Context, info types.BlobInfo, cache types.BlobInfoCache, ...) (bool, types.BlobInfo, error) + type ManifestItem struct + Config string + LayerSources map[digest.Digest]manifest.Schema2Descriptor + Layers []string + Parent imageID + RepoTags []string + type Source struct + func NewSourceFromFile(path string) (*Source, error) + func NewSourceFromStream(inputStream io.Reader) (*Source, error) + func (s *Source) Close() error + func (s *Source) GetBlob(ctx context.Context, info types.BlobInfo, cache types.BlobInfoCache) (io.ReadCloser, int64, error) + func (s *Source) GetManifest(ctx context.Context, instanceDigest *digest.Digest) ([]byte, string, error) + func (s *Source) GetSignatures(ctx context.Context, instanceDigest *digest.Digest) ([][]byte, error) + func (s *Source) HasThreadSafeGetBlob() bool + func (s *Source) LoadTarManifest() ([]ManifestItem, error)