Skip to content

Commit

Permalink
pkg/manifests: add a manifest list build/manipulation API
Browse files Browse the repository at this point in the history
Rough out an API for building and manipulating the contents of manifest
lists.

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

Closes: #1902
Approved by: rhatdan
  • Loading branch information
nalind authored and rh-atomic-bot committed Oct 28, 2019
1 parent 3964689 commit 7b1a87a
Show file tree
Hide file tree
Showing 7 changed files with 998 additions and 0 deletions.
16 changes: 16 additions & 0 deletions pkg/manifests/errors.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package manifests

import (
"errors"
)

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 = errors.New("no image instance matching the specified digest was found in the list or index")
// ErrManifestTypeNotSupported is returned when we attempt to parse a
// manifest with a known MIME type as a list or index, or when we attempt
// to serialize a list or index to a manifest with a MIME type that we
// don't know how to encode.
ErrManifestTypeNotSupported = errors.New("manifest type not supported")
)
Loading

0 comments on commit 7b1a87a

Please sign in to comment.