mirror of
https://github.com/containers/podman.git
synced 2025-12-09 23:27:09 +08:00
Bump c/common to v0.47.4
As the title says. Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
This commit is contained in:
12
vendor/github.com/containers/common/libimage/manifests/manifests.go
generated
vendored
12
vendor/github.com/containers/common/libimage/manifests/manifests.go
generated
vendored
@@ -27,6 +27,12 @@ import (
|
||||
|
||||
const instancesData = "instances.json"
|
||||
|
||||
// LookupReferenceFunc return an image reference based on the specified one.
|
||||
// The returned reference can return custom ImageSource or ImageDestination
|
||||
// objects which intercept or filter blobs, manifests, and signatures as
|
||||
// they are read and written.
|
||||
type LookupReferenceFunc func(ref types.ImageReference) (types.ImageReference, error)
|
||||
|
||||
// ErrListImageUnknown is returned when we attempt to create an image reference
|
||||
// for a List that has not yet been saved to an image.
|
||||
var ErrListImageUnknown = stderrors.New("unable to determine which image holds the manifest list")
|
||||
@@ -57,6 +63,7 @@ type PushOptions struct {
|
||||
SignBy string // fingerprint of GPG key to use to sign images
|
||||
RemoveSignatures bool // true to discard signatures in images
|
||||
ManifestType string // the format to use when saving the list - possible options are oci, v2s1, and v2s2
|
||||
SourceFilter LookupReferenceFunc // filter the list source
|
||||
}
|
||||
|
||||
// Create creates a new list containing information about the specified image,
|
||||
@@ -221,6 +228,11 @@ func (l *list) Push(ctx context.Context, dest types.ImageReference, options Push
|
||||
if err != nil {
|
||||
return nil, "", err
|
||||
}
|
||||
if options.SourceFilter != nil {
|
||||
if src, err = options.SourceFilter(src); err != nil {
|
||||
return nil, "", err
|
||||
}
|
||||
}
|
||||
copyOptions := &cp.Options{
|
||||
ImageListSelection: options.ImageListSelection,
|
||||
Instances: options.Instances,
|
||||
|
||||
Reference in New Issue
Block a user