isEncrypted checks if an image is encrypted
(i types.Image)
| 19 | |
| 20 | // isEncrypted checks if an image is encrypted |
| 21 | func isEncrypted(i types.Image) bool { |
| 22 | layers := i.LayerInfos() |
| 23 | return slices.ContainsFunc(layers, func(l types.BlobInfo) bool { |
| 24 | return isOciEncrypted(l.MediaType) |
| 25 | }) |
| 26 | } |
| 27 | |
| 28 | // bpDecryptionStepData contains data that the copy pipeline needs about the decryption step. |
| 29 | type bpDecryptionStepData struct { |
no test coverage detected
searching dependent graphs…