You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: copy/copy.go
+6-3Lines changed: 6 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -61,6 +61,7 @@ const (
61
61
// only accept one image (i.e., it cannot accept lists), an error
62
62
// should be returned.
63
63
CopySpecificImages
64
+
CopyCustomArchImages
64
65
)
65
66
66
67
// ImageListSelection is one of CopySystemImage, CopyAllImages, or
@@ -92,8 +93,9 @@ type Options struct {
92
93
PreserveDigestsbool
93
94
// manifest MIME type of image set by user. "" is default and means use the autodetection to the manifest MIME type
94
95
ForceManifestMIMETypestring
95
-
ImageListSelectionImageListSelection// set to either CopySystemImage (the default), CopyAllImages, or CopySpecificImages to control which instances we copy when the source reference is a list; ignored if the source reference is not a list
96
-
Instances []digest.Digest// if ImageListSelection is CopySpecificImages, copy only these instances and the list itself
96
+
ImageListSelectionImageListSelection// set to either CopySystemImage (the default), CopyAllImages, or CopySpecificImages to control which instances we copy when the source reference is a list; ignored if the source reference is not a list
97
+
ImageListPlatforms []manifest.Schema2PlatformSpec// if ImageListSelection is CopySpecificImages, copy only these target platforms
98
+
Instances []digest.Digest// if ImageListSelection is CopySpecificImages, copy only these instances and the list itself, this is auto generated by ImageListPlatforms
97
99
// Give priority to pulling gzip images if multiple images are present when configured to OptionalBoolTrue,
98
100
// prefers the best compression if this is configured as OptionalBoolFalse. Choose automatically (and the choice may change over time)
99
101
// if this is set to OptionalBoolUndefined (which is the default behavior, and recommended for most callers).
returnnil, fmt.Errorf("copying multiple images: destination transport %q does not support copying multiple images as a group", destRef.Transport().Name())
327
329
}
330
+
328
331
// Copy some or all of the images.
329
332
switchc.options.ImageListSelection {
330
333
caseCopyAllImages:
@@ -365,7 +368,7 @@ func (c *copier) close() {
365
368
// validateImageListSelection returns an error if the passed-in value is not one that we recognize as a valid ImageListSelection value
0 commit comments