MCPcopy Create free account
hub / github.com/containers/image / validateImageListSelection

Function validateImageListSelection

copy/copy.go:391–398  ·  view source on GitHub ↗

validateImageListSelection returns an error if the passed-in value is not one that we recognize as a valid ImageListSelection value

(selection ImageListSelection)

Source from the content-addressed store, hash-verified

389
390// validateImageListSelection returns an error if the passed-in value is not one that we recognize as a valid ImageListSelection value
391func validateImageListSelection(selection ImageListSelection) error {
392 switch selection {
393 case CopySystemImage, CopyAllImages, CopySpecificImages:
394 return nil
395 default:
396 return fmt.Errorf("Invalid value for options.ImageListSelection: %d", selection)
397 }
398}
399
400// Checks if the destination supports accepting multiple images by checking if it can support
401// manifest types that are lists of other manifests.

Callers 1

ImageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…