isOciEncrypted returns a bool indicating if a mediatype is encrypted This function will be moved to be part of OCI spec when adopted.
(mediatype string)
| 14 | // isOciEncrypted returns a bool indicating if a mediatype is encrypted |
| 15 | // This function will be moved to be part of OCI spec when adopted. |
| 16 | func isOciEncrypted(mediatype string) bool { |
| 17 | return strings.HasSuffix(mediatype, "+encrypted") |
| 18 | } |
| 19 | |
| 20 | // isEncrypted checks if an image is encrypted |
| 21 | func isEncrypted(i types.Image) bool { |
no outgoing calls
no test coverage detected
searching dependent graphs…