Skip to content

Commit

Permalink
pkg/supplemented: add a package for grouping images together
Browse files Browse the repository at this point in the history
Add pkg/supplemented, which can stitch together multiple image
references, typically one which contains a manifest list or image index,
and one or more single-image references to which the list or index
refers, into one big grab bag full of instances and blobs.

Signed-off-by: Nalin Dahyabhai <[email protected]>

Closes: containers#1902
Approved by: rhatdan
  • Loading branch information
nalind authored and caiges committed Nov 12, 2019
1 parent ff0660b commit 37250bb
Show file tree
Hide file tree
Showing 3 changed files with 794 additions and 0 deletions.
17 changes: 17 additions & 0 deletions pkg/supplemented/errors.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package supplemented

import (
"errors"

"github.com/containers/buildah/pkg/manifests"
)

var (
// ErrDigestNotFound is returned when we look for an image instance
// with a particular digest in a list or index, and fail to find it.
ErrDigestNotFound = manifests.ErrDigestNotFound
// ErrBlobNotFound is returned when try to figure out which supplemental
// image we should ask for a blob with the specified characteristics,
// based on the information in each of the supplemental images' manifests.
ErrBlobNotFound = errors.New("location of blob could not be determined")
)
Loading

0 comments on commit 37250bb

Please sign in to comment.