validateImageListSelection returns an error if the passed-in value is not one that we recognize as a valid ImageListSelection value
(selection ImageListSelection)
| 389 | |
| 390 | // validateImageListSelection returns an error if the passed-in value is not one that we recognize as a valid ImageListSelection value |
| 391 | func 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. |
no outgoing calls
no test coverage detected
searching dependent graphs…