Versions in this module Expand all Collapse all v5 v5.33.1 Dec 30, 2024 Changes in this version + type Destination struct + func NewDestination(dest io.Writer, ref reference.NamedTagged) *Destination + func NewDestinationWithContext(sys *types.SystemContext, 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, instanceDigest *digest.Digest) error + func (d *Destination) PutSignatures(ctx context.Context, signatures [][]byte, instanceDigest *digest.Digest) 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 = internal.ManifestItem + type Source struct + func NewSourceFromFile(path string) (*Source, error) + func NewSourceFromFileWithContext(sys *types.SystemContext, path string) (*Source, error) + func NewSourceFromStream(inputStream io.Reader) (*Source, error) + func NewSourceFromStreamWithSystemContext(sys *types.SystemContext, 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) LayerInfosForCopy(ctx context.Context, instanceDigest *digest.Digest) ([]types.BlobInfo, error) + func (s *Source) LoadTarManifest() ([]ManifestItem, error)