File: compat.go

package info (click to toggle)
golang-github-containers-buildah 1.41.4%2Bds1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 8,152 kB
  • sloc: sh: 2,569; makefile: 241; perl: 187; asm: 16; awk: 12; ansic: 1
file content (26 lines) | stat: -rw-r--r-- 1,190 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// This package is deprecated.  Its functionality has been moved to
// github.com/containers/common/pkg/supplemented, which provides the same API.
// The stubs and aliases here are present for compatibility with older code.
// New implementations should use github.com/containers/common/pkg/supplemented
// directly.
package supplemented

import (
	"github.com/containers/common/pkg/manifests"
	"github.com/containers/common/pkg/supplemented"
	cp "github.com/containers/image/v5/copy"
	"github.com/containers/image/v5/types"
	digest "github.com/opencontainers/go-digest"
)

var (
	// ErrDigestNotFound is an alias for github.com/containers/common/pkg/manifests.ErrDigestNotFound.
	ErrDigestNotFound = manifests.ErrDigestNotFound
	// ErrBlobNotFound is an alias for github.com/containers/common/pkg/supplemented.ErrBlobNotFound.
	ErrBlobNotFound = supplemented.ErrBlobNotFound
)

// Reference wraps github.com/containers/common/pkg/supplemented.Reference().
func Reference(ref types.ImageReference, supplemental []types.ImageReference, multiple cp.ImageListSelection, instances []digest.Digest) types.ImageReference {
	return supplemented.Reference(ref, supplemental, multiple, instances)
}